I\'m using a compiled SQLiteStatement
with transactions in optimizing SQLite transactions but I\'m reading the documentation for the execute function:
Use SQLiteDatabase instead of SQLiteStatement for intereacting with your database. SQLiteStatements are not Thread safe so I would not use them for SELECT / INSERT / DELETE / UPDATE. Also you should try not to use raw database queries for anything other than Selects
. There are built in helper functions that will increase your database performance. On your instance of SQLiteDatabase
you have .insert, .update, .delete and I use .rawQuery for Selects.