# bunqueue v2.6.36

Fixes 1 bug. /queues/:queue/jobs/list performance: Endpoint was taking 300-450ms even with limit=2 because it scanned the entire jobIndex (O(N) iterations + O(N) individual SQLite lookups) then sorted all results.

Canonical: https://bunqueue.dev/blog/bunqueue-v2-6-36/

---

<!-- Generated from changelog.md by docs/scripts/generate-release-posts.ts. Edit the changelog and regenerate. -->

Fixes 1 bug. /queues/:queue/jobs/list performance: Endpoint was taking 300-450ms even with limit=2 because it scanned the entire jobIndex (O(N) iterations + O(N) individual SQLite lookups) then sorted all results.

![](https://github.com/egeominotti.png?size=64) [egeominotti](https://github.com/egeominotti)

#### To install bunqueue v2.6.36

```bash title="bun"
bun add bunqueue@2.6.36
```

```bash title="npm"
npm install bunqueue@2.6.36
```

#### To upgrade bunqueue

```bash
bun add bunqueue@latest
```

## Bugfixes

- **`/queues/:queue/jobs/list` performance**: Endpoint was taking 300-450ms even with `limit=2` because it scanned the entire jobIndex (O(N) iterations + O(N) individual SQLite lookups) then sorted all results. Now delegates to a single indexed SQLite query with `LIMIT/OFFSET`, reducing response time to <5ms.

## Thanks to 1 contributor!

- [@egeominotti](https://github.com/egeominotti)

---

[← bunqueue v2.6.35](https://bunqueue.dev/blog/bunqueue-v2-6-35/) · [Release on GitHub](https://github.com/egeominotti/bunqueue/releases/tag/v2.6.36) · [Commits since v2.6.35](https://github.com/egeominotti/bunqueue/compare/v2.6.35...v2.6.36) · [Full changelog](https://bunqueue.dev/changelog/) · [All posts](https://bunqueue.dev/blog/)
