Metricbrook
A Retool reporting migration that separated interactive dashboards from heavy exports
- Custom
- Customer reporting and analytics
- Retool Classic
28days
Delivery
12/12
Report agreement
820ms
80.5% lower
Dashboard response, p95
110s
64.5% lower
100,000-row export, p95
Illustrative before/after figures.
The product
Analysts filtered account dashboards and prepared exports; administrators controlled access; customer recipients received scheduled files. One daily source update populated the existing Postgres reporting database. Totals needed to agree across screens and files, including timezone and rounding rules. Retool Classic components, queries and JavaScript transformations encoded part of that contract. The objective was an owned operational application around the same reports, not migrating two million rows out of Retool as though it were their storage system.
The challenge
The operations lead came with slow dashboards during export peaks and a requirement to run the tool independently of the Retool runtime. Self-hosting Retool and tuning existing queries were considered. Profiling separated inefficient query work from blocking export orchestration. In this story, ownership plus the need for workload isolation justified a rebuild. An exported Classic app definition was useful evidence for components and queries, but its resource configuration and secrets still required a separate inventory.
The reporting lead asked for the same trusted numbers without waiting behind a large export. The engineering sponsor also wanted a tool that could run independently of Retool Classic. We recovered query and transformation rules, distinguished the app definition from its connected data resources, and kept the existing database authoritative. The acceptance question was whether simultaneous screen use, export and ingestion produced correct, permissioned output at a declared freshness.
How we tackled it
- 01
Recover the report contract. We compared Classic components, queries and transformations with independently approved totals, filters, timezones and rounding rules.
- 02
Keep the data authority. The existing Postgres source remained authoritative while new indexed views and versioned queries were tested separately.
- 03
Isolate exports. A worker produced files from consistent snapshots without blocking interactive requests or duplicating scheduled delivery.
- 04
Prove independent operation. The new application deployed without the Retool runtime, using customer-controlled resource configuration and a complete-batch freshness indicator.
What we built
Next.js and TypeScript served the application. Postgres held account metadata and the reporting data layer, with Drizzle used for application mappings. A worker processed ingestion and exports, and private storage retained generated files under a defined expiry policy. Authentication and account-scoped authorisation applied to both page requests and scheduled jobs. The initial architecture avoided a separate warehouse until profiling justified its additional operations.
The rehearsal compared all 12 reports with independently specified outputs. Tests included duplicate source batches, missing rows and a permission change before a scheduled report ran. Shadow processing compared old and new output without sending duplicate notifications. Cutover used a complete ingestion checkpoint. Recovery retained that checkpoint and delivery state, preventing the previous route from importing or sending the same work twice.
Before & after — illustrative results
The illustrative workload runs 30 interactive sessions for 30 minutes against two million rows with five exports active. Export figures use the same 100,000-row file definition and check content as well as completion time. Freshness is measured from source availability to a complete visible batch. The values show a consistent comparison; they do not establish that code or a warehouse always costs less than the previous platform.
Illustrative before/after values. No tests or client measurements were performed for this story. The comparison conditions describe how an equivalent real migration would be evaluated; they are not a test report.
| Metric | Before | After | Comparison conditions |
|---|---|---|---|
| Report agreement | 10/12 reference reports match | 12/12 match | Same definitions; exact monetary/count checks and explicit numeric tolerances. |
| Dashboard response, p95 | 4,200 ms | 820 ms — 80.5% lower | 30 sessions, two million rows, five concurrent exports, 30 minutes. |
| 100,000-row export, p95 | 310 seconds | 110 seconds — 64.5% lower | Five concurrent exports; verify filters, row count, permissions and snapshot. |
| Complete-batch freshness | 45 minutes after source availability | 12 minutes — 73.3% lower | Same daily batch; incomplete or failed loads flagged separately. |
| Prepare a scheduled-report exception investigation, median | 32 min | 9 min | Ten partial-batch or wrong-filter fixtures; same analyst; reproduce the exact snapshot before resolving the exception. |
| Reporting workspace LCP, lab p75 | 5.4 s | 2.2 s — 2.5× faster | Ten fixed dashboards; 40 loads each; same device/network and five concurrent exports; source is the Classic application. |
The outcome
Metricbrook ended the example with a freshness indicator users could interpret and exports that no longer shared the same execution path as every dashboard request. Handover included query plans, metric definitions and batch-replay procedures. The receiving team could reproduce a report from its snapshot and replay ingestion without doubling totals. The case sells an architecture chosen for an actual workload, not a larger infrastructure bill by default.
Why these improvements mattered
The owned interface exposed snapshot identity and export status rather than hiding long work behind a request. Query tuning and separate workers explain the performance change; the Retool label alone does not. Source database retention also reduced migration risk by avoiding an unnecessary database move.
Scope & timeline
Scope
Custom delivered a workload profile, versioned metric contract, interactive query path and asynchronous export service. The 12 existing reports and one ingestion path defined the boundary. Bubble to Code retained filter and calculation semantics while separating operating workloads. The trade-off was a visible delay for some aggregate updates. Each dashboard and export identified its data snapshot rather than suggesting every value was live. The source was specifically Retool Classic. Its app definition, resource bindings and separately maintained queries were inventoried independently; a JSON or Toolscript export was not treated as a deployable replacement application.
Delivery timeline
Delivery schedule: 28 working days. Team: Two senior engineers, shared QA and an analyst who owns the report definitions. The clock starts after scope approval, usable source data, test access and agreed UI are available. Waiting for external approvals is excluded. This is a bounded example, not a turnaround guarantee.
Days 1–5: inventory Classic definitions, resource bindings and metric rules.
Days 6–17: rebuild the interface and separate export execution.
Days 18–25: compare all reports under mixed load and test batch recovery.
Days 26–28: switch the accepted operational journeys and hand over.
FAQ
- Is exporting or self-hosting a Retool Classic app the same as owning an independent application?
- No. A Classic app export describes the Retool application, and self-hosting still uses Retool. An independent rebuild needs its own UI, execution logic, resource configuration and deployment.
- How do you compare dashboard performance fairly?
- Use the same data and query mix with the exports and background work that normally compete for resources, and verify report correctness.
Discuss a similar migration
Bring the Retool Classic app definition, the resource inventory and the report that slows down when exports run. Let’s compare tuning, self-hosting and an independent rebuild using the same workload. Book a Custom migration review to define the report contract and ownership boundary before selecting infrastructure.
