]> Sergey Matveev's repositories - public-inbox.git/commit
search: do not iterate through entire termlist
authorEric Wong <e@80x24.org>
Fri, 28 Aug 2015 00:00:47 +0000 (00:00 +0000)
committerEric Wong <e@80x24.org>
Fri, 28 Aug 2015 00:53:19 +0000 (00:53 +0000)
commit11820f6911d21ee1326d52d99a28063acf872911
treeaa589de457cb2dcc9edeea54aac1c23e589aa52f
parente822f34e206e86e1e2e1aa9617e193d72224de5e
search: do not iterate through entire termlist

A document may have many terms, so this hurts performance
if we blindly iterate.  Unfortunately, we can't rely on the
order of the termlist just yet, either, so we must repeatedly
restart the search for now until we're ready to bump schema
versions.
lib/PublicInbox/SearchMsg.pm