Open History to see the last commit
1---
2id: trackQuery
3title: trackQuery
4---
5
6```ts
7function trackQuery(
8 collectionId,
9 fieldPath,
10 executionTimeMs): void;
11```
12
13Defined in: [packages/db/src/indexes/index-registry.ts:121](https://github.com/TanStack/db/blob/main/packages/db/src/indexes/index-registry.ts#L121)
14
15Track a query for dev mode analysis
16
17## Parameters
18
19### collectionId
20
21`string`
22
23### fieldPath
24
25`string`[]
26
27### executionTimeMs
28
29`number`
30
31## Returns
32
33`void`