Skip to content

fix: large datasets on android 12 #28

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

Merged
merged 4 commits into from
Apr 29, 2024
Merged

fix: large datasets on android 12 #28

merged 4 commits into from
Apr 29, 2024

Conversation

Chriztiaan
Copy link
Contributor

@Chriztiaan Chriztiaan commented Apr 24, 2024

Descriptions

Originally reported by an end user
On my side with 10k Todos I ran into an I/O error on Android 12 which has to do with the tmp dir not being available for some reason.

I originally had a fix with

await this.database.execute('PRAGMA temp_store = file;');
await this.database.execute("PRAGMA temp_store_directory = '/data/user/0/com.powersync.example/cache'");

which works on runtime and would require me to use react-native-fs to identify the cache directory.

Upon looking for other solutions we found this with is compile time and in-memory meaning we don't need to depend on rn-fs

Verify solution

User has confirmed that this solved their issue.

Extra

Related issues: https://github.com/margelo/react-native-quick-sqlite/pull/25

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