Thanks. It's an interesting optimization and worked fine for me. Meanwhile I've found the source of my original problem - when I was deleting the database I wasn't resetting my replication variables. So when a database was closed, replication variable would still point to the old database. Silly mistake.
On Monday, December 21, 2015 at 10:56:55 AM UTC-8, Jens Alfke wrote: What’s the code you use to re-create the database? You should be able to > just call CBLManager.databaseNamed(“foo”). > > However, if you expect the logged-out user to log back in later, it would > make more sense to keep their database around and avoid having to download > the docs again. So don’t delete databases, just use a separate database for > each user (for instance, with a name based on after their username, keeping > in mind the limited character set available for database names.) > > —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/4527ce46-9798-4230-9225-d42e6ea7f9d3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
