A readout to a client's leadership team
Case study

44 Farms moved all reporting off its production database

One Postgres database ran both the online store and all reporting, so every heavy report put orders at risk.

44 Farms

44 Farms · Operations

100%of reporting queries moved off the production database

The workflow before

44 Farms ran its business on a Ruby on Rails application hosted on Heroku. A single Postgres database handled customer transactions and every analytics query. Heavy reports competed with live orders for the same database, which put the store's performance at risk and capped how much analysis the team could run.

What we built

We designed a decoupled data pipeline that replicates data from the production Postgres database into a dedicated cloud data warehouse. Reporting and analysis now run against the warehouse, not the database that takes orders.

Airflow orchestrates the replication and modeling jobs, and dbt models turn raw tables into clean, tested reporting tables. Pipelines are built to fail safely and rerun without manual cleanup.

Two Blue Orange data engineers worked inside the 44 Farms engineering team, shipping alongside their developers and putting standard practices in place: version-controlled dbt models and CI/CD for data changes.

Before and after

MeasureBeforeAfter
Where reporting runsProduction Postgres databaseDedicated cloud warehouse
Reporting load on the store's databaseEvery report and ad hoc queryNone
Data modelingAd hoc queries in the app databaseVersion-controlled dbt models with CI/CD

What's next

With clean, modeled data in a warehouse, 44 Farms has the foundation for Level 2 (Connected Intelligence): an analytics assistant that answers sales and inventory questions from the warehouse in plain English.

ShareLinkedInEmail

Source data lives in a Heroku-hosted Postgres database behind a Ruby on Rails application. Replication jobs copy tables into the warehouse on a schedule, so analytics never queries the transactional database directly.

Airflow handles scheduling, retries and dependencies. dbt handles modeling, testing and documentation, with models reviewed and deployed through CI/CD.

The design was staffed as an extension of the client's engineering team, so the pipelines, conventions and deployment process stay with 44 Farms.

Next step

Let's build the case study we tell next.