baldav/src-tauri
4aiman f20d45aa18 Bulk seed import: INSERT SELECT instead of per-row loop
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.
2026-05-29 22:33:12 +03:00
..
capabilities GPX export + GPS background recording fixes 2026-05-16 10:49:55 +03:00
gen/android/app/src/main/java/dev/baldav/app Always copy seed DB from assets, VACUUM seed to reclaim space 2026-05-29 15:38:10 +03:00
icons GPX export + GPS background recording fixes 2026-05-16 10:49:55 +03:00
src Bulk seed import: INSERT SELECT instead of per-row loop 2026-05-29 22:33:12 +03:00
build.rs Seed products DB + Settings screen + build fixes 2026-05-14 17:35:29 +03:00
Cargo.lock GPS point ordering + GPX export + chart zoom fixes 2026-05-16 21:21:13 +03:00
Cargo.toml GPS point ordering + GPX export + chart zoom fixes 2026-05-16 21:21:13 +03:00
tauri.conf.json GPS point ordering + GPX export + chart zoom fixes 2026-05-16 21:21:13 +03:00