On Sep 17, 2015, at 10:46 PM, Brendan Duddridge <[email protected]<mailto:[email protected]>> 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/07070BF3-8DFF-4400-9D34-6B4E6B617790%40couchbase.com. For more options, visit https://groups.google.com/d/optout.
