Fix Guides // NodeFlow Diagnostics
Migrating FlowiseAI & Langflow from SQLite to Postgres 16
Switching from SQLite to pgvector/pgvector:pg16 unlocks concurrent agent execution, Queue Mode worker safety, and unified vector + relational backups.
Measured Stack Telemetry & Memory Profile
PostgreSQL handles dozens of parallel writes from multiple Flowise or Celery workers without locking. Using the official pgvector:pg16 image gives you both transactional state storage and optional HNSW vector indexing in one container.
| Subsystem / Signal | Measured Target | Operational Impact |
|---|---|---|
| Concurrent Write Throughput | 100+ parallel ops | Zero SQLITE_BUSY lock errors |
| Postgres Container Footprint | 350 - 950 MB RAM | Tunable via shared_buffers & work_mem |
| Backup & Point-in-Time Recovery | pg_dump atomic | Safe live snapshots without stopping flows |
Step-by-Step Triage & Config Remediation
- Export existing Flowise/Langflow JSON: Download all Chatflows, Agentflows, and Credentials metadata before changing DATABASE_TYPE.
- Boot pgvector/pgvector:pg16 service: Add the postgres container with persistent ./pgdata volume in docker-compose.yml.
- Update DATABASE_* variables: Set DATABASE_TYPE=postgres and restart Flowise; re-import your exported JSON flows.
DATABASE_TYPE=postgres DATABASE_HOST=postgres DATABASE_PORT=5432 DATABASE_NAME=flowise DATABASE_USER=flowise DATABASE_PASSWORD=CHANGE_ME_STRONG_SECRET
Diagnostic FAQ
Do I still need Qdrant if I use pgvector?
Small-to-medium datasets (<150k vectors) run cleanly in pgvector alone; add Qdrant when you exceed 200k vectors or need heavy payload filtering.
Can I migrate SQLite rows automatically?
Exporting/re-importing Chatflow JSONs via UI or API is far cleaner and avoids schema mismatch bugs.