語言

SQLiteOpenHelper.SetLookasideConfig(Int32, Int32) 方法

定義

[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

參數

slotSize
Int32

每個看側插槽的位元組大小。

slotCount
Int32

每個資料庫連線的備用記憶體插槽總數。

屬性

備註

配置 備用記憶體配置器

此方法應在子類別建構子中呼叫,然後再開啟資料庫,因為只有在沒有連線使用時,才能更改備用記憶體配置

如果沒有呼叫這個方法,則會使用 SQLite 預設設定。 用 setLookasideConfig(0,0) 來停用旁置

<strong>備註:</strong> 提供的 slotSize/slotCount 配置僅為建議。 系統可能會根據裝置選擇不同的值,例如低 RAM 裝置可停用 lookaside 分配

Java 文件 android.database.sqlite.SQLiteOpenHelper.setLookasideConfig(int, int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於