Skip to content

fix(adapter-sql-js): Only calling db.export() if a persister is specified. - #679

Merged
Chriztiaan merged 1 commit into
mainfrom
fix/adapter-sql-writes
Jul 31, 2025
Merged

fix(adapter-sql-js): Only calling db.export() if a persister is specified.#679
Chriztiaan merged 1 commit into
mainfrom
fix/adapter-sql-writes

Conversation

@Chriztiaan

@Chriztiaan Chriztiaan commented Jul 31, 2025

Copy link
Copy Markdown
Contributor

Follow up fix for #647 (comment).
Makes a big difference in performance.

Time 1 Time 2 Time 3
Before 24140ms 24631ms 24485ms
After 6242ms 6536ms 6411ms

…b is not needed if writing would be a no-op. Improves performance.
@changeset-bot

changeset-bot Bot commented Jul 31, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 29c6455

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@powersync/adapter-sql-js Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Chriztiaan
Chriztiaan requested a review from rkistner July 31, 2025 09:48
@Chriztiaan
Chriztiaan marked this pull request as ready for review July 31, 2025 09:48
@Chriztiaan
Chriztiaan merged commit 074f4cd into main Jul 31, 2025
9 checks passed
@Chriztiaan
Chriztiaan deleted the fix/adapter-sql-writes branch July 31, 2025 10:12
whygee-dev pushed a commit to whygee-dev/powersync-js that referenced this pull request Oct 18, 2025
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.

2 participants