Skip to content

Improved node table update performance#4100

Merged
SteRiccio merged 7 commits intomasterfrom
fix/nodes-update-performance
Jan 26, 2026
Merged

Improved node table update performance#4100
SteRiccio merged 7 commits intomasterfrom
fix/nodes-update-performance

Conversation

@SteRiccio
Copy link
Member

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves performance of node table queries by optimizing how survey UUID and reference data are fetched. The changes focus on reducing redundant JSON operations and subqueries.

Changes:

  • Optimized survey UUID retrieval using a CTE instead of a correlated subquery
  • Introduced LATERAL joins to extract JSON UUIDs once, avoiding repeated JSON operations when fetching reference data
  • Migrated from positional to named query parameters for better maintainability
  • Changed node ID cast from 'int' to 'bigint' in updateNodes function
  • Fixed parameter name typo: childDefUUids → childDefUuids

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sonarqubecloud
Copy link

@SteRiccio SteRiccio merged commit 5a83afc into master Jan 26, 2026
5 checks passed
@SteRiccio SteRiccio deleted the fix/nodes-update-performance branch January 26, 2026 09:49
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.

1 participant