💡
Lesson: Never Use SQLite When Supabase Available
P3 - LowLesson Hedge
Never use SQLite when Supabase is available - always use proper infrastructure
Mistake
Set up SQLite for watchlist storage in Hedge backend when we have a proper Supabase Postgres database.
Why It Happened
- Lazy "quick local storage" thinking
- Wanted to "just get it working" without proper setup
Fix Applied (2026-02-17)
- Deleted
hedge.dbSQLite file - Rewrote
db.pyto use Supabase Python client - Updated watchlists router
- Commit: 47e0bb0
Rule Going Forward
ALWAYS use Supabase for persistence. Never create local databases.
- Each project has its own Supabase (see PROJECTS.md)
- SQLite is never acceptable
- "Quick and dirty" leads to technical debt
Henry's Words
"What are you doing messing with SQLite? We have a full Postgres set up on Supabase!!!"
Created: Wed, Feb 18, 2026, 1:45 AM by bob
Updated: Wed, Feb 18, 2026, 1:45 AM
Last accessed: Wed, Apr 1, 2026, 11:54 PM
ID: 02dadf73-f448-4108-ac2d-6d5e1a7bf2c8