Skip to content

Conversation

@kazimuth
Copy link
Contributor

@kazimuth kazimuth commented Apr 24, 2025

This purges the DbValue type, instead using row instances themselves as primary key for rows without primary keys. In addition, it instantiates only a single BinaryReader when reading updates for a table, rather than instantiating a BinaryReader and performing an array copy per-row of the table.

Addresses https://github.com/clockworklabs/SpacetimeDBPrivate/issues/1633

API

  • This is an API breaking change to the SDK

If the API is breaking, please state below what will break

Requires SpacetimeDB PRs

Testsuite

SpacetimeDB branch name: master

Testing

Write instructions for a test that you performed for this PR

  • CI

This purges the DbValue type, instead using row instances themselves as
primary key for rows without primary keys. In addition, it instantiates
only a single BinaryReader when reading updates for a table, rather than
instantiating a BinaryReader and performing an array copy per-row of the
table.
@github-actions
Copy link

Some missing or dangling .meta found. Fix commits are needed.

Status File
Not committed src/ListStream.cs.meta

@kazimuth kazimuth merged commit a75a552 into master Apr 26, 2025
7 checks passed
@kazimuth kazimuth deleted the jgilles/fewer_copies branch April 26, 2025 16:08
bfops pushed a commit that referenced this pull request Jul 28, 2025
This purges the DbValue type, instead using row instances themselves as
primary key for rows without primary keys. In addition, it instantiates
only a single BinaryReader when reading updates for a table, rather than
instantiating a BinaryReader and performing an array copy per-row of the
table.

Addresses
clockworklabs/SpacetimeDBPrivate#1633

## API

 - [ ] This is an API breaking change to the SDK

*If the API is breaking, please state below what will break*

## Requires SpacetimeDB PRs

## Testsuite

SpacetimeDB branch name: master

## Testing
*Write instructions for a test that you performed for this PR*

- [ ] CI

---------

Co-authored-by: rekhoff <r.ekhoff@clockworklabs.io>
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.

4 participants