Thomas Durieux and Claude Opus 5.5
24534823a3
perf(db): fix the slowest MongoDB queries from the last 24 hours
...
MongoDB's slow-query log (24 h, >100 ms) showed four shapes:
- Admin repository search: a case-insensitive substring regex over four
fields scanned all ~300k repositories, three times per page (up to 5.2 s
each). Searches that are a repository ID or owner/name now match
through the indexes first and only fall back to the regex otherwise.
- Admin errors page owner lookup: repoId $in without the repoId index's
collation was a full collection scan. It now uses the collation.
- Status breakdown and home stats aggregates (~0.4 s over every
repository, ~100 runs a day from admin polling): cached for a minute,
and the admin overview uses the existing hourly home-stats cache.
- Folder counts for large repositories (0.7-1.5 s, 400-550k index keys)
are cached per tree generation, which never changes; legacy trees are
keyed by commit for 5 minutes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-30 13:36:17 +00:00
..
2026-11-14 13:03:22 +00:00
2026-11-16 15:28:19 +00:00
2026-11-29 16:35:34 +00:00
2026-11-15 13:55:38 +00:00
2026-10-08 14:46:01 +02:00
2026-11-29 13:08:19 +00:00
2026-11-19 15:04:03 +00:00
2026-05-04 11:52:03 +02:00
2026-10-08 08:20:26 +01:00
2026-11-30 13:17:35 +00:00
2026-11-02 21:48:40 +00:00
2026-07-22 04:28:01 +02:00
2026-07-22 04:28:01 +02:00
2026-07-02 13:35:48 +02:00
2026-10-07 10:57:09 +00:00
2026-04-15 09:41:00 +02:00
2026-10-11 12:13:02 +01:00
2026-11-04 14:21:36 +00:00
2026-07-22 04:29:04 +02:00
2026-11-14 22:57:01 +00:00
2026-11-15 18:47:47 +00:00
2026-11-02 21:39:17 +00:00
2026-11-12 16:04:31 +00:00
2026-11-09 08:54:26 +00:00
2026-11-10 12:55:55 +00:00
2026-11-29 09:05:51 +00:00
2026-04-15 09:41:00 +02:00
2026-04-15 09:41:00 +02:00
2026-07-17 06:44:21 +02:00
2026-09-08 13:04:28 +02:00
2026-11-28 20:14:07 +00:00
2026-09-08 13:04:28 +02:00
2026-11-13 11:38:26 +01:00
2026-11-14 13:40:40 +00:00
2026-09-08 13:04:28 +02:00
2026-05-11 12:10:17 +03:00
2026-11-13 02:22:45 +00:00
2026-10-08 03:38:19 +01:00
2026-11-08 10:52:10 +00:00
2026-07-30 02:28:19 +02:00
2026-04-15 09:41:00 +02:00
2026-11-29 08:06:30 +00:00
2026-11-04 14:21:36 +00:00
2026-10-08 10:21:00 +00:00
2026-11-15 13:52:05 +00:00
2026-10-08 10:21:00 +00:00
2026-11-04 14:21:36 +00:00
2026-11-14 13:40:40 +00:00
2026-11-14 13:21:03 +00:00
2026-11-14 13:21:03 +00:00
2026-10-09 09:40:54 +00:00
2026-11-29 11:47:06 +00:00
2026-09-08 16:22:23 +02:00
2026-11-29 13:05:23 +00:00
2026-05-03 21:19:39 +02:00
2026-05-06 20:00:59 +03:00
2026-11-04 14:21:36 +00:00
2026-11-30 13:36:17 +00:00
2026-11-14 13:40:40 +00:00
2026-11-29 10:04:19 +00:00
2026-10-08 10:26:13 +01:00
2026-11-29 12:33:11 +00:00
2026-07-02 14:53:26 +03:00
2026-11-14 22:57:01 +00:00
2026-11-29 11:55:04 +00:00
2026-09-14 16:44:53 +02:00
2026-05-06 20:00:59 +03:00
2026-11-06 12:01:25 +00:00
2026-09-15 20:26:42 +00:00
2026-04-15 09:41:00 +02:00
2026-11-15 13:45:38 +00:00
2026-07-02 13:35:48 +02:00
2026-10-08 08:20:26 +01:00
2026-11-29 13:08:19 +00:00
2026-05-06 08:22:45 +03:00
2026-11-15 00:14:01 +00:00
2026-11-29 13:08:19 +00:00
2026-11-11 14:10:54 +01:00
2026-11-04 14:21:36 +00:00
2026-11-02 07:56:32 +01:00
2026-11-04 14:21:36 +00:00
2026-11-02 07:56:32 +01:00
2026-11-04 14:21:36 +00:00
2026-11-11 10:18:20 +00:00
2026-11-04 14:21:36 +00:00
2026-09-10 16:15:39 +02:00
2026-11-29 08:06:30 +00:00
2026-11-09 10:45:24 +00:00
2026-11-29 07:54:00 +00:00
2026-10-08 10:21:00 +00:00
2026-11-02 21:57:33 +00:00
2026-10-08 10:21:00 +00:00
2026-11-29 07:54:00 +00:00
2026-11-29 07:54:00 +00:00
2026-11-08 20:32:03 +00:00
2026-11-11 14:10:54 +01:00
2026-11-30 13:17:35 +00:00
2026-11-02 21:18:43 +00:00
2026-10-09 10:08:49 +00:00
2026-11-13 11:38:26 +01:00
2026-11-09 10:45:24 +00:00
2026-10-07 14:54:49 +00:00
2026-11-28 21:50:12 +00:00
2026-04-15 09:41:00 +02:00
2026-11-29 12:33:11 +00:00
2026-11-15 18:47:47 +00:00
2026-11-14 13:03:22 +00:00
2026-10-08 10:21:00 +00:00
2026-10-14 19:23:12 +01:00
2026-09-08 14:28:46 +02:00
2026-09-08 14:08:48 +02:00
2026-10-13 13:55:10 +01:00
2026-11-29 07:54:00 +00:00
2026-11-14 12:41:02 +00:00
2026-11-14 14:01:50 +00:00
2026-11-15 18:47:47 +00:00
2026-11-15 13:31:16 +00:00
2026-11-28 18:30:40 +00:00
2026-09-27 15:59:36 +00:00
2026-09-27 13:13:04 +00:00
2026-09-27 15:18:49 +00:00
2026-10-08 16:26:12 +00:00
2026-09-27 14:56:06 +00:00
2026-09-27 15:59:36 +00:00
2026-09-27 13:50:20 +00:00
2026-09-27 15:59:36 +00:00
2026-11-29 12:33:11 +00:00
2026-07-22 04:29:04 +02:00
2026-10-09 03:48:05 +00:00
2026-04-15 09:41:00 +02:00
2026-11-14 22:57:01 +00:00
2026-11-29 08:59:50 +00:00
2026-11-04 14:21:36 +00:00
2026-11-15 13:39:17 +00:00
2026-11-13 14:27:13 +01:00
2026-11-13 14:27:13 +01:00
2026-11-14 13:40:40 +00:00
2026-11-29 08:06:30 +00:00
2026-09-14 15:23:13 +00:00
2026-11-14 12:55:17 +00:00
2026-11-29 12:36:09 +00:00
2026-11-29 12:35:46 +00:00
2026-11-11 14:10:54 +01:00
2026-10-12 21:27:36 +01:00
2026-11-29 09:16:35 +00:00
2026-07-17 06:44:21 +02:00
2026-11-30 07:52:23 +00:00
2026-11-29 11:55:04 +00:00
2026-04-15 09:41:00 +02:00
2026-11-29 16:35:34 +00:00
2026-11-03 15:03:23 +00:00
2026-11-02 21:12:29 +00:00
2026-11-19 15:04:03 +00:00