You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
perf(query): build a collection binding in one pass (#1156)
* perf(query): build a collection binding in one pass (#1155)
A collection binding built one Relation for each value and folded them
with sum-rel. For [[?a ?b] ...] it also built one Relation for each
column. bind-by-fn built one Relation for each input tuple and folded
them the same way.
in->rel now builds one relation for a collection of scalars or of flat
tuples of distinct scalar variables. Any other shape, and any element
that is not the simple case, takes the generic path with its errors.
bind-by-fn keeps one accumulator for the whole call, with a join plan
that it makes once.
Test: query-collection-binding-test pins the results for old and new
code.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tebb8STTycbSH49msPKp6A
* docs(changelog): collection binding in one pass (#1156)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tebb8STTycbSH49msPKp6A
* perf(query): join-tuples-into! reads its obligations with tget
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Christian Weilbach <christian@weilbach.name>