Repository navigation
v10.3.1
NitroSQLite 10.3.1 makes the async APIs faster and fixes loadFileAsync() on a closed connection.
Faster async calls
Async calls used to pass through several async functions before they reached the native promise. Each one added a promise and extra microtask turns. executeAsync(), executeRawAsync(), executeBatchAsync(), loadFileAsync() and transaction() now chain the native promise directly. When no transaction or other call holds the connection, a statement now starts right away instead of waiting in the queue. Errors still come back as rejected promises. #496 #499 #500 #502
On Release builds of sqlite-bench, #496 alone brought 250 point reads in flight on a Galaxy S10 from between 138 and 153 µs per query down to between 100 and 102 µs. Sequential async point reads on an iPhone 14 Pro went from about 42 µs to 37 µs.
executeAsync() also passed a new JavaScript callback to native code on every query, although native code only uses it for results of 256 rows or more. It now registers one row handler and passes a numeric ID with each query. #504
Transactions
transaction() now runs BEGIN TRANSACTION synchronously, like COMMIT, because a deferred BEGIN takes no lock. The callback no longer waits for a round trip to the background thread, and it still starts after transaction() returns. BEGIN EXCLUSIVE TRANSACTION stays on the background thread because it can wait for another connection's lock. #501
Prepared statements
A prepared statement's executeAsync() and executeRawAsync() ran on a shared thread pool that doesn't keep call order, so each call waited for the previous result. They now run on the connection's background thread in call order, like db.executeAsync(), so you can start several calls without waiting for each result. #503
Bug fix
loadFileAsync() on a closed connection now returns a rejected promise instead of throwing. #498
Upgrading
Update react-native-nitro-sqlite to 10.3.1, and update react-native-nitro-sqlite-vec and react-native-nitro-sqlite-drizzle to the same version if you use them. The prepared statement and row handler changes touch the native module, so install Pods again on Apple platforms and rebuild your native app.
10.3.1 (2026-11-17)
💨 Performance Improvements
- begin deferred transactions synchronously (#501) (dd43898)
- drop promise layers around transactions (#500) (a939f67)
- drop promise layers from async queries (#496) (92a2855)
- drop promise layers from batch and file loading (#499) (77a8667)
- run prepared async executions on the connection worker (#503) (3da8dc9)
- send row batches to one registered handler (#504) (ed85f1a)
- start statements directly when the queue is free (#502) (4339a76)