Added materialized view for SFW media in hopes of improving media insert performance.
This commit is contained in:
@@ -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');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user