Was: 13000 individual INSERT OR IGNORE in a loop = 2+ minutes. Now: one INSERT ... SELECT FROM seed.products = seconds. Flow: 1. ATTACH seed DB 2. INSERT OR IGNORE ... SELECT (bulk, new products) 3. UPDATE store products with KBJU + micronutrients (user_edited=0 only) 4. UPDATE nutrients_guessed flag 5. INSERT OR REPLACE seed_version into profile 6. COMMIT (all or nothing — crash-safe) 7. DETACH seed_version written INSIDE transaction — if app crashes before COMMIT, next launch re-does the import. No partial state. |
||
|---|---|---|
| .. | ||
| capabilities | ||
| gen/android/app/src/main/java/dev/baldav/app | ||
| icons | ||
| src | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| tauri.conf.json | ||