Skip to content

Commit

Permalink
MODINVSTOR-1357: query updated to use index (#1145)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aliaksandr-Fedasiuk authored Feb 3, 2025
1 parent 63c25e7 commit 2f21d94
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ALTER TABLE ${myuniversity}_${mymodule}.instance DISABLE TRIGGER USER;

UPDATE ${myuniversity}_${mymodule}.instance
SET jsonb = JSONB_SET(instance.jsonb, '{discoverySuppress}', TO_JSONB(false))
WHERE jsonb->>'discoverySuppress' IS NULL;
WHERE left(lower(jsonb ->> 'discoverySuppress'::text), 600) IS NULL;

ALTER TABLE ${myuniversity}_${mymodule}.instance ENABLE TRIGGER USER;

Expand Down

0 comments on commit 2f21d94

Please sign in to comment.