commit | 1b6c85b96f5cccae94d8bad6ea727accacfb7a0f | [log] [tgz] |
---|---|---|
author | Dmitri Plotnikov <dplotnikov@google.com> | Wed Dec 02 11:03:25 2009 -0800 |
committer | Dmitri Plotnikov <dplotnikov@google.com> | Wed Dec 02 11:03:25 2009 -0800 |
tree | 584e1cebbbbb97909be9be760f13b22c60b2dbe7 | |
parent | ea029fd79225640e49be82457b83b6b3a0279fd0 [diff] |
DO NOT MERGE cherry-pick of CL I0ff20aa2 from eclair-mr2 Optimizing the email filter query. In order to make the query perform, I had to break out two separate nested queries: one for the email lookup and one for name lookup, and build the UNION of found _ids before retrieving suggestions from the Data table. Performance of the query is improved by orders of magnitude. All tests pass. Bug: http://b/2286776 Change-Id: I61707fe263cbe58a0e96e83d6b291a869fceba78