Skip to content

Commit d632741

Browse files
ci: Version Packages (#1063)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent fc59b9f commit d632741

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

.changeset/fast-mirrors-wait.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/electric-db-collection/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# @tanstack/electric-db-collection
22

3+
## 0.2.19
4+
5+
### Patch Changes
6+
7+
- Fix slow onInsert awaitMatch performance issue ([#1062](https://github.com/TanStack/db/pull/1062))
8+
9+
The message buffer was being cleared at the start of each new batch, causing messages to be lost when multiple batches (including heartbeats) arrived before `awaitMatch` was called. This resulted in `awaitMatch` timing out (~3-5s per attempt) and transaction rollbacks.
10+
11+
The fix removes the buffer clearing between batches. Messages are now preserved until the buffer reaches MAX_BATCH_MESSAGES (1000), at which point the oldest messages are dropped. This ensures `awaitMatch` can find messages even when sync activity arrives before the API call completes.
12+
313
## 0.2.18
414

515
### Patch Changes

packages/electric-db-collection/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tanstack/electric-db-collection",
3-
"version": "0.2.18",
3+
"version": "0.2.19",
44
"description": "ElectricSQL collection for TanStack DB",
55
"author": "Kyle Mathews",
66
"license": "MIT",

0 commit comments

Comments
 (0)