Skip to content

perf: Optimize ObjectBuilder to eliminate N+1 table lookups during code generation#2058

Open
Ayoub-Mabrouk wants to merge 1 commit intopropelorm:masterfrom
Ayoub-Mabrouk:perf/optimize-objectbuilder-n1-lookups
Open

perf: Optimize ObjectBuilder to eliminate N+1 table lookups during code generation#2058
Ayoub-Mabrouk wants to merge 1 commit intopropelorm:masterfrom
Ayoub-Mabrouk:perf/optimize-objectbuilder-n1-lookups

Conversation

@Ayoub-Mabrouk
Copy link
Copy Markdown

Optimize the ObjectBuilder class to reduce redundant getTable() calls in nested loops by pre fetching and caching referenced tables before iteration.
This reduces complexity from O(N×M) to O(N+M) where N is the number of columns and M is the number of foreign keys per column.

…de generation

Optimize the ObjectBuilder class to reduce redundant getTable() calls in nested loops by pre fetching and caching referenced tables before iteration. This reduces complexity from O(N×M) to O(N+M) where N is the number of columns and M is the number of foreign keys per column.
@ProgStriker
Copy link
Copy Markdown

ProgStriker commented Dec 22, 2025 via email

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.

2 participants