Nested Facets and Collection Limits
TLDR Tuhin asks about hierarchical/nested facets and collection limits. Kishore Nallan shares a sample app and suggests having 100-1000 collections with user assignments.
Jun 01, 2023 (4 months ago)
Tuhin
12:15 PMLove the product and I can't wait to get started with it. I"m trying to figure out how I can work with it and had a couple of questions.
1. How do I do hierarchical/nested facets? I saw the documentation for
`enable_nested_fields
but couldn't figure out how I can build nested facets.2. My application handles user generated content and each tenant can have their own schema for documents. Would a collection per tenant work well? I couldn't find a limitations page about how many collections I could create.
Thanks for the help 🙂
Kishore Nallan
12:17 PM1. Please see this sample app for hierarchial categories: https://github.com/typesense/showcase-ecommerce-store
2. I've seen people with 100K collections so it's fine. However a middle ground is to have 100 to 1000 collections and assign users via user_id % 100 logic to one of those collections.
Typesense
Indexed 2776 threads (79% resolved)
Similar Threads
Discussions on Typesense, Collections, and Dynamic Fields
Tugay shares plans to use Typesense for their SaaS platform and asks about collection sizes and sharding. Jason clarifies Typesense's capabilities and shares a beta feature. They discuss using unique collections per customer and new improvements. Kishore Nallan and Gabe comment on threading and data protection respectively.
Updating Collections Strategy and Faceting New Field
Nithin asked about strategies for updating collections and faceting new fields. Kishore Nallan suggested creating another collection, indexing in the background and using aliases to switch live traffic over, and shared details about the upcoming release.
Data Modelling and Update Limitations for Typesense
Taj inquired about optimal data modeling for Typesense and potential limits to document updates. Jason recommended creating separate collections and addressed limitations based on various factors. Rate limiting options were also discussed.