Android Tip: Use a Single Thread to Access a SQLite Database
Wednesday, April 11, 2012, Modified: Wednesday, April 11, 2012 Refs

Doing all background database operations on a single dedicated thread rather than throwing the work onto a general background task queue serviced by a thread pool avoids the framework performing expensive locking for you:
http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#setLockingEnabled(boolean)

Note that AsyncTask uses a thread pool (up to 128 threads in Android 2.3.7) to do background work.

Try Buffer, a smarter way to share links and pictures by spreading your tweets and posts out over time. Sign up from this link and we both get extra features.

Buffer
Home :: Items