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:
parent
a823b059ad
commit
5f051908bb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue