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

Cache size & temp storage #492

Merged
merged 7 commits into from
Feb 7, 2025
Merged

Cache size & temp storage #492

merged 7 commits into from
Feb 7, 2025

Conversation

rkistner
Copy link
Contributor

@rkistner rkistner commented Feb 7, 2025

Add cacheSizeKb option for web and op-sqlite, defaulting to a 50MB max cache size (versus SQLite default of 2MB). This makes a big impact on IndexedDB - see powersync-ja/powersync-sqlite-core#56 (comment).

Also add both temporaryStorage and cacheSizeKb options for op-sqlite, now also defaulting op-sqlite to PRAGMA temp_store = memory (same as web), and a 50MB cache size. This removes the need for changing compile settings for op-sqlite for Android.

These are more effort to add for RNQS, so I haven't added it there yet (need to modify react-native-quick-sqlite itself).

Copy link

changeset-bot bot commented Feb 7, 2025

🦋 Changeset detected

Latest commit: 56185bb

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

This PR includes changesets to release 3 packages
Name Type
@powersync/web Minor
@powersync/diagnostics-app Minor
@powersync/op-sqlite Minor

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

@rkistner rkistner merged commit ff10d69 into main Feb 7, 2025
6 checks passed
@rkistner rkistner deleted the cache-temp-storage branch February 7, 2025 13:14
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