次の方法で共有


SQLiteDatabase.JournalModePersist Field

Definition

The PERSIST journaling mode prevents the rollback journal from being deleted at the end of each transaction.

[Android.Runtime.Register("JOURNAL_MODE_PERSIST", ApiSince=33)]
public const string JournalModePersist;
[<Android.Runtime.Register("JOURNAL_MODE_PERSIST", ApiSince=33)>]
val mutable JournalModePersist : string

Field Value

Attributes

Remarks

The PERSIST journaling mode prevents the rollback journal from being deleted at the end of each transaction. Instead, the header of the journal is overwritten with zeros. This will prevent other database connections from rolling the journal back.

This mode is useful as an optimization on platforms where deleting or truncating a file is much more expensive than overwriting the first block of a file with zeros.

See here for more details.

Java documentation for android.database.sqlite.SQLiteDatabase.JOURNAL_MODE_PERSIST.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to