has_pending() already uses the leading column of uq_jobs_live (source_id) with the same WHERE clause. The extra index just adds write amplification on every insert/claim/complete without improving reads. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| migrations.py | ||
| models.py | ||
| repository.py | ||
| schema.py | ||