Reputation: 313
I have this scenario: one database in the app and many database that are downloaded from different devices and saved in the same database folder:
mydatabase.db // database of app
device1_mydatabase.db // database from device 1
device2_mydatabase.db // database from device 2
device3_mydatabase.db // database from device 3
....
...
All databases have the same structure , because are the same app in different devices. I have one query that obtain the total production from the mydatabase.db. I would like to obtain a total query from all databases.
1) is better to create a new database copy and insert all data from the single database and then query the total or there are different better approach?
Upvotes: 0
Views: 52
Reputation: 1269443
This may be a matter of opinion, but I think it is better to load the data into a single database. This gives more control for the application. Here are four reasons that come to mind:
Upvotes: 1