Skip to content

Conversation

@pettyjamesm
Copy link
Member

Description

Avoids calling into code generation logic inside of PagesIndex#sort(List<Integer>, List<SortOrder>, int startIndex, int endIndex) by refactoring existing usages to eagerly create and then keep an instance of PagesIndexOrdering for reuse. Some scenarios (such as window operators) could repeatedly call into the code generation path which creates cache contention and a severe performance hazard if the entry was evicted from cache between calls.

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

@cla-bot cla-bot bot added the cla-signed label Jul 25, 2025
@pettyjamesm pettyjamesm requested a review from losipiuk July 25, 2025 16:57
@pettyjamesm pettyjamesm marked this pull request as ready for review July 25, 2025 16:57
@pettyjamesm pettyjamesm requested review from dain and wendigo July 25, 2025 18:00
@pettyjamesm pettyjamesm force-pushed the reuse-compiled-pages-index-ordering branch from 6214380 to 914e437 Compare August 1, 2025 14:57
@pettyjamesm pettyjamesm merged commit 97254f2 into trinodb:master Aug 1, 2025
285 of 292 checks passed
@pettyjamesm pettyjamesm deleted the reuse-compiled-pages-index-ordering branch August 1, 2025 17:18
@github-actions github-actions bot added this to the 477 milestone Aug 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants