Example usage for android.database.sqlite SQLiteDatabase enableWriteAheadLogging

List of usage examples for android.database.sqlite SQLiteDatabase enableWriteAheadLogging

Introduction

In this page you can find the example usage for android.database.sqlite SQLiteDatabase enableWriteAheadLogging.

Prototype

public boolean enableWriteAheadLogging() 

Source Link

Document

This method enables parallel execution of queries from multiple threads on the same database.

Usage

From source file:com.shalzz.attendance.DatabaseHandler.java

@Override
public void onConfigure(SQLiteDatabase db) {
    super.onConfigure(db);
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
        db.setForeignKeyConstraintsEnabled(true);
    }/*www.  j  a  v a2  s . co m*/
    db.enableWriteAheadLogging();
}