Added materialized view for SFW media in hopes of improving media insert performance.

This commit is contained in:
DebaucheryLibrarian
2026-02-08 04:56:14 +01:00
parent a77ce63548
commit 371e97f695
3 changed files with 43 additions and 4 deletions

View File

@@ -1179,4 +1179,6 @@ exports.seed = (knex) => Promise.resolve()
.whereNotIn('media_id', tagPhotos.map((photo) => photo.id))
.delete(),
]);
await knex.raw('REFRESH MATERIALIZED VIEW media_sfw');
});