hi everyone! so I need your proposals to face my problem I throw myself into the water , let’s go!
i have a remote central database that must contain all records coming from using a application by many clients! the application save data in local firsteble then save data in remote database ! we’re good until now… the problem persist when we go in offline mode (no internet) so lets suppose that we have a remote db central 2 clients : client A and client B => local database A + local database B (the two databases are independent) . we are offline ! i have create a record rec1 in the DB -A and record rec2 in the DB -B . opppa
online mode is active so the db A must push the rec1 in DB central also the db B must push the rec2 in DB central :
____________________Central DB
_______________________ rec 1
_______________________ rec 2
DB A --------------------------| |----------------------------------DB B
rec1 _______________________________________________ rec 2
when im using replica set data will be inserted everywhere and that is my problem !!!
primary(db master) will synchronize with secondary databases(db slaves)
i don’t want that the DB-A data to be inserted into the DB-B and vice versa !