Cloud Technology

What are the best practices for scaling Qdrant collections for multi-tenant SaaS applications?

BR Asked by Brian Foster · 10-02-2025
0 upvotes 8,810 views 0 comments
The question

We are building a SaaS platform where each user needs their own isolated search space. Should we create a separate collection in Qdrant for every tenant, or is it better to use a single collection with a 'tenant_id' payload filter to ensure data isolation and performance?

3 answers

0
KI
Answered on 11-02-2025

For most SaaS use cases, using a single collection with payload filtering is the way to go. Qdrant is highly optimized for filtering, and creating thousands of individual collections can lead to massive overhead in terms of memory and management. When you use a 'tenant_id' as a keyword filter, the engine uses bitmasking to quickly exclude irrelevant vectors before the actual HNSW search happens. This keeps the search speed nearly identical to a smaller, dedicated collection. However, if you have a "VIP" tenant with millions of vectors, moving them to a dedicated shard or collection might be worth the extra operational complexity.

0
CH
Answered on 12-02-2025

How many total tenants are you expecting to support? If the number is in the thousands, have you looked into the memory overhead per collection?

BR 13-02-2025

We expect around 5,000 tenants. Each collection in this database has a baseline RAM requirement for the index metadata, so 5,000 collections would likely crash our current cluster. We need to be very careful with how we allocate resources to avoid spiraling cloud costs while maintaining sub-second query latency for our users.

0
RE
Answered on 14-02-2025

Payload filtering is definitely easier to maintain. Just ensure you have indexed the 'tenant_id' field specifically to keep the filtering step fast.

BR 15-02-2025

I agree with Rebecca. Without that keyword index on the payload, the performance will degrade significantly as your total vector count grows across all tenants.

Share your thoughts

Your email address will not be published. Required fields are marked (*)

Professional Counselling Session

Still have questions?
Schedule a free counselling session

Our experts are ready to help you with any questions about courses, admissions, or career paths. Get personalized guidance from industry professionals.

Request a Call Back

Search Online

We Accept

We Accept

Follow Us

"PMI®", "PMBOK®", "PMP®", "CAPM®" and "PMI-ACP®" are registered marks of the Project Management Institute, Inc. | "CSM", "CST" are Registered Trade Marks of The Scrum Alliance, USA. | COBIT® is a trademark of ISACA® registered in the United States and other countries.

Book Free Session