Skip to content

0.8.1925

Latest

Choose a tag to compare

@github-actions github-actions released this 18 Nov 10:11
c8e52df
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>