Skip to content

Working with multiple databases - Examples? Tips? Best Practices? #1322

Answered by simolus3
emallay asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! Is there anything specifically you're interested in with multiple databases?

If you have different database classes pointing at different database files, there's nothing to worry about - you can just manage all of them independently. If you have the same database class opened multiple times (on different files), that's still fine. In that case, you should set moorRuntimeOptions.dontWarnAboutMultipleDatabases = true.
Really, the only thing you should avoid is opening the same logical database file multiple times. In all other cases, you can just open and close the database instances independently.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@emallay
Comment options

Answer selected by emallay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants