# How about the throughput under Multi-Tenancy mode?

**URL:** <https://discuss.dgraph.io/t/how-about-the-throughput-under-multi-tenancy-mode/14068>\
**Category:** Dgraph\
**Tags:** kind:question, benchmark\
**Created:** [May 8, 2021, 2:54pm UTC](https://discuss.dgraph.io/t/how-about-the-throughput-under-multi-tenancy-mode/14068 "2021-05-08T14:54:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![cangchen8180](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/cangchen8180/32/5760_2.png) [@cangchen8180](https://discuss.dgraph.io/u/cangchen8180)\
**Post date:** [May 8, 2021, 2:54pm UTC](https://discuss.dgraph.io/t/how-about-the-throughput-under-multi-tenancy-mode/14068/1 "2021-05-08T14:54:15Z")

</div>

## What I want to do

i want to know how about the throughput under Multi-Tenancy mode?  
do you have some benchmarks?

@MichelDiz

---

<div class="post-metadata">

**Author:** ![MichelDiz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/micheldiz/32/11873_2.png) [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Post date:** [May 8, 2021, 2:57pm UTC](https://discuss.dgraph.io/t/how-about-the-throughput-under-multi-tenancy-mode/14068/2 "2021-05-08T14:57:09Z")

</div>

Nope, too early to do this. I think the core team have done some bench, but not sure if it was related to MT. But there’s no much difference. MT is just a logical separation. It is like having several predicates spread over the cluster. You could potentially have a MT logic in a normal cluster, but you would have a ton of logic code to deal with.

---

<div class="post-metadata">

**Author:** ![cangchen8180](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/cangchen8180/32/5760_2.png) [@cangchen8180](https://discuss.dgraph.io/u/cangchen8180)\
**Post date:** [May 8, 2021, 3:16pm UTC](https://discuss.dgraph.io/t/how-about-the-throughput-under-multi-tenancy-mode/14068/3 "2021-05-08T15:16:40Z")

</div>

but will the throughput be increase after increasing alphas (groups) beacuse of more decentralized predicates ?

---

<div class="post-metadata">

**Author:** ![MichelDiz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/micheldiz/32/11873_2.png) [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Post date:** [May 8, 2021, 3:20pm UTC](https://discuss.dgraph.io/t/how-about-the-throughput-under-multi-tenancy-mode/14068/4 "2021-05-08T15:20:01Z")

</div>

In theory, yes. If you have a horizontal scaling it will increase the throughput. Also using prefixes in the predicates can also make the querying faster. e.g. Instead of having a “name” predicate. Add a prefix for each context. “product.name”, “user.name”, “address.name”, “card.name” and so on.

A better Graph modeling(planning) always makes things smooth.

---

<div class="post-metadata">

**Author:** ![cangchen8180](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/cangchen8180/32/5760_2.png) [@cangchen8180](https://discuss.dgraph.io/u/cangchen8180)\
**Post date:** [May 8, 2021, 3:26pm UTC](https://discuss.dgraph.io/t/how-about-the-throughput-under-multi-tenancy-mode/14068/5 "2021-05-08T15:26:34Z")

</div>

> [@MichelDiz](#):
>
> user

@MichelDiz  
“user” “address” is type?  
do you have some best practice docs?

---

<div class="post-metadata">

**Author:** ![MichelDiz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/micheldiz/32/11873_2.png) [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Post date:** [May 8, 2021, 4:13pm UTC](https://discuss.dgraph.io/t/how-about-the-throughput-under-multi-tenancy-mode/14068/6 "2021-05-08T16:13:54Z")

</div>

> [@cangchen8180](#):
>
> “user” “address” is type?

No exactly, but could be a way to go. The GraphQL model uses the prefix based on the GraphQL Type. But you can have any modeling you want.

> [@cangchen8180](#):
>
> do you have some best practice docs?

About modeling, I don’t think so. Do we have @damian / @acarey ?

---

<div class="post-metadata">

**Author:** ![damian](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/damian/32/4911_2.png) [@damian](https://discuss.dgraph.io/u/damian)\
**Post date:** [May 10, 2021, 1:11pm UTC](https://discuss.dgraph.io/t/how-about-the-throughput-under-multi-tenancy-mode/14068/7 "2021-05-10T13:11:38Z")

</div>

> [@MichelDiz](#):
>
> About modeling, I don’t think so. Do we have @damian / @acarey ?

No, but we have a tutorial about Graph data models available on our [Dgraph Learn website](https://dgraph.io/learn):

> **[Guides - Dgraph](https://docs.hypermode.com/dgraph/guides)**
