Hope everyone is doing well.
I was trying to optimize a N1Ql query with order by clause by creating index.I got a doubt does order of orderby columns and where column should be kept same to have a proper index or ordering doesn't matter in couchbase 6.0.3. Below is query
Select * from employee where type= employee and number='123' and division='456'
order by class,number
Index could be
Create index idx_123 on employee(number,division,class) where type='employee'
But performance is not great using index.Any suggestion here.