Connecting to different databases with multiple client instance

Hi Folks,

Both Trytond.conf and Tryton.conf reference a database. What happens if they reference different databases?

Suppose I have several companies – “Company A”, “Company B”, and “Company C”. I have corresponding PostgreSQL databases, “CompanyA”, “CompanyB” and “CompanyC”. Can I specify my database of interest in the Tryton client? And maybe run several copies of the client at once to see multiple companies simultaneously? Or will I be restricted by what the Tryton server has been told, meaning I’ll need a copy of the server for each different database I need?

Thanks for the help,

Chris.

It does not matter because the client configuration is an internal file that exists just to restore user preferences at startup.

You already do it at login because the client request you to select a database.

For the desktop client:
You can launch the client as much times you want as long as it is for different combinaison of server and database.
If you try to login to a server/database for which you have already a client connected, the new client will stop and the existing client will be raised.

For the web client:
You can open as many browser/tab as you want. But the browser will be kept logged to only one server/database couple at a time.

No because the server is not started for a specific database.

Side note, it is also possible to create multiple companies on the same database. This is only useful if the companies share a common referential (like same product catalogue, same parties etc.).

1 Like

Hi Ced,

That was exceptionally helpful. You answered all of my questions clearly and you even answered one I hadn’t yet asked, but probably would have at some point.

Outstanding!

Thanks for the help,

Chris.

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.