Skip to main content

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 init to configure your first database connection.

Quick Start

  1. Initialize RDST:

    rdst init
    # Or with uvx (no installation needed):
    uvx rdst init
    
  2. Configure database connection:

    rdst configure add-target mydb \
      --host localhost \
      --port 5432 \
      --database myapp \
      --user postgres
    
  3. 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"
    
  4. Monitor slow queries:

    rdst top
    # Or: uvx rdst top
    
  5. 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 opportunities
  • rdst top - Live view of slow queries
  • rdst ask - Natural language to SQL queries
  • rdst scan - Scan codebases for ORM queries and analyze performance
  • rdst fleet audit - Audit ReadySet cluster health and cache utilization
  • rdst fleet import - Import ReadySet clusters from your infrastructure
  • rdst schema - Manage the semantic layer for better query generation
  • rdst query - Manage query registry
  • rdst configure - Manage database targets and connection profiles
  • rdst init - First-time setup wizard
  • rdst 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rdst-0.1.1016.tar.gz (2.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rdst-0.1.1016-py3-none-any.whl (1.8 MB view details)

Uploaded Python 3

File details

Details for the file rdst-0.1.1016.tar.gz.

File metadata

  • Download URL: rdst-0.1.1016.tar.gz
  • Upload date:
  • Size: 2.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for rdst-0.1.1016.tar.gz
Algorithm Hash digest
SHA256 2c1049c3c2fc36af7937b228e45635d0c7fe5ce24c0e96afda26af6e064e94a6
MD5 3cd2c5f186e9327fc2700d74e3232efa
BLAKE2b-256 fe7bd30eaf5a8757e096c327234077afb563d86cc157c88826c047acdf66d39f

See more details on using hashes here.

File details

Details for the file rdst-0.1.1016-py3-none-any.whl.

File metadata

  • Download URL: rdst-0.1.1016-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

Hashes for rdst-0.1.1016-py3-none-any.whl
Algorithm Hash digest
SHA256 48c23bbaabad2dd8b36eccd423445f738b706bb7cb8b521cb31e4b256bac604b
MD5 a6dcd6e8ea6e12838d66f8866f0e6edc
BLAKE2b-256 a0134380fbe6da82b91055a88924d91f8e63edf1ee15fdf1a8f967f749527788

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page