Hi, when I run group by query all the data from se...
# troubleshooting
n
Hi, when I run group by query all the data from segment is greater than 500k records, so Pinot will trim records from till the end of the result set in segment level and we will lose data when we set numgrouplimits reached set true then each time result size is different
k
j
hey Kishore, so we’ve confirmed with the query option it will override the limit and return the data accurately but since queries are generated dynamically we can’t set the limit ahead of time and it doesn’t feel right to increase this limit (are we talking more Heap Mem usage? longer query times? etc) would reducing the rows in each segment reduce the chance of this happening? we’re looking at about 500k-1M rows per segment right now
n
Cc : @Mayank @Jackie
k
You can probably override this at server startup time and it will you can set this at server level and it will used for all queries
j
just worried this is a bandaid and unsure of resource cost / query processing time for increasing this limit we’ve also seen the numGroupsLimitReached when the row count across matched segments reaches 15M so it doesn’t feel like a per-segment limit anymore
j
It will consume more memory/CPU when there are more groups than the previous limit; it won’t have side effect for queries with less groups than the limit. If you want to limit the resource usage, then I’d suggest checking for group limit reached flag in the response and let the user know the result could be inaccurate
j
Is there another good resolution to this besides increasing the limit? Does limiting segment size/docs resolve this? i.e. partitioning segments in parts for a single day’s batch data also we’re observing that numGroupsLimit is multiplied by some factor and that is the total limit. is this factor just the number of instances assigned?
j
numGroupsLimit
is currently applied within the segment. If you don't want any group to be dropped, setting a higher limit is recommended. Even if you create smaller segment and by-pass this limit, the memory footprint would be the same