Skip to content

perf(model): streamline hydration and defer projection query classes - #605

Merged
FCO merged 2 commits into
masterfrom
split/model-storage-performance
Oct 27, 2026
Merged

FCO merged 2 commits into
masterfrom
split/model-storage-performance

Conversation

@FCO

@FCO FCO commented Oct 27, 2026

Copy link
Copy Markdown
Owner

Avoid allocating full SQL column objects for routine model access and hydration, and build row metadata/defaults in one pass while retaining custom types and prefetched relationships.

Compose temporary projection query classes on first use, keeping captured expressions, row values, dirty state and constructor wrappers private to each model or instance. Include concurrent initialization regressions and a model-access benchmark.

Validation: RAKUDO_RAKUAST=0 prove6 -lj4 t passed (Files=100, Tests=1248).

Split out of #603. This branch is based directly on master and can be reviewed and merged without another split PR.

@FCO FCO mentioned this pull request Oct 27, 2026
@FCO
FCO force-pushed the split/model-storage-performance branch from d393128 to 365f74b Compare October 27, 2026 22:31
@FCO
FCO merged commit 8a701df into master Oct 27, 2026
10 checks passed
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