> ## Content Index
> Fetch the complete content index at: https://www.stirup.si/llms.txt
> Use this file to discover other available public pages before exploring further.

# RDST Agent Monitors PostgreSQL and MySQL for Query Performance
- URL: https://www.stirup.si/rdst-agent-monitors-postgresql-and-mysql-for-query-performance-d793dca7/
- Published: 2026-10-15T19:08:44.000Z
- Updated: 2026-10-15T19:08:44.000Z
- Description: The RDST Agent continuously reads query statistics from PostgreSQL and MySQL databases every minute to identify performance issues and provide actionable recommendations for optimization.
- Author: Satish Das
- Tags: Community, News, Stirup Research

## Agent Functionality and Monitoring

The RDST Agent is an always-on tool designed to monitor PostgreSQL and MySQL databases for query performance issues [Hacker News Show](https://github.com/readysettech/rdst?ref=stirup.si). It continuously reads query statistics from the database every minute [Hacker News Show](https://github.com/readysettech/rdst?ref=stirup.si), ensuring it captures the exact queries executed by your application without requiring any proxies or code modifications. By analyzing these statistics, the agent ranks queries based on their consumption of database time and identifies those that have experienced slowdowns, spikes in execution time, or have ceased running altogether [Hacker News Show](https://github.com/readysettech/rdst?ref=stirup.si). This functionality enables developers to pinpoint performance regressions quickly and receive precise recommendations for resolution. The agent operates locally, providing real-time insights into database behavior without introducing overhead or complexity to the existing infrastructure.

## Query Analysis and Recommendations

RDST’s query analysis and recommendations focus on identifying actionable improvements for critical database queries. It connects to Postgres or MySQL read-only and maintains a ranked list of potential optimizations, such as adding or dropping indexes, adjusting server settings, rewriting queries, or running a vacuum. For each query, RDST executes EXPLAIN, analyzes the query plan and schema, and determines the most effective fix. Each suggested change includes detailed metrics, such as the time saved and the number of queries affected. It also provides step-by-step instructions tailored to your specific database environment, including on-premises servers, RDS, Aurora, Cloud SQL, and Azure. Additionally, RDST includes the SQL code needed to implement or undo the change, ensuring transparency and control for database administrators.

## Implementation and Setup Requirements

The implementation of RDST relies on reading performance metrics from PostgreSQL via `pg_stat_statements` or MySQL through `performance_schema`, with initial query data appearing within minutes of deployment. The project structure includes a Python CLI and HTTP API for the `cli/` directory, a browser-based UI in `web/`, and an Electron desktop application in `desktop/` that runs the CLI as a sidecar. Shared components like design systems and TypeScript configurations are found in `packages/`. To build from source, users need Node 22+ and pnpm 11 for the JavaScript components, along with Python 3.10+ and a pre-built web bundle using `pnpm --filter rdst-desktop build:web` as specified in the repository.

## Data Security and Privacy

The RDST agent emphasizes data security and privacy by ensuring that monitoring history, reports, and settings remain local to the user's machine. Passwords are stored within the operating system's credential store, reducing exposure risks. AI features utilize SQL text, query plans, and schema information for analysis, but do not transmit actual table rows, preserving sensitive data. Additionally, product analytics are disabled by default unless a specific key is included during the build process, meaning that builds from the source do not collect or report any usage data. These measures collectively aim to protect user data while enabling performance monitoring and optimization of database queries.

## Development and Community Builds

The development and community builds of RDST involve a modular approach, with separate commands for installing dependencies, building the web bundle, and launching the desktop main process. The UI and backend can be developed independently using `pnpm --filter rdst-web dev` or `pnpm --filter rdst-desktop dev`, which require `uv` on the system's PATH and a compatible SQLite interpreter. For the desktop sidecar build, `pnpm --filter rdst-desktop build:sidecar` freezes the CLI into a PyInstaller bundle that the packaged app launches. Community builds leverage open fonts and icons, such as Outfit for the UI and Hugeicons free for the icons, ensuring consistent layout and spacing across different environments.

## Sources and reporting notes

- [Hacker News Show](https://github.com/readysettech/rdst?ref=stirup.si)

Based on published source material. No independent hands-on testing is claimed.