Handling Multi-Tenancy with API Keys in Collections
TLDR CaptainCodeman inquired about using API keys for multi-tenancy in collections. Jason suggested generating unique document IDs by prefixing them with the tenantId.
Aug 29, 2021 (25 months ago)
CaptainCodeman
07:44 PMAug 30, 2021 (25 months ago)
Jason
12:35 AMCaptainCodeman
01:14 AMJason
01:15 AMtenantId-documentId
CaptainCodeman
02:41 AMTypesense
Indexed 2764 threads (79% resolved)
Similar Threads
Understanding Alias Usage in API Collections and Environment Security
gab sought clarity on when collection aliases would be used, if they are public and how they handle different environments. Kishore Nallan explained their purpose and suggested using distinct API keys for each environment for privacy and customization. They also directed gab on how to generate these keys per collection.
Comparing Performance and Security of Different Data Collection Methods
bnfd asked about differences in performance and memory usage between a single, large data collection and multiple smaller collections. Kishore Nallan explained that the latter is faster, suggested 100 collections sharded by user_id, and informed about the use and security of scoped API keys.

Managing Data Access with Typesense in SaaS Applications
Alex inquired about data separation using typesense in a multi-tenancy application. Jason suggested using scoped API keys.
