Added index on release tags table and temporarily removed 'new' label for performance.

This commit is contained in:
DebaucheryLibrarian 2023-06-12 01:43:43 +02:00
parent 828db2a8c8
commit f464563dae
3 changed files with 8 additions and 2 deletions

View File

@ -393,7 +393,6 @@ const releaseFields = `
slug
}
}
isNew
isFavorited
isStashed(includeFavorites: false)
stashes: stashesScenesBySceneId(
@ -413,6 +412,7 @@ const releaseFields = `
}
}
`;
// isNew too performance-intensive
const releasesFragment = `
connection: releasesConnection(

View File

@ -103,7 +103,6 @@ function initSitesActions(store, _router) {
after,
before,
orderBy,
isNew: store.getters.isNew,
exclude: store.state.ui.filter,
});

View File

@ -0,0 +1,7 @@
exports.up = async (knex) => {
await knex.raw('CREATE INDEX releases_tag_index ON releases_tags(tag_id);');
};
exports.down = async (knex) => {
await knex.raw('DROP INDEX releases_tag_index;');
};