# Android App becomes very slow after adding SQLCipher

**URL:** <https://discuss.zetetic.net/t/android-app-becomes-very-slow-after-adding-sqlcipher/4022>\
**Category:** SQLCipher\
**Created:** [November 9, 2019, 8:08am UTC](https://discuss.zetetic.net/t/android-app-becomes-very-slow-after-adding-sqlcipher/4022 "2019-11-09T08:08:34Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![sjlombardo](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/sjlombardo/32/3_2.png) [@sjlombardo](https://discuss.zetetic.net/u/sjlombardo)\
**Post date:** [November 25, 2019, 1:55pm UTC](https://discuss.zetetic.net/t/android-app-becomes-very-slow-after-adding-sqlcipher/4022/7 "2019-11-25T13:55:21Z")

</div>

@Jeff_Lockhart - I believe that in this case the OP’s issue was that the procedure used to open a DB connection was repeatedly performing key derivation. This is the number one cause of poor performance with SQLCipher. Many applications using SQLite assume that opening a DB connection is a fast operation, and that is not the case with SQLCipher.

As a result SQLCipher’s locking behavior is not relevant to this user’s issue (or to be honest, the vast majority of the performance problems that people report). We definitely recognize and share your interest in improving locking. We also understand that [your application](https://discuss.zetetic.net/t/android-api-update/3551) is already optimized enough that concurrently issues are the main performance block. However, for most applications, like the one in this thread, the items in the [SQLCipher Performance Optimization FAQ](https://discuss.zetetic.net/t/sqlcipher-performance-optimization/14) are most appropriate as a first line of investigation.

---

_[View the full topic](https://discuss.zetetic.net/t/android-app-becomes-very-slow-after-adding-sqlcipher/4022)._
