> On Aug 22, 2014, at 1:35 PM, Todd Orler <[email protected]> wrote: > > We’ve recently been investigating memory usage of our iOS app, and discovered > that when using the CBLManager sharedInstance, opening lots of databases, and > then closing them (releasing the refs to them), the SQLite page cache memory > is not released for those previously opened databases.
CBLDatabases don't close when you release your refs to them; they only close when the CBLManager is closed. (Basically, "opening lots of databases" wasn't seen as a common operation. We expected the typical use case to be that you open one or a few databases and keep using them.) What's your use case for opening lots of databases? I can add a -close method if it's important, I'm just curious why you need a lot of dbs. —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/94E9DA40-1452-4CDC-A121-D7711F96EFC8%40couchbase.com. For more options, visit https://groups.google.com/d/optout.
