Indexing & Query Latency
Ensure columns used inWHERE, ORDER BY, or JOIN clauses have supporting indexes.
Indexes.swift
Write Performance & Busy Retries
When multiple background tasks perform concurrent database writes, configureTursoOpenOptions to optimize write queueing:
Multi-Process WAL Optimization
For apps utilizing App Extensions (e.g. Share Extensions, WidgetKit, or Background Tasks), enable Multi-Process WAL mode:MultiProcess.swift
App Group Location: Multi-Process WAL databases must reside within a shared App Group container URL so both the main app and extensions can access the shared memory
.shm and .wal files.
