Hacker News
Show HN: DeepSQL – A self-hostable DBA agent for Postgres and MySQL
DeepSQL started as an internal tool to stop our own databases from becoming the bottleneck they were becoming (13,000+ hotels in production). It worked well enough that we're releasing it.
DeepSQL is an AI agent that operates a database the way a senior DBA and Data Engineer would
1. Fixes slow queries (we cutdown DB spend by 4x) 2. Fixes DB bloat (blocks unnecessary schema changes, in vibecoded setup) 2. BI dashboards(we removed spend on tableau, retool and appsmith) 3. Security (We could redact access to sensitive, PII data to our employees) while engaging everyone in the org to interact with our database
How it works 1. Deepsql learns your data and relationships from your code base, rules and query logs 2. Deepsql agent has 20 background jobs that continuously monitor the schema changes, bottlenecks, and come up with solutions before the problem arises. (Schema bloat issues are irreversible) 3. Deepsql Brain has CLI and MCP surfaces that can directly work with Claude / Codex and Cursor. 4. Deepsql digest delivers the daily database health report. 5. Your team can connect to deepsql with their favourate surface areas - Web UI, CLI, MCP or Slack.
One line install: curl -fsSL https://install.deepsql.ai/install.sh | bash
For community support: https://discord.gg/duEJq7AeeG
Or just email me for expert level setup guidance venkat@deepsql.ai
quard8
|next
[-]
printf " ${DIM}This install is using DeepSQL's shared managed Azure OpenAI key, so your${RESET}\n" printf " ${DIM}schema and queries are processed through DeepSQL's shared LLM resource.${RESET}\n"
also, it requires docker.
venkat971
|root
|parent
[-]
Yes, this requires docker. Here is more technical documentation on prerequisites and suggested setup (including AWS CFT)
docheinestages
|next
|previous
[-]
venkat971
|next
|previous
[-]
For deployment help, pl email me at venkat@deepsql.ai
vector_spaces
|next
|previous
[-]
Can you explain this in more detail? You saying that DeepSQL can create BI dashboards that makes Tableau and friends redundant -- are you talking about analytics dashboards consumed by business teams or more like db ops dashboards used by backend teams? Does the user prompt the agent for them, or does it build dashboards that it infers are needed?
venkat971
|root
|parent
[-]
mdasen
|next
|previous
[-]
venkat971
|root
|parent
[-]
I am happy to get connected over email venkat@deepsql.ai and share more details on pricing and deployment help.
evanelias
|next
|previous
[-]
Where does this number come from? It feels completely arbitrary.
venkat971
|root
|parent
[-]
We worked with 6 YC companies who are running on Aurora postgres and worked through the inefficiencies of workloads - too many indexes (in some cases almost every column is indexed), over indexing significantly increases I/O ops (writes), this hidden costs are enormous for fully managed services like Aurora. In all these cases, we could safely come up with a plan to cut down their DB spend by more than 40%.
evanelias
|root
|parent
[-]
Personally, I will instantly distrust a new product claiming an exact number of 40% savings -- not even "up to 40%" or "over 40%", which would still be misleading, but less weird than claiming exactly 40%. Especially in the second line of the homepage, without any supporting link or information.
> we removed the retool and appsmith licenses, another $2k savings.
These aren't DB-specific tools though? Why would this count towards the savings?
> 6 YC companies [...] in some cases almost every column is indexed
If your savings math is based on very early-stage startups who made horrendously bad indexing mistakes, honestly that would reduce my trust even further. That said, I'm definitely not the audience for your product.
shenli3514
|next
|previous
[-]
venkat971
|root
|parent
[-]
Also, deepsql is intelligent in understanding the deployment type. Postgres standalone deployment is very different than Aurora postgres. Cost factors are quite different. Other DBA tools might ignore these factors - Hence they need well trained DBA to use them.
shenli3514
|root
|parent
[-]
venkat971
|root
|parent
[-]
DeepSQL does continuous evaluation of queries, we maintain performance life cycle of a query by customer.
A dashboard query for customer A might run for 2s, but for customer B it would take 50s. Here data clustering is the problem, skewness of distinct join keys … various factors. If query fix has to happen by looking at that query alone, one would make wrong decision (probably creating index). But a holistic decision would be partitioning here.