Changes between Initial Version and Version 1 of REDCap Customisation Cron History Indexes


Ignore:
Timestamp:
01/09/16 10:50:44 (9 years ago)
Author:
Richard Bramley
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • REDCap Customisation Cron History Indexes

    v1 v1  
     1= REDCap Customisation Cron History Indexes
     2
     3Tags: [[REDCap]] [[Customisation_Category]]
     4
     5I noticed that the briccsDbDev was running at 100% CPU.  The cause was that the REDCap cron job was checking cron history every minute and the history table was massive and there weren't appropriate indexes.  So I created those indexes in both live, test and external:
     6
     7{{{
     8#!sql
     9
     10CREATE INDEX redcap_crons_history_cron_id_cron_run_status ON redcap_crons_history (cron_id, cron_run_status);
     11CREATE INDEX redcap_crons_history_cron_id_cron_run_start ON redcap_crons_history (cron_id, cron_run_start);
     12
     13}}}
     14
     15[[BackLinks]]