Skip to content
Q

QuerySentinel

SQL QueryOptimiser

Created on 4th October 2026

•

Q

QuerySentinel

SQL QueryOptimiser

The problem QuerySentinel solves

QuerySentinel solves the problem of slow and inefficient SQL queries in database-driven applications. In real-world systems, developers and database administrators often struggle to identify why a query is slow, whether the problem is caused by inefficient SQL, missing indexes, expensive joins, sequential scans, or poor query plans, and what optimization would actually improve performance. QuerySentinel acts as an AI-powered database performance assistant that analyzes workloads, identifies problematic queries, examines their execution plans and schema, detects performance bottlenecks, and recommends optimized SQL queries or indexing strategies. It also estimates the potential performance improvement and associated storage/write costs, while keeping the final optimization under human approval. Thus, instead of merely telling developers that a query is slow, QuerySentinel explains why it is slow and what can be done to make it faster safely and efficiently.

Challenges we ran into

Challenges We Ran Into

During the development of QuerySentinel, we faced several challenges, particularly in accurately detecting inefficient SQL queries and generating reliable optimization recommendations. Handling different database schemas and SQL query structures was challenging because queries can behave differently depending on the data and execution plan. We also faced difficulties in analyzing query plans, identifying the actual root cause of performance bottlenecks, and balancing optimization with the cost of indexes and database writes. Integrating AI agents for SQL rewriting and optimization while ensuring that the generated queries remain syntactically correct and safe was another major challenge. Additionally, designing a system that provides useful recommendations without automatically making potentially risky changes to the production database required a strong human-in-the-loop safety mechanism.

Technologies used

Discussion

Builders also viewed

See more projects on Devfolio