From 5f051908bbdb093495bb392ab393f3578597c9ce Mon Sep 17 00:00:00 2001 From: "R. Tyler Croy" Date: Mon, 26 Nov 2018 13:01:53 -0800 Subject: [PATCH] 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. --- src/models/index.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/models/index.ts b/src/models/index.ts index 67c5e17..7a36786 100644 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -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;