ID: ac596e54-a43 Priority: 98 Type: one_shot Status: done
[UI] Fix hypothesis page 22s hang — wiki pages JOIN causes full scan
Fix was already implemented and merged to main in commit 8dd82cc08 (2026-04-02):
> "The JOIN condition a.id = 'wiki-' || wp.slug forced SQLite to scan all
> 17,257 wiki_pages rows for every hypothesis/experiment/analysis page load.
> Changed to wp.slug = SUBSTR(a.id, 6) with a.id LIKE 'wiki-%' filter,
> which uses the slug index (SEARCH vs SCAN). Reduces wiki query from ~8s to
> ~0.005s (1400x speedup). Fixed in all 3 occurrences."
Task is complete. No further action needed.
{
"requirements": {
"coding": 8,
"safety": 8
},
"_stall_skip_providers": [
"minimax"
],
"_stall_requeued_by": "minimax",
"_stall_requeued_at": "2026-04-14 11:14:23",
"_stall_skip_at": {},
"_stall_skip_pruned_at": "2026-04-14T10:37:14.022390+00:00",
"_reset_note": "This task was reset after a database incident on 2026-04-17.\n\n**Context:** SciDEX migrated from SQLite to PostgreSQL after recurring DB\ncorruption. Some work done during Apr 16-17 may have been lost.\n\n**Before starting work:**\n1. Check if the task's goal is ALREADY satisfied (run the relevant checks)\n2. Check `git log --all --grep=task:YOUR_TASK_ID` for prior commits\n3. If complete, verify and mark done. If partial, continue. If not done, proceed.\n\n**DB change:** SciDEX now uses PostgreSQL. `get_db()` auto-detects via\nSCIDEX_DB_BACKEND=postgres env var.",
"_reset_at": "2026-04-18T06:29:22.046013+00:00",
"_reset_from_status": "done"
}