I have a N1QL query which takes 20 seconds to complete. Database contains 1.1 million records and it has a GSI for locationCode, type. Below is the query.
SELECT * FROM
appdbWHERE locationCode="1-1-03-010" AND type="institute" AND lowerName LIKE "%acg%" LILMIT 10 OFFSET 0;
But the performance is very poor. Can you please suggest me on how to improve the performance of the above query? Any help is greatly appreciated.