Data and analytics
Pipelines, warehouses, databases and dashboards people believe.
A dashboard is only as good as the definitions and pipelines behind it. These articles are for founders, finance and operations leads, and engineering managers who keep finding that two reports disagree, that nobody opens the BI tool, or that the application database slows down as data grows. They cover the chain from source system to decision: modelling, quality tests, lineage, choosing a BI tool, and the database work that keeps applications fast.
A suggested reading order
If you are setting up reporting for the first time, read these in order:
- Choosing the two numbers your company runs on: one number for health, one for growth, and the counter-metric each needs.
- Analytics: instrument deliberately or measure nothing: how to plan product events so a simple question has an answer.
- Testing data the way you test code: the checks that catch a pipeline that runs green and loads wrong numbers.
- Data catalogues and lineage: tracing where a figure came from when two reports disagree.
- Choosing a BI tool your team will actually open: adoption, licensing models and governance, not feature lists.
- Your first data hire: who to hire first, and what they should fix before any machine learning.
If the problem is the application database rather than reporting, start with why your query is slow, then connection pooling and read replicas.
Common questions
- Do we need real-time data, or will a nightly batch do? See streaming or batch.
- Should we buy a customer data platform? Read CDP or stitched tools, which starts with identity resolution.
- Which database should a new product start on? Choosing a database for a new product argues for Postgres and says when that default breaks.
- How do we move data out of a legacy system and prove nothing was lost? See moving data between systems.
- Can we change the schema without taking the product down? Zero-downtime database migrations sets out expand, migrate and contract.
- Is an A/B test worth running on a B2B product with a few hundred accounts? Read A/B testing when you do not have the traffic.
For budgets, read what a data warehouse costs to build and run. For help building one, see data analytics and BI.
Start here
Choosing the two numbers your company runs on
A dashboard with forty metrics is a dashboard nobody acts on. Most companies need one number for health and one for growth. Read article
Choosing a BI tool your team will actually open
Most BI projects fail on adoption, not capability. The tool that gets used beats the tool that scored highest on the evaluation matrix. Read article
Testing data the way you test code
A pipeline that runs successfully and loads wrong numbers reports itself as green… Read article
Zero-downtime database migrations
The trick is never changing schema and code at the same time. Everything else follows from that… Read article
Data catalogues and lineage: knowing where a number came from
When two dashboards disagree, the argument is never about the dashboards. It is about which pipeline produced which number, and nobody can say. Read article
Your first data hire
Hiring a data scientist into a company with no reliable pipeline gives you an expensive person maintaining a spreadsheet. Read articleMore on Data & analytics
-
Storing time-series data without your database falling over
Sensor readings, metrics and event counts share a shape that general-purpose databases handle badly once the volume arrives.
-
Do you need a customer data platform, or four tools talking to each other?
The pitch is a single view of the customer. The reality is usually a expensive integration project with a dashboard on top.
-
Sharding a database: the last resort, and how to delay it
Splitting data across servers solves a scaling problem and creates a permanent complexity problem. Exhaust the alternatives first.
-
Search and sorting in Indian languages
Alphabetical order does not mean anything in Devanagari the way your database assumes, and users type Hindi in Latin letters half the time.
-
A/B testing when you do not have the traffic
Most Indian B2B products will never have the volume for a significant test, and running one anyway produces confident nonsense.
-
Choosing a database for a new product
Start with Postgres. The interesting question is what would have to be true for that to be wrong…
-
Why your query is slow: reading an execution plan
Adding an index is the usual guess. Reading the plan tells you whether it would have helped…
-
Search relevance: why exact matching disappoints users
Users do not type what is in your database. Bridging that gap is the whole of search…
-
How we cut a client's data pipeline costs by 62% with AI
A behind-the-scenes look at the architecture and modeling choices that made a dramatic difference…
-
Connection pooling: the limit you hit before CPU
Adding application servers made it slower. That is usually connections, and the fix is counterintuitive…
-
Data modelling: normalise first, denormalise deliberately
Duplicated data is a correctness decision disguised as a performance one…
-
Moving data between systems without losing any
The migration script is the easy part. Proving afterwards that everything arrived is the work…
-
The N+1 query and other ways an ORM surprises you
One line of readable code becomes four hundred database round trips, and nothing in the code says so…
-
Streaming or batch: how fresh does the data need to be?
Real-time is a requirement people state and rarely need. The honest question is what decision the data changes…
-
Read replicas: buying capacity, paying in staleness
The user saves a change, the page reloads from a replica, and their change is gone. That bug is the whole topic…
-
Analytics: instrument deliberately or measure nothing
Six hundred event types, no naming convention, and nobody can answer how many people finished signing up…
Other topics
Have a question these articles don't answer? Send it to the engineers who wrote them.
Ask an engineer