Is Deepkit's ORM multi-tenancy capable?
See original GitHub issuePretty 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:
- Created 2 years ago
- Comments:7 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Interesting idea. I am subscribing to this thread for new developments. 😉
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.
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