I have a bucket with 1.7 documents and trying to use Analytics get to the document count by type. But it’s taking over 16 seconds. Our mapreduce view (which we are replacing) that does the samething return under a 1 second.
I have tried a index
SELECT s.type as t, count(*) as total FROM bucket s Group by s.type