question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is Deepkit's ORM multi-tenancy capable?

See original GitHub issue

Pretty much the title and in particular with Mongo, where I use db as a namespace for tenants on the fly and without initiating new ORM or driver instances. All tenants share the same schema, so all code is DRY and they are isolated, so cannot access entities from other tenants.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Rushcommented, Jun 29, 2021

Interesting idea. I am subscribing to this thread for new developments. 😉

0reactions
marcjcommented, Jun 28, 2021

Yeah, can work perfectly fine if you are consistent. Although Mongo has also some kind of “migrations”, for the creation of indices. Not in the form of SQL, but you have to create them per tenant and keep them up to date.

Just tried, Discord said “Invite Invalid”.

Oh, indeed, it expired. Thanks for letting me know! Created a new one that doesn’t expire and updated the site. Here it is: https://discord.gg/U24mryk7Wq

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting Started / ORM - Documentation - Deepkit
You primarily work with the Database class. Once instantiated with an adapter, you can start to query data, persist objects, or create a...
Read more >
Basics of Multi tenant Node.js and PostgreSQL
I going to focus on the specific files required to do the multi tenancy Node.js and PostgreSQL workflow. Multi tenancy Node.js and PostgreSQL....
Read more >
Multi-tenancy Recipe - Multiple connections With Same Models
Hi There, We have a multi-tenancy setup with postgres where: multiple schemas exist in the same database, and each schema is identical to ......
Read more >
Handle Multi Tenant, multi db, with NestJS and TypeORM
$ npm i -g @nestjs/cli $ nest new multi-tenant · $ yarn start:dev · $ yarn add @nestjs/typeorm typeorm mysql · import {...
Read more >
Scaling Multi-Tenant Applications Using the Django ORM ...
There are a number of data architectures you could use when building a multi-tenant app. Some, such as using one database per customer...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found