MCPcopy Create free account
hub / github.com/TanStack/db / getStats

Function getStats

packages/db/src/indexes/base-index.ts:200–208  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

198 }
199
200 getStats(): IndexStats {
201 return {
202 entryCount: this.keyCount,
203 lookupCount: this.lookupCount,
204 averageLookupTime:
205 this.lookupCount > 0 ? this.totalLookupTime / this.lookupCount : 0,
206 lastUpdated: this.lastUpdated,
207 }
208 }
209
210 protected abstract initialize(options?: any): void
211

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected