Hi,

I currently have all my data in a single database file. But I'm 
contemplating splitting it up into two database files. One to store all my 
metadata and another to store all my regular data. Will there be any 
complications with this setup in terms of synchronization or just general 
management of both databases? I'm thinking that I can just have a couple of 
CBLManagers, each managing a separate database file. When I want to write 
to one or the other, I'll just create my CBLModel objects to save to the 
specific database file the documents were created in. I think it should 
work, but I'm not sure what will happen when it comes to syncing. The 
regular, non-metadata database will reference objects in the other database 
file, but I don't think that should be a problem since there's no foreign 
key relationships in Couchbase anyway as it's all managed in the 
application.

Each database will also have a separate set of attachments. This should be 
fine too since each database file will have a separate database name anyway.

Just looking for some advice if this is a good or a bad idea and what 
complications I may encounter as I develop this. Things I should watch out 
for or make sure I take care of, etc.

Thanks,

Brendan

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/c1aacd0c-694f-4f56-b316-9dadfb5764c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to