Hi Jens, It's not an issue for me really. It's not that long of a delay (at least not in my test cases currently). It was more of just wondering if that's how it worked so I knew the reason for it. Your explanation confirmed my suspicions. No further action required.
Thanks, Brendan On Friday, September 18, 2015 at 11:45:28 AM UTC-6, Jens Alfke wrote: > > > On Sep 17, 2015, at 10:46 PM, Brendan Duddridge <[email protected] > <javascript:>> wrote: > > Hi, > > Does CBL re-generate all the views after you've encrypted or decrypted the > database? > > > With SQLite, the view indexes are in the same file as the documents, so > everything’s encrypted together. > > With ForestDB, the indexes are separate files, and the re-keying process > deletes them rather than encrypting them, so they’ll get re-built on > demand. This was mostly to make the code simpler and the re-keying faster. > > I find that after I encrypt or decrypt, the next time I open the database, > it takes a while to open the database. Subsequent opens are quick. > > > It shouldn’t take longer to * open* the database, but the first query of > each view afterwards will be slow. If this is turning into a performance > problem for your app, file an issue and we can look into changing the code > to re-encrypt the index files. > > —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/2d6a495b-e281-4724-9924-8ec80ec260a1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
