Hi,
I have sample query like this using logic condition in my code
select * from myBucket where year = 2020 AND month =12 (if condition A -> AND A=’’) else if (condition B-> AND B= ‘’)
By this logic, I have actually 2 possible query:
select * from myBucket where year = 2020 AND month =12 AND A = ‘’
select * from myBucket where year = 2020 AND month =12 AND B = ‘’
Do I need to create index with combination year,month,A + year,month,B,
or is there any work around to handle this combination?
THanks