Skip to content

[7.x.x] Only lock queries whilst they are compiling#229

Merged
adamretter merged 16 commits into
develop-7.x.xfrom
7.x.x/hotfix/running-query-lock
Jul 13, 2026
Merged

[7.x.x] Only lock queries whilst they are compiling#229
adamretter merged 16 commits into
develop-7.x.xfrom
7.x.x/hotfix/running-query-lock

Conversation

@adamretter

Copy link
Copy Markdown
Member

For queries stored in the database, locks on the XQuery document are now only held until the query is compiled. After compilation the locks are released which allows the XQuery to execute concurrently whilst a user can also edit and replace the XQuery document.
Additionally, a number of resource leaks inherited from eXist-db from XQueries executed by the XML:DB and XML-RPC APIs have now been resolved.

Closes eXist-db/exist#5916
Closes eXist-db/exist#4867
Closes eXist-db/exist#4022

…the REST API only hold a lock on the source document whilst the query is compiled, then release it before executing the query

Closes eXist-db/exist#5916
Closes eXist-db/exist#4867
Closes eXist-db/exist#4022
…the XML:DB and RPC APIs only hold a lock on the source document whilst the query is compiled, then release it before executing the query

Closes eXist-db/exist#4022
@adamretter adamretter added this to the elemental-7.7.0 milestone Jul 12, 2026
@adamretter adamretter self-assigned this Jul 12, 2026
@adamretter adamretter added the enhancement New feature or request label Jul 12, 2026
@cla-bot cla-bot Bot added the cla-signed label Jul 12, 2026
@evolvedbinary evolvedbinary deleted a comment from codacy-production Bot Jul 13, 2026
@adamretter adamretter merged commit 7c2ccd7 into develop-7.x.x Jul 13, 2026
13 of 15 checks passed
@adamretter adamretter deleted the 7.x.x/hotfix/running-query-lock branch July 13, 2026 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant