Android Sqlite 批量插入性能优化

db.beginTransaction();
try {
    for (...) {
        db.execSQL("...", new Object[]{});
    }
    db.setTransactionSuccessful();
} catch (Exception e) {
 
} finally {
    db.endTransaction();
}

  

posted @ 2019-03-22 18:01  南下玩技术  阅读(306)  评论(0编辑  收藏  举报