A command-line tool for database diagnostics, query analysis, performance tuning, and caching optimization with Readyset.
RDST helps you:
- Analyze SQL queries for caching opportunities
- Identify slow queries in real-time
- Get optimization suggestions
- Evaluate query compatibility with Readyset cache
- Manage database connection profiles
Run RDST directly without installing:
uvx rdst --help
uvx rdst analyze "SELECT * FROM users WHERE id = 1"Install globally:
# Install
pipx install rdst
# Run
rdst --help
# Upgrade to latest version
pipx upgrade rdstpip install rdstAfter installing, run
rdst initto configure your first database connection.
-
Initialize RDST:
rdst init # Or with uvx (no installation needed): uvx rdst init -
Configure database connection:
rdst configure add-target mydb \ --host localhost \ --port 5432 \ --database myapp \ --user postgres
-
Analyze queries:
# Analyze a specific query rdst analyze "SELECT * FROM users WHERE active = true" # With uvx: uvx rdst analyze "SELECT * FROM users WHERE active = true" # Analyze with Readyset cache evaluation rdst analyze --readyset-cache "SELECT * FROM products ORDER BY created_at"
-
Monitor slow queries:
rdst top # Or: uvx rdst top -
Audit your fleet:
# Snapshot all ReadySet clusters and audit their health rdst fleet audit --target prod # Import clusters from your infrastructure rdst fleet import --target prod
Fleet audit checks cache utilization, query support, and configuration across your ReadySet deployments. See the fleet audit docs for more.
All commands can be run with rdst (if installed) or uvx rdst (no installation):
rdst analyze- Analyze SQL queries and evaluate caching opportunitiesrdst top- Live view of slow queriesrdst ask- Natural language to SQL queriesrdst scan- Scan codebases for ORM queries and analyze performancerdst fleet audit- Audit ReadySet cluster health and cache utilizationrdst fleet import- Import ReadySet clusters from your infrastructurerdst schema- Manage the semantic layer for better query generationrdst query- Manage query registryrdst configure- Manage database targets and connection profilesrdst init- First-time setup wizardrdst version- Show version information
Example with uvx:
uvx rdst analyze "SELECT * FROM orders WHERE status = 'pending'"- Python 3.11 or higher
- PostgreSQL or MySQL database access
Readyset is a SQL caching engine that sits between your application and database, automatically caching query results to improve performance. Learn more at readyset.io.
MIT License - see LICENSE file for details