Skip to content
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

SQLite3 configuration missed WAL mode #509

Open
dukhovnyi opened this issue Nov 15, 2024 · 0 comments
Open

SQLite3 configuration missed WAL mode #509

dukhovnyi opened this issue Nov 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@dukhovnyi
Copy link

Expected Behavior

No performance warnings appears.

Current Behavior

Xcode throws warning Reading or writing to a database not configured in WAL mode will perform excessive I/O and reduce the health of storage devices. when Amplitude uses sqlite3_step interface.

image

Possible Solution

I suppose the SQLString during sqlite3_exec in file should be extended with PRAGMA journal_mode=WAL; to turn on WAL mode.
Consequences of this change should be tracked and tested ...

Steps to Reproduce

  1. Install 8.22.0 using Swift Package Manager into existed project.
  2. Build project.
  3. Observe warnings.

Environment

  • SDK Version: 8.22
  • Device: iPhone 12+
  • OS Version: 18.x
  • Xcode: 16.1
@dukhovnyi dukhovnyi added the bug Something isn't working label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant