What's the best way to separate data?

Hey! Just wondering if anyone would have advice on how to separate data most effectively in indexes/namespaces? Say I have an app that lets users upload different types of documents — calls with clients, feedback docs, etc — and then can use a search to find answers in those documents. The docs would have different metadata. I assume dumping everything for an account in one index wouldn’t be the best approach.

Hi @ilppo.raes, thanks for posting. While the answer depends on how many accounts you need to separate the data for, the general best practice is to use namespaces whenever possible.

In the long run, using namespaces will require you to manage less resources. For example, as you scale, you can easily spin up a new namespace by simply sending an upsert request, whereas creating a new index will be more time-consuming and resource-intensive.