I have document with > 12 millions records.
I use query:
SELECT COUNT(*)
FROM `core`.report.transactions_account
WHERE timestamp BETWEEN STR_TO_MILLIS('2021-12-01T00:00:00Z')/1000 AND STR_TO_MILLIS('2021-12-31T00:00:00Z')/1000
Hi @Reals ,
For this query Analytics currently fetches documents from the main dataset for each matching document id that it got from the index. Looks like the majority of your documents match the WHERE clause, therefore scanning the main dataset directly could be faster (i.e. when this query runs without the index).