mirror of
https://github.com/acaloiaro/neoq
synced 2026-07-21 18:29:08 +00:00
Previously, neoq would query to see if new jobs' (fingerprint, status) tuple were unique. This change adds a unique index on (fingerprint, status) and simply allows unique key constraint violations to be returned from `Enqueue` instead. This prevents one additional query for every new queue item. |
||
|---|---|---|
| .. | ||
| memory | ||
| postgres | ||
| redis | ||
| doc.go | ||