Migrate from SQLite to PostgreSQL for multi-node write support #42
Labels
No labels
compliance
demo
deployment
docs
enhancement
parser
patterns
performance
security
ux
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Circuit-Forge/turnstone#42
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Turnstone currently uses SQLite with WAL mode. The context KB write-lock contention issue (fixed by moving context tables to a separate file) revealed a deeper architectural limit: SQLite is single-writer per file, which causes issues when the glean scheduler holds write locks during FTS5 bulk inserts.
Database targets
matched_patterns.Design constraints
ALTER TABLEstatementstenant_idcolumns in mindTURNSTONE_DATABASE_URLenv var (SQLAlchemy DSN format)Phases
executescript()to Alembic migrationsReferences