Hi, All
There is an interesting question about a project structure, database usage.
How to be in this situation ?
There is an interesting question about a project structure, database usage.
- Initially the classical project is developed for using the one common database, where the tables exists like: customers (organizations), users (of these customers), objects (of these customers), sensors info of these objects, user rights to access to these objects ... And the system code (scripts) are at the same host and not to be published (!)
- It means that SQL requests into this single DB always uses JOINs into all these tables, to get and show data that is allowed for each user only, at user's organization, objects...
- But when the project is near to add new real customer, the customer asks that ... they want to host THEIR sensors data on their VPS-host.
- It's logical, and looks good for project - the customer wants to share the responsibility for their data.
- But it means that TWO DATABASES are needed: DB table "customers" (organizations) must be in our project's DB, and all other tables must be ... in the SECOND DB on customer's host.
- And table "customers" also should contain the fields for "customer's DB IP-host, db-name, username, password" to connect to this second db.
How to be in this situation ?
Last edited: