This message was deleted.
# community-help
s
This message was deleted.
k
Hi John, we are actively working on 0.26. Can you please share your dataset (via DM) and query with us so we can investigate?
d
Similar for me
j
Here's a gist that reproduces it for me. It turns out that it's not faceting in isolation but the combination with
group_by
that causes it. In general using
group_by
seems to slow things down a lot, but the difference is much greater on 0.26.0.rc20 Here are the numbers I get on my machine: 0.25.0.rc30-arm:
Mean time to search with group_by=True: 56.09 ms
Mean time to search with group_by=False: 20.17 ms
0.26.0.rc20-arm64:
Mean time to search with group_by=True: 354.52 ms
Mean time to search with group_by=False: 9.44 ms
k
@Dima are you also seeing slower times on group by queries?
d
I didn’t find a time yet to isolate the problem, but my query is also with group_by
k
Ok, I will look into what changes we did with group_by.
🙌 1
j
Any updates here? Would really love to upgrade since there are so many other nice improvements 🙂
k
Mostly figured this out. Will have a patched build later today or early next week.
🚀 1
🙌 1
We've fixed the group by performance issue in
0.26.0.rc23
j
Great, thanks! 🙌
Unfortunately it seems like the facet counts are now incorrect if you facet by more than one field, see this gist: https://gist.github.com/527bd5/f35fc3f9d2d41e4371f381b52da21ebb You get the correct facet counts for the first field, but the following just get counts [2, 1, 1, 1, ..., 1]
k
Thanks, issue has been identified. Will share a fixed build soon.
🙌 1
Can you please give this build a try: 0.26.0.rc24
j
Now the facets seem to be correct, but unfortunately there are still performance problems, now roughly ~50ms -> ~90ms with facets and grouping
k
50ms was the older time?
j
yeah,
0.25.0.rc30-arm
~50ms with my script,
0.26.0.rc24-arm64
~90ms
k
We have to see if we can reduce this further and close that gap but the large regression is fixed. We have optimized the underlying datastructures for faceting in 0.26 but that might be sub optimal for grouping. For e.g faceting without grouping on wildcard queries are very very fast now.
j
Yeah, almost 2x without grouping, very nice 🙂 Unfortunately we rely on the grouping a lot right now and it's a bit hard to switch (probably not even possible without making filters worse in e-com)
âž• 1