Open History to see the last commit
1---
2id: QueueStrategyOptions
3title: QueueStrategyOptions
4---
5
6Defined in: [packages/db/src/strategies/types.ts:57](https://github.com/TanStack/db/blob/main/packages/db/src/strategies/types.ts#L57)
7
8Options for queue strategy
9Processes all executions in order (FIFO/LIFO)
10
11## Properties
12
13### addItemsTo?
14
15```ts
16optional addItemsTo: "front" | "back";
17```
18
19Defined in: [packages/db/src/strategies/types.ts:63](https://github.com/TanStack/db/blob/main/packages/db/src/strategies/types.ts#L63)
20
21Where to add new items in the queue
22
23***
24
25### getItemsFrom?
26
27```ts
28optional getItemsFrom: "front" | "back";
29```
30
31Defined in: [packages/db/src/strategies/types.ts:65](https://github.com/TanStack/db/blob/main/packages/db/src/strategies/types.ts#L65)
32
33Where to get items from when processing
34
35***
36
37### maxSize?
38
39```ts
40optional maxSize: number;
41```
42
43Defined in: [packages/db/src/strategies/types.ts:61](https://github.com/TanStack/db/blob/main/packages/db/src/strategies/types.ts#L61)
44
45Maximum waiting items. Overflow rejects its transaction; 0 rejects every mutation.
46
47***
48
49### wait?
50
51```ts
52optional wait: number;
53```
54
55Defined in: [packages/db/src/strategies/types.ts:59](https://github.com/TanStack/db/blob/main/packages/db/src/strategies/types.ts#L59)
56
57Wait time between processing queue items (milliseconds)