Hi!
When i use Entity Stream for aggregation with filter then i get the result. Code Example
entityStream.of(MyClass.class)
.filter("@date:[1632776400000 1632862800000]")
.groupBy(DwtDoc$.NAME)
.reduce(ReducerFunction.COUNT).as("count")
.sorted(Sort.Order.desc("@count"))
.limit(0, 10)
.toList(String.class, Integer.class);
But if I remove the filter, the method returns nothing. Trying the same request in the terminal, I always get a different response something like
1) (integer) 109699
(0.50s)
as I understand it, RediSearch does not allow long aggregations in the database that take longer than 0.5 seconds.
It turns out if I have 200-300 thousand records, then I can find the most popular name on it.
Weird behavior, How can I fix the problem?
Hi! When i use Entity Stream for aggregation with filter then i get the result. Code Example entityStream.of(MyClass.class) .filter("@date:[1632776400000 1632862800000]") .groupBy(DwtDoc$.NAME) .reduce(ReducerFunction.COUNT).as("count") .sorted(Sort.Order.desc("@count")) .limit(0, 10) .toList(String.class, Integer.class);
But if I remove the filter, the method returns nothing. Trying the same request in the terminal, I always get a different response something like 1) (integer) 109699 (0.50s)
as I understand it, RediSearch does not allow long aggregations in the database that take longer than 0.5 seconds. It turns out if I have 200-300 thousand records, then I can find the most popular name on it. Weird behavior, How can I fix the problem?