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

disable cache for oracle sequences #446

Merged
merged 8 commits into from
Mar 31, 2021
Merged
Show file tree
Hide file tree
Changes from 2 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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
- is-svg 4.3.1
- `nflow-engine`
- Support SQL wildcards in workflow instance queries by business key or external id
- Fix Oracle database scripts to disable cache for sequences

## 7.2.4 (2021-02-25)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ create index nflow_workflow_polling on nflow_workflow(next_activation, status, e
create index idx_workflow_parent on nflow_workflow(parent_workflow_id)
/

create sequence nflow_workflow_id_seq
create sequence nflow_workflow_id_seq nocache
/

create or replace trigger nflow_workflow_insert
Expand Down Expand Up @@ -70,15 +70,15 @@ create table nflow_workflow_action (
create index nflow_workflow_action_workflow on nflow_workflow_action(workflow_id)
/

create sequence nflow_workflow_action_id_seq
create sequence nflow_workflow_action_id_seq nocache
/

create or replace trigger nflow_workflow_action_insert
before insert on nflow_workflow_action
for each row
declare
begin
:new.id := nflow_workflow_id_seq.nextval;
:new.id := nflow_workflow_action_id_seq.nextval;
end;
/

Expand All @@ -104,7 +104,7 @@ create table nflow_executor (
)
/

create sequence nflow_executor_id_seq
create sequence nflow_executor_id_seq nocache
/

create or replace trigger nflow_executor_insert
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
alter sequence nflow_executor_id_seq nocache
/

alter sequence nflow_workflow_id_seq nocache
/

alter sequence nflow_workflow_action_id_seq nocache
/

create or replace trigger nflow_workflow_action_insert
before insert on nflow_workflow_action
for each row
declare
begin
:new.id := nflow_workflow_action_id_seq.nextval;
end;
/