# How to use elasticsearch with DB per account architecture?

**URL:** https://discuss.elastic.co/t/how-to-use-elasticsearch-with-db-per-account-architecture/13510
**Category:** Elasticsearch
**Created:** [September 9, 2013, 9:22am UTC](https://discuss.elastic.co/t/how-to-use-elasticsearch-with-db-per-account-architecture/13510 "2013-09-09T09:22:47Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Eyal](https://avatars.discourse-cdn.com/v4/letter/e/76d3ee/32.png) [@Eyal](https://discuss.elastic.co/u/Eyal)
#### Post date: [September 9, 2013, 9:22am UTC](https://discuss.elastic.co/t/how-to-use-elasticsearch-with-db-per-account-architecture/13510/1 "2013-09-09T09:22:47Z")

</div>

Hi,

Our system is implemented in a way that every account has its own database.

That mean that our Paper model for example has a table in account #1 database and a different table in account #2 database.

We didn't want to implement our indices this way also, as it creates a lot of time consuming problems. So we must overcome the non-unique id's of papers across different accounts.

Is there anyway to do that without adding a uuid to our tables?

Thanks!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 6, 2017, 2:17am UTC](https://discuss.elastic.co/t/how-to-use-elasticsearch-with-db-per-account-architecture/13510/2 "2017-07-06T02:17:33Z")

</div>


