Skip to content

Commit

Permalink
Merge branch 'hotfix-verifier_notification_performance'
Browse files Browse the repository at this point in the history
  • Loading branch information
johnvanbreda committed Jul 17, 2017
2 parents 8d4e29d + 869286c commit f088f7e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/config/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/**
* @var string The application files version number.
*/
$config['version'] = '1.36.1';
$config['release_date'] = '2017-07-14';
$config['version'] = '1.36.2';
$config['release_date'] = '2017-07-17';
$config['repository'] = 'https://github.com/Indicia-Team/warehouse/releases';

19 changes: 19 additions & 0 deletions modules/indicia_setup/db/version_1_36_2/201707171349_indexes.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
-- #slow script#

-- Indexes improve query selectVerificationAndCommentNotifications in notify_verifications_and_comments module.
CREATE INDEX ix_occurrence_comments_created_on
ON occurrence_comments
USING btree
(created_on);

CREATE INDEX ix_cache_occurrences_functional_verified_on
ON cache_occurrences_functional
USING btree
(verified_on);

-- Indexes to improve queries in verifier_notifications module
CREATE INDEX ix_notifications_user_id_partial_vt
ON notifications
USING btree
(user_id)
WHERE source_type IN ('VT', 'PT') and acknowledged=false;

0 comments on commit f088f7e

Please sign in to comment.