I am running a query which is of the is form
select count(*) from doc_id where x=10 and b in (1,2,3,4 .... upto 50 entries) and query like abc
the count is taking too much time to return. it takes about 2000 seconds to return the count
If i remove the count and print docids it is done very fast. A binary index exists on doc_id.
I also tried
select count(doc_id) from doc_id where x=10 and b in (1,2,3,4 .... upto 50 entries) and query like abc
still the same old story.
Any suggestions to improve the performance.
There are about million documents that match the query and are satisfied by the above sql condition
select count(*) from doc_id where x=10 and b in (1,2,3,4 .... upto 50 entries) and query like abc
the count is taking too much time to return. it takes about 2000 seconds to return the count
If i remove the count and print docids it is done very fast. A binary index exists on doc_id.
I also tried
select count(doc_id) from doc_id where x=10 and b in (1,2,3,4 .... upto 50 entries) and query like abc
still the same old story.
Any suggestions to improve the performance.
There are about million documents that match the query and are satisfied by the above sql condition