All posts
Case StudyAug 8, 20267 min read

How Stayflexi Replaced Retool and Appsmith With DeepSQL

Stayflexi runs its BI entirely on DeepSQL. Their Chief of Growth spends four hours a day chatting with the agent, and their backend engineer went from fixing 2-3 slow queries a month to five a day.

VS

Venkat Sakamuri

DeepSQL R&D · Ex Oracle Query Engine Team · YC & CMU

Line illustration of a hotel building whose windows are dashboard panels, connected to a single central brain node

TL;DR

  • Stayflexi, a hospitality operations platform, is now 100% dependent on DeepSQL for BI. Retool and Appsmith are gone.
  • Amit, Chief of Growth, spends roughly four hours a day chatting with the DeepSQL agent — asking chained business questions the agent anticipates before he does.
  • Arun, backend engineer, went from fixing 2-3 slow queries a month to five a day, and now ships custom enterprise dashboards in minutes instead of sprints.

The setup

Stayflexi runs a hospitality operations platform: bookings, rate management, payments, housekeeping, channel sync. The database is the system of record for every property on the platform, and almost every question the business asks — occupancy, ADR movement, refund leakage, channel performance — is ultimately a SQL question against production data.

Before DeepSQL, answering those questions meant one of two things. Either someone in growth filed a request and waited, or an engineer built a screen in Retool or Appsmith. Both paths ran through the same bottleneck: engineering time.

Amit, Chief of Growth: four hours a day inside the agent

Amit does not write SQL. He asks questions, in plain English, and then he asks the follow-up.

That follow-up is the part he did not expect to work.

"I ask which properties dropped occupancy last week. It answers. Then it suggests I look at the channel mix for exactly those properties — which is the question I was about to type. It understands what I am actually trying to find out, not just the sentence I typed."

That is the difference between a text-to-SQL toy and a context-aware, user-aware agent. DeepSQL is not translating one sentence into one query. It holds the schema, the business semantics, the prior turns of the conversation, and who is asking. A growth question about "revenue" resolves differently than a finance question about "revenue," and the agent knows which one it is talking to.

A typical chain in his day looks like this:

  1. Which properties dropped occupancy more than 10% week over week?
  2. For those, what changed in channel mix?
  3. Which of those channels had a rate parity issue?
  4. Show me the refund rate for those bookings.

Four questions, one thread, no ticket filed, no engineer paged. By his own count it is about four hours a day of active use — and he considers the chained-question behavior the single most powerful thing about the product.

Arun, backend engineer: from 2-3 fixes a month to 5 a day

Arun owns database performance. The old workflow was reactive and expensive: something gets slow, someone complains, he opens pg_stat_statements, stares at a normalized query, guesses at an index, tests it, ships it. Realistically that produced two or three real fixes a month.

The bottleneck was never his ability to write the fix. It was the investigation.

-- the old Monday morning ritual
SELECT queryid, calls, mean_exec_time, total_exec_time, rows
FROM pg_stat_statements
ORDER BY total_exec_time DESC
LIMIT 20;
-- ...and then two hours of EXPLAIN ANALYZE archaeology

DeepSQL inverts it. The recommendations are already sitting there when he opens the workload view: the offending statement, the plan, the specific reason it is slow, the proposed index or rewrite, and the projected impact. His job is review and apply, not discover and diagnose.

He now fixes around five queries a day.

That number matters less than what it implies. At 2-3 fixes a month, performance debt accumulates faster than it gets paid down. At five a day, the backlog actually shrinks, and slow queries stop being a quarterly firefight.

Killing Retool and Appsmith

Arun was also the person who built internal and customer-facing dashboards. That meant Retool and Appsmith: drag components, wire queries, manage state, handle auth, deploy, maintain. Every enterprise customer who asked for "just one custom view" turned into a small project.

He tried building dashboards with Claude directly. The generation part worked fine. Hosting did not — a generated React app still needs somewhere to live, an auth story, a connection to production data, and someone to keep it running. That is the unglamorous 90% that kills most internal tooling shortcuts.

DeepSQL closed that gap because dashboards and hosting are built in. The agent already has a live, permissioned connection to the database and the semantic context to know what a "booking" is. Building a dashboard is a conversation, and the result is hosted immediately at a shareable URL.

Custom dashboards for enterprise customers went from a sprint item to a minutes-long task. Retool and Appsmith were switched off.

Why this compounds

There is a quieter reason this worked at Stayflexi. Every question Amit asks and every fix Arun applies runs against the same shared context — the schema, the workload history, the business definitions. The growth team is not querying a stale warehouse copy while engineering optimizes production. They are looking at the same source of truth, through the same brain.

That also means the mistakes get caught earlier. A dashboard that quietly full-scans a 400M-row bookings table shows up in the same workload view as everything else, on the same day, instead of surfacing three months later as a bill. Database mistakes are the kind you cannot cleanly revert at scale — you do not roll back a partition key on 5TB. Seeing them the day they appear is the whole game.

What DeepSQL does about this

DeepSQL keeps a persistent context layer over your database — schema, query history, business semantics, and who is asking — so questions can be chained instead of restarted, and follow-ups can be suggested rather than guessed. Workload analysis runs continuously and keeps index, rewrite, and pre-aggregation recommendations pre-computed with projected impact, so fixing a slow query is a review step rather than an investigation. Dashboards are generated from that same context and hosted directly, which removes the Retool/Appsmith build-and-maintain loop and the hosting problem that blocks LLM-generated internal tools. For Stayflexi, that collapsed BI, performance work, and internal tooling into one surface that both a growth lead and a backend engineer use daily.