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
1 file changed