Skip to content

Conversation

CalebGerman
Copy link
Collaborator

@CalebGerman CalebGerman commented Aug 5, 2025

🚀 Named Version Optimization & Bug Fixes

Performance Issues Fixed:

  1. Eliminated massive changeset over-fetching

    • Previously loaded ALL changesets [0 -> Inf) upfront
    • Now uses efficient pagination (20 items at a time)
  2. Parallelized individual changeset queries

    • Replaced sequential api calls with more efficient method of querying resulting in less load time

Critical Bug Fixed:

  1. Missing index offset for Named Versions

Result:

  • Correct comparison ranges (was comparing wrong changeset ranges before)
  • Prevents massive amounts of queries due to preloading changesets

The optimization maintains identical functionality while fixing the core performance bottleneck and ensuring API compliance.

@CalebGerman CalebGerman requested a review from a team as a code owner August 5, 2025 01:40
@CalebGerman CalebGerman requested a review from mattbjordan August 5, 2025 01:40
Copy link

changeset-bot bot commented Aug 5, 2025

🦋 Changeset detected

Latest commit: c7e52fd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@itwin/changed-elements-react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

diegopinate
diegopinate previously approved these changes Aug 5, 2025
@CalebGerman CalebGerman enabled auto-merge (squash) August 5, 2025 16:06
@CalebGerman CalebGerman merged commit 2a10e64 into master Aug 5, 2025
4 checks passed
@CalebGerman CalebGerman deleted the cgerman/loading-fix branch August 5, 2025 16:13
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.

3 participants