SQLiteDatabase.OpenParams.Builder.SetLookasideConfig(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Configures lookaside memory allocator
[Android.Runtime.Register("setLookasideConfig", "(II)Landroid/database/sqlite/SQLiteDatabase$OpenParams$Builder;", "", ApiSince=27)]
public Android.Database.Sqlite.SQLiteDatabase.OpenParams.Builder? SetLookasideConfig(int slotSize, int slotCount);
[<Android.Runtime.Register("setLookasideConfig", "(II)Landroid/database/sqlite/SQLiteDatabase$OpenParams$Builder;", "", ApiSince=27)>]
member this.SetLookasideConfig : int * int -> Android.Database.Sqlite.SQLiteDatabase.OpenParams.Builder
Parameters
- slotSize
- Int32
The size in bytes of each lookaside slot. Value is 0 or greater
- slotCount
- Int32
The total number of lookaside memory slots per database connection. Value is 0 or greater
Returns
- Attributes
Remarks
Configures lookaside memory allocator
SQLite default settings will be used, if this method isn't called. Use setLookasideConfig(0,0) to disable lookaside
Note: 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
Android reference for android.database.sqlite.SQLiteDatabase.OpenParams.Builder.setLookasideConfig.
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.