-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bulk enqueue: Disable que_job_notify trigger in bulk_enqueue for perf…
…ormance Implementation is based on [a tip from @jasoncodes](#340 (comment))! Co-Authored-By: Andrew Colbeck <andrewcolbeck@gmail.com>
- Loading branch information
1 parent
f573970
commit 9bc68cb
Showing
5 changed files
with
33 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
DROP TRIGGER que_job_notify ON que_jobs; | ||
CREATE TRIGGER que_job_notify | ||
AFTER INSERT ON que_jobs | ||
FOR EACH ROW | ||
EXECUTE PROCEDURE public.que_job_notify(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
DROP TRIGGER que_job_notify ON que_jobs; | ||
CREATE TRIGGER que_job_notify | ||
AFTER INSERT ON que_jobs | ||
FOR EACH ROW | ||
WHEN (NOT coalesce(current_setting('que.skip_notify', true), '') = 'true') | ||
EXECUTE FUNCTION public.que_job_notify(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters