WARNING (drift): It looks like you've created the database CatalogoDatabase multiple times. When these two databases use the same QueryExecutor, race conditions will occur and might corrupt the database #3128
Replies: 1 comment 2 replies
-
If you have multiple instances of If that's not the case for you, you can put this snippet somewhere in driftRuntimeOptions.dontWarnAboutMultipleDatabases = true; That will disable the warning. |
Beta Was this translation helpful? Give feedback.
-
Hello, I need some help. I have two database classes: one called CatalogoMestreDatabase, which controls a main database that receives data at the beginning of my application. Then, I have another class called CatalogoDatabase, which is responsible for managing my other databases. After a certain point in my app, I will receive information in the response.body of an HTTP call to populate other databases that will be created based on the ID. I tried using a Manager to instantiate these databases, as I don't know how many databases I will have in my application since it all depends on the data I receive. However, when I do this, I get the warning: "WARNING (drift): It looks like you've created the database CatalogoDatabase multiple times. When these two databases use the same QueryExecutor, race conditions will occur and might corrupt the database." I wanted to know if there is a way to handle this, please!
Beta Was this translation helpful? Give feedback.
All reactions