mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-23 16:07:27 +00:00
The showUsage query ran two correlated subqueries over the full operations table once per user, each calling pg_column_size(payload) on every row, then sorted all users before LIMIT 20. On a 1.85 GB operations table with 3.6k users this effectively never returned. Aggregate per-user size and count in a single CTE pass, then join. One sequential scan instead of scans × users. |
||
|---|---|---|
| .. | ||
| analyze-storage.ts | ||
| backup.sh | ||
| build-and-push.sh | ||
| clear-data.ts | ||
| delete-user.ts | ||
| deploy.sh | ||
| docker-monitor.sh | ||
| health-alert.sh | ||
| monitor.ts | ||
| MONITORING-README.md | ||
| run-all-monitoring.ts | ||