#community-help

Querying E-commerce Platform Performance and max_facet_values Limit

TLDR Tugay asked about performance differences in filtering methods and limits on max_facet_values on their e-commerce platform. Kishore Nallan responded affirming single value filtering is faster and there is no limit on max_facet_values.

Powered by Struct AI
3
27mo
Solved
Join the chat
Oct 20, 2021 (27 months ago)
Tugay
Photo of md5-e920cc88c8354329d64e9a0332a7e5e2
Tugay
08:52 AM
Hi everyone, we are using auto schema detection in our e-commerce platform to enable faceting and filtering on custom product attributes in this case queries also dynamically generated for each custom attributes there maybe 1 to N different query filter args. We are also considering to update our schema to use single attribute that contains all facet/filter values within single string array such as {"facets": ["category/category_name1", "brand/brand_name1", "attribute_id/attribute_name"]}.

My question is: Is there a performance difference between filtering on 10 different attributes with single value and filtering on a single attribute with 10 different values? and also is there a hard limit for max_facet_values? Kishore Nallan Jason
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
08:57 AM
1. Single value filtering will be faster than multi-valued filtering.
2. No limits on max_facet_values
Tugay
Photo of md5-e920cc88c8354329d64e9a0332a7e5e2
Tugay
08:59 AM
Thank you! 😄