Readyset Data and SQL Toolkit - CLI tool for database diagnostics and query optimization
Project description
RDST - Readyset Data and SQL Toolkit
A command-line tool for database diagnostics, query analysis, performance tuning, and caching optimization with Readyset.
What is RDST?
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
Installation
Using uvx (recommended - no installation required)
Run RDST directly without installing:
uvx rdst --help
uvx rdst analyze "SELECT * FROM users WHERE id = 1"
Using pipx (persistent installation)
Install globally:
# Install
pipx install rdst
# Run
rdst --help
# Upgrade to latest version
pipx upgrade rdst
Using pip
pip install rdst
After installing, run
rdst initto configure your first database connection.
Quick Start
-
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.
Commands
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'"
Requirements
- Python 3.11 or higher
- PostgreSQL or MySQL database access
About Readyset
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.
Documentation
License
MIT License - see LICENSE file for details
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rdst-0.1.902.tar.gz.
File metadata
- Download URL: rdst-0.1.902.tar.gz
- Upload date:
- Size: 2.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f06e5e112f28828e4f6f48b404b331b2edfe2b547fcbc9f1b9665478ee8a845
|
|
| MD5 |
b1796f60f383d8d1bec1f3c35d962036
|
|
| BLAKE2b-256 |
a077379c912560083bdb4e24ae9d620fa6bb2bb8c4d5915d25160bbb12b0c54b
|
File details
Details for the file rdst-0.1.902-py3-none-any.whl.
File metadata
- Download URL: rdst-0.1.902-py3-none-any.whl
- Upload date:
- Size: 1.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c3d2f5489494fc20380abee606551eee0ad3200a2452803a39d44882fffb5ce
|
|
| MD5 |
5a026c446eff11365ab998e0891c35d3
|
|
| BLAKE2b-256 |
585ee9106560eff4c60c55ef9075e03b9599246605ff2d3615c47bcb2f0e6a25
|