forked from DebaucheryLibrarian/traxxx
Added index on release tags table and temporarily removed 'new' label for performance.
This commit is contained in:
parent
828db2a8c8
commit
f464563dae
|
@ -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(
|
||||
|
|
|
@ -103,7 +103,6 @@ function initSitesActions(store, _router) {
|
|||
after,
|
||||
before,
|
||||
orderBy,
|
||||
isNew: store.getters.isNew,
|
||||
exclude: store.state.ui.filter,
|
||||
});
|
||||
|
||||
|
|
|
@ -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;');
|
||||
};
|
Loading…
Reference in New Issue