Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/wise-stingrays-float.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@journeyapps/react-native-quick-sqlite': patch
---

Use memory temp_store
1 change: 1 addition & 0 deletions android/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ include_directories(
)

add_definitions(
-DSQLITE_TEMP_STORE=2
${SQLITE_FLAGS}
)

Expand Down
3 changes: 0 additions & 3 deletions tests/tests/sqlite/rawQueries.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -566,9 +566,6 @@ export function registerBaseTests() {
// Execute the read test whenever a table change ocurred
db.registerTablesChangedHook((update) => readTriggerCallbacks.forEach((cb) => cb()));

// Needed for large volumes of data on older Android devices
// https://github.com/margelo/react-native-quick-sqlite/pull/25
await db.execute('PRAGMA temp_store = memory;')
const numberOfUsers = 100_000;
await db.writeLock(async (tx) => {
await tx.execute('BEGIN');
Expand Down