From 3c49e2d0edec19eff4f87b0fcc127f924af193fc Mon Sep 17 00:00:00 2001 From: Justin Reynolds Date: Thu, 28 Feb 2019 11:44:29 -0600 Subject: Performance Enhancements --- models/integrations.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'models/integrations.js') diff --git a/models/integrations.js b/models/integrations.js index 1c473b57..65a7af63 100644 --- a/models/integrations.js +++ b/models/integrations.js @@ -88,6 +88,10 @@ Integrations.allow({ //INTEGRATIONS REST API if (Meteor.isServer) { + Meteor.startup(() => { + Integrations._collection._ensureIndex({ boardId: 1 }); + }); + /** * @operation get_all_integrations * @summary Get all integrations in board -- cgit v1.2.3-1-g7c22