Skip to content

Commit

Permalink
Create index for NotificationVO.resourceUuid
Browse files Browse the repository at this point in the history
 Resolves ZSTAC-6962

 Before create index cost 1.2 sec

 After create index cost 0.00-0.01 sec

 Signed-off-by: AlanJager <[email protected]>
  • Loading branch information
AlanJager committed Sep 20, 2017
1 parent e0a2494 commit 1cae8eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions conf/db/upgrade/V2.2.0__schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,4 @@ select update_policy(uuid, 'SCHEDULER.TRIGGER.UPDATE', '[{\"name\":\"scheduler.t
select update_policy(uuid, 'SCHEDULER.ADD', '[{\"name\":\"scheduler.add\",\"effect\":\"Allow\",\"actions\":[\"scheduler:APIAddSchedulerJobToSchedulerTriggerMsg\"]}]') from AccountVO where type<>'SystemAdmin';
select update_policy(uuid, 'SCHEDULER.REMOVE', '[{\"name\":\"scheduler.remove\",\"effect\":\"Allow\",\"actions\":[\"scheduler:APIRemoveSchedulerJobFromSchedulerTriggerMsg\"]}]') from AccountVO where type<>'SystemAdmin';

CREATE INDEX notification_resource_uuid_idx ON NotificationVO (resourceUuid);

0 comments on commit 1cae8eb

Please sign in to comment.