DB Docs
API Reference
- Core API Reference
- Collection
- createCollection
- liveQueryCollectionOptions
- createLiveQueryCollection
- createOptimisticAction
- createTransaction
- Electric DB Collection
- electricCollectionOptions
- Query DB Collection
- queryCollectionOptions
- RxDB DB Collection
- rxdbCollectionOptions
- PowerSync Collection
- powerSyncCollectionOptions
- createIndexedDB
- indexedDBCollectionOptions
- React Hooks
- useLiveQuery
AI/LLM: This documentation page is available in plain markdown format at/db/latest/docs/reference/interfaces/IndexSuggestion.md
IndexSuggestion
Defined in: packages/db/src/indexes/index-registry.ts:28
Properties#
collectionId#
ts
collectionId: string;Defined in: packages/db/src/indexes/index-registry.ts:30
collectionSize?#
ts
optional collectionSize: number;Defined in: packages/db/src/indexes/index-registry.ts:33
fieldPath#
ts
fieldPath: string[];Defined in: packages/db/src/indexes/index-registry.ts:31
message#
ts
message: string;Defined in: packages/db/src/indexes/index-registry.ts:32
queryCount?#
ts
optional queryCount: number;Defined in: packages/db/src/indexes/index-registry.ts:35
queryTimeMs?#
ts
optional queryTimeMs: number;Defined in: packages/db/src/indexes/index-registry.ts:34
type#
ts
type: "collection-size" | "slow-query" | "frequent-field";Defined in: packages/db/src/indexes/index-registry.ts:29