Skip to content

Issue/443 improve allow list bundle execution performance#444

Open
hhund wants to merge 3 commits intodevelopfrom
issue/443_Improve_AllowList_Bundle_Execution_Performance
Open

Issue/443 improve allow list bundle execution performance#444
hhund wants to merge 3 commits intodevelopfrom
issue/443_Improve_AllowList_Bundle_Execution_Performance

Conversation

@hhund
Copy link
Copy Markdown
Member

@hhund hhund commented Apr 5, 2026

Code and DB schema improvements to speedup allow-list bundle executions.

develop vs. 443

Peak at execution 79 develop branch may be related to autovacuum execution.

closes #443

hhund added 2 commits April 3, 2026 02:51
* SQL logging delegates are now only created if logging is enabled
* Disabled SQL logging for dao and integration tests, can be enabled
with constants in dev.dsf.bpe.dao.AbstractDbTest and
dev.dsf.fhir.dao.AbstractDbTest
* Added missing SQL logging delegate config for Operaton data source
* Some code cleanup
- New "not found" cache for metadata resources by Url and by Url and
Version queries.
- Added "current" column to resource tables with default value "true",
after insert trigger sets current to false for old versions. New after
insert triggers for resource tables that are not part of read_accesss
mechanism: Questionnaire, StructureDefinition (snapshot) and Task.
Update queries run on db schema migration to set current to false for
existing older resource versions. Updated current... and dependent
views.
- Added a few new db indexes: ...id_current_index to speedup finding the
current resource via the current... views, ...full_id and ...ref indexes
to speedup queries with OrganizationAffiliation to Organization and
Endpoint relations.
- Refactored SQL queries using concat(...) to || (concat operator) to
enable index usage.
- A few other refactored queries to make better use of new current
indexes.
@hhund hhund added this to the 2.1.0 milestone Apr 5, 2026
@hhund hhund requested a review from schwzr April 5, 2026 16:19
@hhund hhund self-assigned this Apr 5, 2026
@hhund hhund linked an issue Apr 5, 2026 that may be closed by this pull request
Copy link
Copy Markdown

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve Allow-List Bundle Execution Performance

2 participants