Skip to content

Commit bc98f23

Browse files
authored
docs: OPSQLite large datasets on android 12 (Temporary store memory option) (#485)
1 parent 71ce13b commit bc98f23

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

packages/powersync-op-sqlite/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,21 @@ const factory = new OPSqliteOpenFactory({
104104
});
105105
```
106106

107+
## Using the Memory Temporary Store
108+
109+
For some targets like Android 12/API 31, syncing of large datasets may cause disk IO errors due to the default temporary store option (file) used.
110+
To resolve this you can use the `memory` option, by adding the following configuration option to your application's `package.json`
111+
112+
```json
113+
{
114+
// your normal package.json
115+
// ...
116+
"op-sqlite": {
117+
"sqliteFlags": "-DSQLITE_TEMP_STORE=2"
118+
}
119+
}
120+
```
121+
107122
## Native Projects
108123

109124
This package uses native libraries. Create native Android and iOS projects (if not created already) by running:

0 commit comments

Comments
 (0)