Skip to main content

IndexDevModeConfig

还没翻译译自英文(tanstack.com)本页 15 段都还没译

Defined in: packages/db/src/indexes/index-registry.ts:17

Properties

collectionSizeThreshold

collectionSizeThreshold: number;

Defined in: packages/db/src/indexes/index-registry.ts:21

Suggest indexes when collection has more than this many items


enabled

enabled: boolean;

Defined in: packages/db/src/indexes/index-registry.ts:19

Enable dev mode index suggestions


onSuggestion

onSuggestion: (suggestion) => void | null;

Defined in: packages/db/src/indexes/index-registry.ts:25

Custom handler for index suggestions


slowQueryThresholdMs

slowQueryThresholdMs: number;

Defined in: packages/db/src/indexes/index-registry.ts:23

Suggest indexes when queries take longer than this (ms)