[7.x.x] Only lock queries whilst they are compiling#229
Merged
Conversation
…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
…ery results in its Session
…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
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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