i have a problem with my query because is very slow ,is possible translate it into a map-reduce?
I use this query with java-sdk and is
SELECT SUM (operation), user
BucketTime FROM USE INDEX (indexTest USING GSI)
WHERE environment = “/ root”
AND startTime> 1356998400000
AND endTime <1483228799999
GROUP BY user
ORDER BY DESC INDEX
Environment, startTime and endTime are a variable.
can someone help me ?
Thanks when I do not find solutions