commit | 2d1de10e7fe066eb3fad6b374df8b2200529f6e6 | [log] [tgz] |
---|---|---|
author | Shawn Pearce <sop@google.com> | Thu Oct 10 00:46:21 2013 -0700 |
committer | Shawn Pearce <sop@google.com> | Thu Oct 10 00:46:37 2013 -0700 |
tree | 8cf608e5a196f48a635f3a1f9cc917e76ddf01db | |
parent | 2a568add87480929d0d8049a130a1fc9cd12e87c [diff] |
Run has:draft and is:starred before secondary index These properties are stored in the SQL database and cannot be answered by the secondary index. Instead of driving the search tree on the secondary index, use HasDraftByPredicate or IsStarredByPredicate. This avoids looking up every change in the database to see if the target user has starred it or has a draft present. Bug: issue 2160 Change-Id: I12d8fe3c041dcb3fbd0d5fd8eed8384fe6667ee2