Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: [email protected] #210

Merged
merged 5 commits into from
Sep 8, 2023
Merged

fix: [email protected] #210

merged 5 commits into from
Sep 8, 2023

Conversation

BobdenOs
Copy link
Contributor

@BobdenOs BobdenOs commented Sep 5, 2023

[email protected] includes an upgrade of sqlite3 which contains a performance optimization for json functions (changelog)

The performance optimization seems to take the trade of that it uses more memory. Which made the lean-draft tests run into SQLITE_NOMEM (out of memory) errors. After some investigating this seems to be related to the solution used to support 50+ columns in select statements. This PR switches to use json_patch which is equal to Object.assign({...},{...}). Which seems to make the behavior as expected again. Might even be a small general performance increase.

@johannes-vogel
Copy link
Contributor

Is that also compatible with 8.5.2?

@BobdenOs
Copy link
Contributor Author

BobdenOs commented Sep 5, 2023

Yes no changes where made to the json function APIs. Just the internals changed.

@BobdenOs BobdenOs marked this pull request as ready for review September 5, 2023 12:53
@johannes-vogel johannes-vogel merged commit 3781159 into main Sep 8, 2023
@johannes-vogel johannes-vogel deleted the update-better-sqlite branch September 8, 2023 08:15
@cap-bots cap-bots mentioned this pull request Jul 18, 2024
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