다음을 통해 공유


SQLiteOpenHelper.SetLookasideConfig(Int32, Int32) Method

Definition

[Android.Runtime.Register("setLookasideConfig", "(II)V", "GetSetLookasideConfig_IIHandler", ApiSince=27)]
public virtual void SetLookasideConfig (int slotSize, int slotCount);
[<Android.Runtime.Register("setLookasideConfig", "(II)V", "GetSetLookasideConfig_IIHandler", ApiSince=27)>]
abstract member SetLookasideConfig : int * int -> unit
override this.SetLookasideConfig : int * int -> unit

Parameters

slotSize
Int32

The size in bytes of each lookaside slot.

slotCount
Int32

The total number of lookaside memory slots per database connection.

Attributes

Remarks

Configures lookaside memory allocator

This method should be called from the constructor of the subclass, before opening the database, since lookaside memory configuration can only be changed when no connection is using it

SQLite default settings will be used, if this method isn't called. Use setLookasideConfig(0,0) to disable lookaside

<strong>Note:</strong> Provided slotSize/slotCount configuration is just a recommendation. The system may choose different values depending on a device, e.g. lookaside allocations can be disabled on low-RAM devices

Java documentation for android.database.sqlite.SQLiteOpenHelper.setLookasideConfig(int, int).

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