-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Large quantity of facets causing degradation of Meilisearch performance #2349
Comments
Hey @shivaylamba, I ran the query that was taking a lot of time and it is indeed related to the number of facets returned in the results. More specifically we are returning 172700 facet values associated with their counts, which is a lot. You can run this
I remember a PR that I have done that removed the limit on the number of facets returned by the engine, this should probably be reintroduced. |
Thanks for your response! So for now would you recommend reducing the number of facets value @Kerollmops |
Discussed with @gmourier and @Kerollmops -> this will be fixed in v0.28.0 by introducing an hard limit (will be customizable in the future, but not for v0.28.0) |
Alright thank you @curquiza |
535: Reintroduce the max values by facet limit r=ManyTheFish a=Kerollmops This PR reintroduces the max values by facet limit this is related to meilisearch/meilisearch#2349. ~I would like some help in deciding on whether I keep the default 100 max values in milli and set up the `FacetDistribution` settings in Meilisearch to use 1000 as the new value, I expose the `max_values_by_facet` for this purpose.~ I changed the default value to 1000 and the max to 10000, thank you `@ManyTheFish` for the help! Co-authored-by: Kerollmops <clement@meilisearch.com>
Closed by #2468 |
Describe the bug
I am building an e-commerce demo using an Amazon Dataset that contains more than 1 million items. It has 300k brands, 100k tags which are added as part of filterable attributes. I am using Instant Meilisearch and thus these are also part of the Refinement list.
The time required to calculate the facets will increase as the number of facets increases, hence degrading search performance. Since there are 300K brands and 100K tags, it can take a lot of time to load them initially.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Performance should be quick.
Screenshots
Meilisearch version: v0.26.0
Additional context
Additional information that may be relevant to the issue.
[e.g. architecture, device, OS, browser]
Browser: Chrome
OS: MacOS
Device: Mac Book Pro
The text was updated successfully, but these errors were encountered: