This commit is contained in:
andre committed 2026-06-12 21:20:23 +01:00
1 parent e68d357177
commit 3e3382df57
65 files changed
+1836 -42

No files matched your search

@@ -0,0 +1,6 @@
-- ─── Index gallery images by their parent gallery (O1) ──────────────────────
-- gallery.i_project_id is filtered on every gallery view (db_gallery_images) and
-- on delete, but had no index → full table scan. Add one.
ALTER TABLE `gallery`
ADD INDEX IF NOT EXISTS `idx_gallery_project` (`i_project_id`);