# Source: https://docs.pinecone.io/troubleshooting/keep-customer-data-separate.md

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pinecone.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Keep customer data separate in Pinecone

Some use cases require vectors to be segmented by their customers, either physically or logically. The table below describes three techniques to accomplish this and the pros and cons of considering each:

| **Techniques**                                                                                                    | **Pros**                                                                                                                                                                         | **Cons**                                                                                       |
| ----------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| **Separate Indexes**<br />Each customer would have a separate index                                               | • Customer data is truly separated physically by indexes                                                                                                                         | • You cannot query across customers if you wish<br />• Cost and maintenance of several indexes |
| **Namespaces**<br />You can isolate data within a single index using namespaces                                   | • You can only query one namespace at a time, which would keep customer data separate logically<br />• Cheaper than #1 potentially by making more efficient use of index storage | • You cannot query across namespaces<br />• Customer data is only separated logically          |
| **Metadata Filtering**<br />All data is kept in a single index and logically separated by filtering at query time | • Most versatile if you wish to query across customers<br />• As with namespaces cheaper than #1 potentially                                                                     | • Customer data is separated only by filtering at query time                                   |