Skip to content

Is it safe to use two databases of the same class with two different store files #1110

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

You must be logged in to vote

Yes exactly, this falls under the "you know what you're doing" rule. The warning was added because some users accidentally opened their databases (under the same file) multiple times. This can break stream queries and cause issues with migrations, which is why the warning was added.
Using two instances of the same class with different underlying database files is not an issue at all.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ycherniavskyi
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