Skip to content

Fix the performance of get-rec.xql#794

Merged
mMoliere merged 1 commit intomajlis-erc:mainfrom
evolvedbinary:hotfix/get-rec-performance
Dec 23, 2025
Merged

Fix the performance of get-rec.xql#794
mMoliere merged 1 commit intomajlis-erc:mainfrom
evolvedbinary:hotfix/get-rec-performance

Conversation

@adamretter
Copy link
Collaborator

Previously the defined Range Indexes were not being used correctly when looking up labels. We have rewritten the query expressions manually so that they may be optimised for index use.

Previously:

$ curl -vv http://localhost:8080/exist/apps/manuForma/services/get-rec.xql\?template\=true\&path\=/db/apps/majlis-data/data/manuscripts/tei/474.xml

Would take about 7 minutes to execute, with this fix it now executes in 184 milliseconds.

@adamretter adamretter added bug Something isn't working enhancement New feature or request labels Dec 21, 2025
@mMoliere mMoliere merged commit de7cbff into majlis-erc:main Dec 23, 2025
7 checks passed
@adamretter adamretter deleted the hotfix/get-rec-performance branch January 12, 2026 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants