Skip to content

Commit 6148308

Browse files
committed
chore: declare the changeset's new driver-sql export as a widening
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUg7BKfRBcTPyMxbLh
1 parent 5594216 commit 6148308

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎.changeset/33695-system-column-implicit-indexes.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
feat(driver-sql, driver-turso): schema sync builds the `(created_at, id)` and `(owner_id)` indexes without a declaration
77

8-
Clause-②: no
8+
Clause-②: yes (widening)
99
Metadata-protocol: none
1010

1111
Schema sync now builds two indexes on system columns that no object has to declare:
@@ -19,4 +19,4 @@ Turso's remote face (`libsql://`) now builds the full implicit set too: these tw
1919

2020
On SQLite, the index does not speed up a default-ordered page yet. While the engine adds the empty controlled-by-parent chain to the query, the SQLite planner still sorts in a temporary B-tree. When the query has no chain, the same page takes 0.16 ms instead of 1.6 s at 1M rows.
2121

22-
`@objectstack/driver-sql` also exports `implicitReferenceIndexes`, which takes an optional `physicalColumns`.
22+
Widening: `@objectstack/driver-sql` now exports `implicitReferenceIndexes` from its main entry. Its arguments take an optional `physicalColumns` set, and when one is given, a key over a column the table lacks is left out.

0 commit comments

Comments
 (0)