X-GPT uses SQLite with Drizzle ORM for high-performance data storage.
# View statistics
xgpt db --stats
# Check health
xgpt db --health
# Initialize/reset
xgpt db --init
# Optimize performance
xgpt optimize --metrics
# Run benchmarks
xgpt benchmark --reportMigrate existing JSON data to SQLite:
xgpt migrate --tweets tweets.json --vectors vectors.jsonusers- Twitter user profilestweets- Scraped tweet contentembeddings- Vector embeddings for semantic searchsessions- Scraping session audit trail
- 13 optimized indexes for common query patterns
- WAL mode for concurrent read/write
- 99.8/100 performance score
- Sub-millisecond query times
Database is stored at data/xgpt.db. Backups are created automatically before migrations in data/backups/.