Is it safe to use two databases of the same class with two different store files #1110
-
I am going to implement some type of restore from backup (which stores on the server) functionality. I see the next steps to implement it:
During creating the second
Do I understand that in the current case it is safe to create several |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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. |
Beta Was this translation helpful? Give feedback.
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.