Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve jdbc performance #1012

Merged
merged 2 commits into from
Feb 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cli/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ kestra:
cls: io.kestra.core.models.topologies.FlowTopology

queues:
min-poll-interval: 100ms
min-poll-interval: 25ms
max-poll-interval: 1000ms
poll-switch-interval: 5s

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- We drop the PK and the queues_type__offset, otherwise they are used by the poll query which is sub-optimal.
-- We create an hash index on offset that will be used instead when filtering on offset.

ALTER TABLE public.queues DROP CONSTRAINT queues_pkey;

DROP INDEX queues_type__offset;

CREATE INDEX queues_offset ON public.queues USING hash ("offset");