Remove the REFRESH MATERIALIZED VIEW interval

We're not actually using this materialized view at the moment, so we do not need
to bother with this.
This commit is contained in:
R. Tyler Croy 2018-11-26 13:01:53 -08:00
parent a823b059ad
commit 5f051908bb
No known key found for this signature in database
GPG Key ID: E5C92681BEF6CEA2
1 changed files with 0 additions and 11 deletions

View File

@ -35,15 +35,4 @@ Object.keys(db).forEach(modelName => {
db.sequelize = sequelize;
db.Sequelize = Sequelize;
/*
* Periodically refresh the materialized view for holding the first types
*/
setInterval(() => {
logger.info('Refreshing the `first_type` materialized view');
sequelize.query('REFRESH MATERIALIZED VIEW first_type');
}, ((60 * 1000) * 60));
export default db;