On Mar 3, 2014, at 3:44 PM, archit agarwal <[email protected]> wrote:
> Just put everything in same db but with diff types rather that create > separate dbs? Yes. This is what everyone does in the document-database world. It's the equivalent of using multiple tables. (Our CouchChat and ToDoLite demo apps both demonstrate this.) > What advantages do I have with this? You can't query across multiple databases. If you keep different types of docs in the same database you can do some smart queries that combine information from them, almost like what you do with JOIN in SQL. You also avoid the overhead of running multiple replications. > Wouldn't this make filtering harder when pulling users based on certain > criteria or chats based on which ones are mine? No, why would it? Your map and filter functions are fully Turing-complete so they can just check the 'type' property of the document. --Jens -- 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/2B12A381-4788-4F8F-A12A-F5563B3E30A2%40couchbase.com. For more options, visit https://groups.google.com/groups/opt_out.
