Repository navigation
[Task 1/3] Update Nitro SQLite to 10.5.0 - #905
Open
chrispader wants to merge 2 commits into
Open
chrispader wants to merge 2 commits into
chrispader wants to merge 2 commits into
Conversation
Co-authored-by: Codex <noreply@openai.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
expensify-chore-bot
Bot
requested review from
arosiclair
and removed request for
a team
December 4, 2026 10:37
Co-authored-by: Codex <noreply@openai.com>
arosiclair
approved these changes
Dec 4, 2026
Contributor
|
@chrispader checklist |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Onyx develops and tests its native storage provider against Nitro SQLite 10.2.0. This updates the development dependency to 10.5.0 and lets Jest load its ES modules.
Details
The development build pairs SQLite 10.5.0 with Nitro Modules 0.37.2, which exposes the
ThreadPool.hppheader to iOS frameworks. The existing optional SQLite peer range^10.2.0covers both SQLite versions. The storage provider uses the same API on both.Nitro SQLite 10.5.0 reduces native allocation and queue overhead for queries. On iOS, large asynchronous reads also yield between row batches so the app can draw frames. Nitro SQLite 10.5.0 release notes
Android storage benchmark
On a Galaxy S10e running Android 12, 100 sequential SQLite reads took 52.47 ms before and 26.92 ms after. The median for a public Onyx write followed by a SQLite read was 5.93 ms before and 5.90 ms after. Its range across four baseline control runs was 2.83 to 7.02 ms, and one candidate run took 68.29 ms.
The comparison uses staging Release builds and measures the combined Onyx, Nitro SQLite 10.2.0 to 10.5.0, and Nitro Modules 0.37.1 to 0.37.2 upgrade. Each build has 10 valid measurements across five interleaved blocks. Each run verifies its write, reads, merge, and cleanup. The bulk workload writes 1,000 values with 1,152-character payloads. The full-store read covered 1,197 keys before and 1,196 after.
Onyx.set()+ SQLitegetItem()multiSetmultiGetmultiMergegetAllgetItemcallsremoveItemsI excluded four automation failures and used complete blocks for the comparison. The intervals for the bulk operations and persisted roundtrip include zero.
Related Issues
Expensify/App#108888
Linked E/App PR
Expensify/App#108886
Automated Tests
The existing SQLite provider, error classification, and native merge tests exercise the published mock and error modules.
Manual Tests
Author Checklist
### Related Issuessection above### Linked E/App PRsection above, and verified this change against it (E/App CI passed and manual testing completed)TestssectiontoggleReportand notonIconClick)myBool && <MyComponent />.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)Avataris modified, I verified thatAvataris working as expected in all cases)mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
This dependency update has no visual changes.
🤖 Generated with Codex