Thoughts / Analytics & decision-making

Behind the
numbers.

I’m interested in what makes analysis useful: the questions we ask, the assumptions we make and how the findings change a decision. This section brings together my personal takes on analytics practices, marketing measurements, computer science, working with AI, and everything related to these themes that I find interesting enough to deep-dive into.

· Reflection

One slash, several different things

Commands, context and reusable skills: exploring what sits behind a small slash menu, and why the process matters more than the shortcut.

Read article

One of the things I’m enjoying about exploring AI tools is discovering how much sits around the chat box.

You can spend ages working on the wording of a prompt, then type / and find a menu of options you hadn’t really investigated.

Naturally, this sent me down another rabbit hole. Were these commands? Tools? Skills? And was the slash doing the same thing in each application?

As it turns out, not quite.

Same character, different purpose

In the ChatGPT desktop app, the slash menu provides commands and can include enabled skills. Available options depend on the environment and access. The official reference explains the distinction.

In Microsoft 365 Copilot, / can help you reference a file, person, meeting or email. You’re pointing it towards information to use, rather than necessarily activating a workflow. Microsoft describes that here.

Claude Code also uses slash commands, including commands that invoke skills. That’s specific to its coding environment, rather than a description of every Claude interface. Its command guide covers the options.

A small character carrying quite a few different responsibilities.

The useful distinction for me is between choosing an action, supplying context and specifying a way of working.

Skills are where it gets interesting

A skill packages instructions and supporting resources for a repeatable task. Think of it as giving the assistant a playbook, potentially including templates, examples or scripts. (Excuse the Americanism... “Operating manual” didn’t have quite the same ring to it as “playbook”!)

OpenAI’s skills guide explains that approach.

For example, imagine reviewing a monthly performance report.

I might want the assistant to check the reporting period, distinguish booking dates from stay dates, flag unexplained changes and separate observations from proposed explanations.

I could type those requirements every time. Or I could capture the process in a reusable skill, then refine it as I discover what it misses.

That doesn’t train a new model or guarantee a correct result. It gives the system a more explicit approach to follow.

The shortcut is only the entrance

Then comes the “so what?” question. I’m not particularly fussed about saving a few keystrokes, if I’m honest.

Creating a useful skill means thinking carefully about the task itself. What information should we start with? Which checks matter? What should the assistant do when something is missing?

Those questions sound familiar from managing analytical work.

There’s also a useful boundary to remember: a skill describing how to handle confidential data doesn’t replace permissions controlling access to it. A playbook and an enforced restriction serve different purposes.

Anyway, I started by wondering what a slash menu could do and have probably come away more interested in how we capture good working practices so they can be reused and improved.

The menu makes a capability easier to find, but the process behind it makes it worth using.

Have a look at the commands and workflow options in whichever AI tool you use. Try / where it’s supported. Exploring what’s available can be just as useful as perfecting the next prompt.

· Reflection

The thinking before the query

The Haaland Paradox, stakeholder conversations and the analytical work that happens before we touch any data.

Read article

A slightly different starting point for this post: I had Manchester City’s 3–1 defeat to Nottingham Forest on in the background while working.

It brought me back to a familiar debate about Erling Haaland. He can spend long stretches barely touching the ball, yet remain the player everyone worries about. When he scores, the touch count becomes less of a concern. When he doesn’t, the questions return.

That apparent contradiction prompted my Haaland Paradox research concept. It also gave me an enjoyable way to explain something less visible about analytics leadership: the work before we touch any data.

Before deciding what to measure

“Is the striker involved enough?” sounds like a straightforward question. But a coach concerned about build-up play and a recruitment team considering a signing could mean very different things by it.

The same happens in commercial analytics. A request arrives with a question, perhaps even a proposed output, but we still need to understand the concern behind it.

What has the stakeholder observed? What decision are they facing? What would they do differently with a credible answer?

I see helping establish that as part of my responsibility. We could produce technically sound work and still leave the stakeholder’s actual concern unresolved.

Give the project a direction

There will often be several plausible approaches. Before committing, I want to discuss what each could tell us, what it would require and where it might fall short.

That gives us a basis for agreeing scope and priorities. It also helps distinguish what we can reasonably promise from what we first need to explore.

With the Haaland concept, I’ve deliberately stopped at a proposed research framework. It demonstrates how I would structure the problem and consider possible routes, without pretending those routes have produced findings.

This early thinking should remain open to challenge. The point is to give the project direction while making room for the evidence to change it.

AFK is still work

Time away from the keyboard, pondering an explanation or talking through a concern, doesn’t always produce an immediately visible output. Yet it can change an entire project.

My digital performance reporting project is one example. Thinking beyond the requested dashboard led me to address the work involved in producing the finished report.

If a dashboard is the visible tip of an iceberg, much of the coding sits beneath the surface. The reasoning that shaped the project reaches deeper still: why this problem, whose decision, and what would make the work worthwhile?

I’ve explored that thinking in The Haaland Paradox research framework.

For me, leading a data project includes giving people room for those conversations and making sure they lead to a shared understanding of what we’re trying to achieve, with the querying coming later.

And whatever a future investigation reveals, Erling Haaland remains a ridiculously good striker.

· Reflection

AI guardrails: more than “please don’t do that”

A dealership chatbot, a $1 Chevrolet and an airport reflection on the difference between instructions and enforced boundaries.

Read article

Another airport, another opportunity to reflect. I’m heading back to Dubai, and apparently my idea of passing the time now involves reading about chatbots misbehaving.

I stumbled across this Business Insider article from December 2023. People had persuaded a car dealership’s AI chatbot to stray from its intended purpose, including writing Python and agreeing in a chat to sell a car for $1. Unsurprisingly, the guy didn't bag himself a Chevy for a dollar (gutted), but more pertinently, the chatbot actually did make a promise that it had no authority to make.

Still, quite the conversation to have with your digital sales assistant.

It got me thinking about guardrails.

I’d initially thought of them as rules you give an AI.

  • Stay on topic.
  • Don’t disclose confidential information.
  • Don’t offer a vehicle for less than the price of a coffee.

Perhaps add “IMPORTANT” in capital letters, so it knows you mean business.

But the distinction that interests me is between telling a model how to behave and controlling what the surrounding system allows it to do.

“Don’t change the price” is an instruction, whereas preventing the chatbot from changing prices in the sales system is an enforced restriction.

Both have a role, but they are not the same thing.

Guardrails can include checks on requests and responses, restricted access to data and tools, and approval steps before consequential actions. Microsoft’s overview of guardrails and controls shows how controls can operate at different points in an AI system.

In practical terms, that means checking the input, proposed actions and output, with appropriate rules at each point. The model generates probabilistically, but controls around it, such as access permissions, can be enforced deterministically. A single check can miss something, so multiple layers help reduce the risk. They still need testing, and none of this makes the system foolproof.

For an analytics assistant, I might allow it to query approved data and draft an explanation. Sending that explanation to a client, or updating the underlying records, would need a separate decision about permissions and review.

Even without the ability to complete a transaction, an inappropriate response can still cause confusion and damage trust. Controlling actions doesn’t remove the need to test what the system says.

And testing should include people who don’t behave like the helpful user in the demonstration. People misunderstand things. They experiment. Occasionally, they decide their afternoon would be improved by negotiating a $1 Chevrolet.

I’m only scratching the surface, but my view is that guardrails deserve attention while we’re designing the job an AI will do. What does it need access to? Where should it ask? What happens when something goes wrong?

Those questions make the promise of AI more practical for me. I want useful autonomy, with boundaries that have been deliberately chosen and tested.

A worthwhile rabbit hole for the flight home. Though I’ll probably leave the aircraft systems to the people up front.

· Reflection

Looking at the job market has made me look differently at myself

How exploring the job market is changing my view of my experience, my next step and the responsibility of leading people through AI adoption.

Read article

Spending more time on LinkedIn has an interesting side effect. You start by looking at what’s out there, then find yourself questioning where you fit into it.

Lately, one thing keeps appearing: AI.

Job descriptions, company announcements, conference agendas. After attending the Data Innovation Summit in Dubai, I found myself thinking more seriously about what qualifies someone to lead in this space.

That evening, after the first day, I explored AI-generated dashboards in Claude. Something shifted for me. What might this mean for work I’ve spent years doing, and for the people doing it? That deserves a post of its own, but it brought the question much closer to home.

How much technical depth do you need? What experience counts? And how do you demonstrate it?

These have become personal questions.

What makes an AI leader?

AI itself isn’t new. There are people with years of research, engineering and deployment experience that I wouldn’t pretend to have.

But the current wave of adoption is creating leadership responsibilities that many organisations are still figuring out. Reading some vacancies, I wonder whether the expectation of a ready-made candidate has moved faster than the understanding of the role.

A recognisable company name on a CV doesn’t, on its own, answer those questions. Neither does adding “AI” to a job title.

I want to understand what someone has actually delivered, what they learnt and how they made decisions when the answer wasn’t obvious. I’d expect the same scrutiny of me.

That has helped me see my own experience differently. Understanding data quality, challenging assumptions and translating commercial needs into useful work are familiar responsibilities. So is leading people through change.

Those foundations matter when introducing AI. They don’t remove the need to learn the technology, but they give that learning somewhere useful to land.

A slightly uncomfortable moment of clarity

For the first time in perhaps 15 years, I feel I’m at a point where my next career decision could meaningfully change my direction.

There is excitement in that. Some fear too.

I have a strong desire to move towards the work that interests me most, and I’m trying to be deliberate about what that means.

The opportunity to learn is extraordinary. Between AI tools, quality YouTube explanations and accessible training, I can pursue a question much further and faster than I once could. Occasionally, I feel a little like Neo being plugged into the chair to learn a new skill.

Sadly, watching a video doesn’t produce the equivalent of “I know kung fu”. Understanding still needs practice, challenge and application.

Reflecting on that, I realised I was underplaying the practice I already had. Over the past few years, I’ve been building with AI as a collaborator, often outside my day-to-day role.

Alongside my app projects, I’ve created agents to help review and organise my inbox, scheduled assistants for daily updates, and an AI news digest tailored to my interests. These are personal projects, but they involve real choices about instructions, access and what needs checking.

As I’ve built, I’ve wanted to understand. It bugs me when I can make something work without being able to explain how.

Where I want to contribute

The direction becoming clearer to me involves both the technology and the people affected by it.

I want to understand how AI works, where it can help and what foundations it needs. I’m equally interested in the decisions businesses make as that capability develops.

Which tasks should change? What training would help someone move into different work? Where should human judgement remain? How do we assess the consequences of an efficiency gain for the people whose jobs it reshapes?

I want to be involved in those decisions, bringing commercial understanding and technical curiosity alongside a responsibility towards people.

I can’t promise that every role can be protected. I do believe leaders should examine opportunities to upskill and redeploy people seriously, and consider ethics while making decisions rather than after announcing them.

Looking at the market has made me reconsider how I describe my experience. More significantly, it has made me clearer about where I want to take it.

I have plenty to learn. Right now, I also have a burning desire to get on with it.

· Technical note

What actually happens when I send an AI prompt?

From words to tokens to a fluent response: a look behind the prompt box, and why a convincing answer still needs checking.

Read article

I type a question, press Enter and watch an answer appear.

We all do this countless times a day without even thinking. And for the most part, people don't care about the 'how', only that it actually works and makes them look smart as quickly as possible. But following my recent rabbit holes into databases and data platforms, I couldn't help but ask myself what happens between those two moments. Cue going down another rabbit hole...because clearly this one is going to be layers upon layers upon layers of depth and branching. And of course, anything I find interesting enough to ramble on about, I will do so here in future blog posts!

So anyway... Is it searching for an answer? Retrieving something it learnt? Composing a response?

There are a few things to untangle. For this piece, I’m focusing on text-generating large language models, or LLMs, rather than everything that falls under “AI”.

First, my words become numbers

The model doesn’t process my sentence as a person would read it. The text is broken into units called tokens, which might represent a word, part of a word or punctuation.

Those tokens are converted into numerical representations the model can work with.

The sentence The bank is by the river becomes tokens, illustrative token IDs and numerical embedding vectors. Exact token boundaries and numbers vary by model.
From text to tokens to vectors. Token IDs and numerical values are illustrative.

And my question may only be part of the input. The application can also supply instructions, conversation history or relevant documents. Together, these form the context available for generating the response.

The box you type into is only the visible part of what the model receives. Context and memory sit quietly in the background as well.

Then it works with the context

Many modern language models use a transformer architecture. An important mechanism within it is attention, which helps the model weigh relationships between tokens.

Take “bank”. A sentence about a mortgage provides different clues from one about a river. The surrounding context helps shape how the model processes it. Google’s introduction to transformers explains the underlying idea.

During training, the model’s numerical parameters were adjusted to learn patterns from data. Those learnt patterns help it produce language, connect concepts and perform tasks.

It isn’t simply opening a folder containing a ready-made answer to my question.

The answer develops token by token

At a high level, the model calculates probabilities for what token could come next. A selection process chooses one, then generation continues using the expanding sequence.

Repeat that process and we get sentences, explanations or code. Microsoft’s LLM introduction describes this foundation.

“Predicting the next token” initially sounds rather underwhelming. Yet doing it well across varied contexts requires learning far more than spelling and grammar.

The important limitation is that a plausible continuation isn’t necessarily a true one. An answer can sound beautifully composed while containing an invented fact or an unsupported explanation.

And here's where a lot of people fall foul when it comes to AI. Don't get me wrong, AI today is ridiculously good. The fluency it delivers gives you something readable and plausible, but it doesn't immediately give you verification.

Meme by Acknowledge A.I contrasting warnings that Wikipedia is not a valid source with workplace advice to just ask ChatGPT.
Image: Acknowledge A.I (@acknowledgeai). Fluency is not verification.

Where does searching fit?

An AI application can also connect the model to search, document retrieval, calculators or other tools. The model can request an action, receive its result as additional context and use that information in its response. Anthropic describes this augmented setup here.

So generating an answer from learnt parameters and retrieving current information are different processes, even when they happen inside the same chat window.

That distinction matters when I ask about yesterday’s news or my company’s performance. The system needs an appropriate source of information, permission to access it and a way to use it correctly.

Which brings me back to governance. Apparently, I can’t leave it alone.

What I take from this

Understanding the process makes me more deliberate about what I provide and what I expect back.

I can give useful context, state the task clearly and ask for sources where the answer depends on evidence. I still need to check whether those sources support the conclusion.

What impresses me is how much can emerge from this process. What keeps me cautious is how convincing the output can be when something has gone wrong.

Pressing Enter is easy. Knowing what would make the answer trustworthy deserves more thought.

· Technical note

So, what actually is Databricks?

Following the lakehouse rabbit hole into Databricks: what it does, where Snowflake overlaps, and when I would investigate it.

Read article

I promised I’d come back to Databricks. Having explored warehouses, lakes and lakehouses, I wanted to understand where this other name I kept hearing fitted in.

I use Snowflake regularly, so that was my reference point. Was Databricks another database? A competitor? Something you use alongside it?

Sadly, there are no actual bricks involved.

More than a database

Databricks brings data engineering, SQL analytics and machine learning into a shared platform. Teams can prepare data, analyse it and develop models without assembling an entirely separate environment for each activity. Its platform introduction explains the scope.

Imagine a hospitality business collecting bookings and website events. Engineers prepare the datasets, analysts explore booking behaviour, and data scientists develop a cancellation model.

Those are different jobs, but they depend on related data. Databricks provides tools to connect that work. That helped me understand its appeal beyond simply being somewhere else to store tables.

Under the bonnet

This is where the lakehouse connection becomes clearer.

Data can sit in cloud storage, with formats such as Delta Lake providing reliable, managed tables. Processing and querying tools work over those tables.

Apache Spark, which can distribute processing across multiple machines, is an important foundation. Databricks combines it with other technology and managed services, rather than leaving each organisation to build everything itself.

It also supports SQL. You don’t need to arrive armed exclusively with Python and a machine-learning model. The components documentation helped untangle those pieces for me.

And yes, governance appears again. Unity Catalog provides access controls, lineage and discovery across data and AI assets. Shared data still needs clear ownership and permissions. More on that here.

What about Snowflake?

There is considerable overlap. “Snowflake for SQL, Databricks for Python” is a tempting shortcut, but too simplistic.

Snowflake also supports pipelines, Python and machine-learning workloads through capabilities including Snowpark. Databricks supports SQL analytics and warehousing.

So I wouldn’t choose between them based on those labels alone.

I haven’t used Databricks hands-on yet, but its appeal makes sense to me where engineering, analytics and model development need to work closely over shared data. It could reduce duplication and awkward handovers.

That doesn’t automatically justify introducing it. The team still needs the skills to operate it, manage costs and maintain the data.

My view? Start with where the current setup gets in the way. If dependable SQL reporting is already well served, another platform needs a stronger justification than appearing in every other presentation.

If moving between data preparation, analysis and model development is causing friction, Databricks looks worth investigating through a representative workload.

I’ve gone from recognising the name to understanding why I might consider it. Trying it would be the next step.

Here’s a short and informative YouTube video that brings this all together.

Watch on YouTube ↗
· Technical note

Warehouses, lakes… and now lakehouses?

A YouTube rabbit hole, some waterfront terminology, and a closer look at how data is stored and prepared for use.

Read article

Another YouTube Shorts rabbit hole. This time, I emerged wondering whether I’d spent years hearing two terms without being entirely clear on the difference.

Data warehouses. Data lakes.

Were these genuinely different things, or had I simply lived through two phases of jargon for somewhere to store data?

Then “data lakehouse” appeared. Apparently, we’d moved into waterfront property.

Dataedo cartoon contrasting an organised wardrobe labelled Data Warehouse with a pile of clothes labelled Data Lake.
Cartoon: Dataedo / Piotr. A little exaggeration for effect: data lakes can be well organised too.

Amusement aside, I wanted to understand it. I use Snowflake regularly, but being comfortable querying data doesn’t mean I’ve explored every architectural decision behind where it lives. So, here’s what helped the distinction click for me.

The warehouse: prepared for analysis

Think about reporting on hotel bookings. We want consistent dates, agreed revenue definitions and a reliable way to connect bookings to hotels.

A warehouse is designed to support analytical work like this. Data from different systems is typically cleaned, integrated and organised into tables that people can query repeatedly.

And this is where preparation does matter (yes, I'm touching a little on data governance again, I wasn't joking when I said it fascinated me!). If five people ask the same business question, ideally they’re working from the same definitions.

That doesn’t mean everything entering a warehouse is already pristine, or that warehouses only handle neat rows and columns. It describes the emphasis: organising data so it can be used reliably for analysis.

The lake: keep more options open

Now imagine we also want to retain website events, application logs, documents and other source data whose eventual use isn’t fully decided.

A data lake can hold that variety, often as files in cloud object storage, without requiring everything to fit a predefined analytical model before it arrives.

We can keep data closer to its original form and prepare it for particular uses later. AWS describes this flexibility in its introduction to data lakes.

That helped me understand the appeal. We don’t have to know every future question before retaining the data.

But “prepare it later” still means someone has to prepare it. A lake needs organisation, documentation and access controls too. Otherwise, collecting more data can simply give us more things we don’t understand.

And the lakehouse?

This was the term that initially made me raise an eyebrow.

The idea is to bring warehouse-style capabilities to data held in lake storage: reliable table updates, managed structure and efficient querying, while retaining the flexibility of that storage.

Open table formats such as Apache Iceberg and Delta Lake help make this possible. They provide a way to manage collections of files as tables, including tracking which files belong to a particular version. Databricks’ technical glossary explains these components. Oh and "Databricks" was another term that I kept on hearing of late. We'll come onto that in another post! (I'm forking off like a B-tree quite often aren't I?!)

So it’s more than putting a warehouse beside a lake and giving the arrangement an estate agent’s description.

The ambition is to support reporting and broader data workloads over shared data, reducing the need to maintain separate copies for every purpose. Whether that makes an organisation’s life simpler depends on the implementation.

Comparison of shared hotel data in a warehouse, a lake and a lakehouse. Warehouses prepare analytical tables; lakes retain files for different uses; lakehouses add managed tables over lake storage. All need governance.
Same data, different approaches. Select the diagram to view it at full size.

Where does Snowflake fit?

This is where tidy definitions start to blur.

My familiar reference point is Snowflake’s warehousing functionality. But Snowflake also supports Apache Iceberg tables with data held in external cloud storage, allowing it to participate in lake and lakehouse architectures. Its architecture documentation makes that distinction.

Incidentally, a Snowflake “virtual warehouse” is compute, rather than the place the data is stored. Another useful reminder that context matters.

I’ve come away thinking less about which label belongs on a platform and more about how the data is organised, what work it needs to support and who maintains it.

The terminology still amuses me. But there are meaningful choices underneath it, and I’m glad a bit of doom scrolling prompted me to understand them better.

· Reflection

I went to hear about Analytics. I came away thinking about AI and governance.

An airport reflection on two days at Data Innovation Summit MEA, and why the foundations behind AI kept pulling me back.

Read article

I’m writing this from the airport, waiting for my flight to the UK. It’s been a whirlwind few days, but that’s a story for another day. For now, I’ve finally got some time to sit down and reflect on the Data Innovation Summit MEA 2026, held at the JW Marriott Hotel Marina in Dubai.

Two days of listening, learning and generally being a sponge.

Data Innovation Summit MEA 2026 event graphic: Embracing the Transformative Value of Data and AI. JW Marriott Hotel Marina, Dubai, 14–15 October.
Data Innovation Summit MEA 2026 · JW Marriott Hotel Marina, Dubai · 14–15 October.

One of the things I enjoyed most was seeing the sheer breadth of this profession. You know that data and analytics operates across every sector, but being in a room with people doing that work in so many different companies brings it to life differently.

There were familiar ambitions: personalisation, revenue generation, upselling, loyalty. But the approaches varied considerably. Even companies in the same industry can organise their data differently, give it different weight in decisions and have very different ideas about what to do next.

It was a useful opportunity to look beyond the environment I spend most of my working life in.

Two themes particularly stayed with me. At first, they felt like opposite ends of the conversation: front-end AI and data governance.

AI, naturally

It sometimes feels as though no professional conversation can happen without those two letters appearing. Leave them out and you risk being mistaken for a dinosaur.

At least we have “Gen AI” and “LLM” to vary the vocabulary. I jest.

The attention is understandable. I’m captivated by it too. Hearing the presentations made me want to understand more about what sits behind the interfaces, how the technology functions and how companies should actually introduce it into their work.

It also brought me back to questions about the physical infrastructure supporting all this. The computing demand, power and cooling involved are easy to overlook when your experience of AI is a box you type into. I gave a presentation exploring the environmental impact of AI to my team last year. Perhaps that's something to share here another time.

But the thought I kept returning to was closer to my own work: what happens when we connect these increasingly capable interfaces to corporate data?

Which brings me to governance

I didn’t expect to leave feeling quite so interested in data governance. It’s usually the part of the agenda where the spreadsheets multiply, the acronyms breed, and even the most dedicated geeks start checking the clock.

It doesn’t have the immediate appeal of an AI demonstration. It can sound like an IT responsibility, somewhere behind the scenes, concerned with rules and documentation.

Yet I found myself connecting it to problems I recognise very well.

Tables multiply. Schemas expand. Different versions of a measure appear. Something once understood to be the single source of truth becomes harder to identify with confidence.

I’ve wrestled with that in my own work. Finding a table is one thing. Establishing whether it is the right table, what its fields mean and whether its definitions still hold is another.

Good architecture matters, but it needs ownership and discipline around it. Someone needs to be responsible for the data. Definitions need to be documented, lineage established, changes understood and access considered.

Now put an AI interface in front of that environment.

If someone asks a question in plain English, which source should it use? How should it distinguish between two similarly named measures? What should it be allowed to retrieve, and how would anyone check the answer?

Those questions made the relationship between governance and AI feel much more immediate to me. It's all well and good everyone thinking that they're AI experts when they type prompts into Claude or Copilot, but real work needs to be done behind the scenes by people who care: data governance people!

Better governance won’t, by itself, guarantee a correct AI answer. But unclear definitions and poorly understood sources give us problems before the model has even started responding. AI governance adds further responsibilities around how the system is used, evaluated and overseen.

“Garbage in, garbage out” remains relevant. A fluent answer can make the underlying mess rather less visible.

A good reason to get out more

I thoroughly enjoyed the two days. A particular thank you to Chris from Collibra and Saima from OSN. Your presentations stayed with me, both for the content and for the way you delivered them. There were things to learn there about presenting, as well as data usage behind the stories.

It did leave me wondering why I haven’t attended more events like this.

You get absorbed in your own responsibilities. There is always another request, another deadline, another problem to solve. Stepping outside that for a couple of days gave me room to meet people, hear different perspectives and follow my curiosity.

I expected AI to hold my attention. I hadn’t expected governance to keep pulling me back.

Sitting here waiting to board, that’s probably the most useful thought I’m taking away: the interface may be the part everyone sees, but I’m increasingly interested in how well we understand what sits behind it.

· Technical note

Behind the query: how database indexing works

What happens behind a familiar query? A short look at B+ trees, signposts and the work a database avoids doing.

Read article

I’ve become increasingly fascinated by the technicalities of computation. What is actually happening behind the curtain when I do something I’ve done thousands of times over the years?

Maybe this becomes a little series. Maybe it doesn’t. For now, I’m putting my thoughts down because I find it interesting.

What is so interesting, I hear you ask? Database indexing! Riveting stuff, I know.

It wasn’t something I’d particularly sought out to understand in the busyness of simply executing queries. But stick with me. The idea is surprisingly approachable.

Let’s say we have a table of 15 Apple Store managers and the locations they manage. Finding Mohsin by checking every row is hardly a demanding task.

Now imagine a million rows. Clearly, we’ve moved beyond Apple Store managers, but you get the idea. Searching the whole table to find one person starts to look wasteful.

For this example, we create a separate index containing the names in sorted order, alongside a way to locate their original records. We haven’t rearranged the table itself.

“But that list is just as long!”

Yes. This is where the tree comes in.

Following the signposts

B-trees are balanced search trees. Each branching point can lead to many destinations, rather than just two. A common database variation is the B+ tree, where the upper levels act as signposts and the bottom level, the leaves, holds the entries we’re looking for.

Imagine our sorted names occupy three blocks, called pages. A page above them contains two signposts: H and P.

In our simplified example, names before H go left, names from H up to P go into the middle, and names from P onwards go right.

We’re looking for Mohsin. M falls between H and P, so the database follows the middle pointer. It searches that page for the matching entry, then uses its row locator to retrieve the store location from the table.

That locator isn’t necessarily a spreadsheet-style row number. Its form depends on the database.

The useful idea is that we’ve avoided visiting the other pages entirely. Microsoft’s index guide explains this structure in more detail.

Three dotted search ranges surround boxed H and P separators. Mohsin is found in the middle leaf and points to illustrative row 12; Hannah points to row 5.
Follow the crimson path: choose a branch, find the entry, retrieve the record.

What happens when it gets bigger?

Eventually, there are too many leaf pages for one page of signposts.

So we add another level. The root points to intermediate pages, which point to the leaves. Each step narrows the search.

Suppose each branching page points to 200 pages, and each leaf holds 200 entries. Three levels could then accommodate roughly eight million entries: 200 × 200 × 200.

That’s illustrative arithmetic, not a fixed capacity. Actual sizes vary.

And it doesn’t mean “eight million checks become three checks”. We’re counting visits to index pages, each involving its own comparisons. Fetching the table record may require further work.

Still, that’s a remarkably short route through a large amount of data.

A three-level index with root, intermediate pages and leaves. One route is highlighted. With 200 child pointers per branching page and 200 entries per leaf, illustrative capacity is eight million entries.
More data, another level. Page visits and individual comparisons are different measures.

B+ tree leaves are also linked in order. For a range of names, the database can find the starting point and follow neighbouring leaves.

There is a maintenance bill

When data changes, the database updates the relevant indexes. An insertion into a full page can cause a split and updates to the signposts above it. New rows don’t universally go to the “bottom” of a table.

Extra indexes therefore cost storage and write effort. A primary-key index won’t automatically help a search by name, and maintaining multiple indexes is normal, rather than inherently error-prone.

The database may also decide a scan is cheaper, particularly for a tiny table or a query returning much of it. PostgreSQL’s introduction covers that trade-off.

That’s what caught my attention. Behind a familiar query is a carefully maintained structure that helps the database work out how much it can avoid reading.

I’ve spent years asking for the result. It’s quite satisfying to understand a little more about the journey.

· Essay

Analysis, analytics, and what I meant in 2020

Revisiting a distinction I drew in 2020, and what AI makes me want to explain more clearly about my profession.

Read article

In 2020, I wrote a LinkedIn post about the difference between “analysis” and “analytics”. It followed a conversation in which I was trying to explain what I did for a living. The Chandler Bing problem, for anyone who remembers nobody quite understanding his job.

Friends: “What is Chandler Bing’s job?”
The Chandler Bing problem: explaining what you actually do.

I wanted to explain that my work involved more than reporting what had happened. I drew a distinction between analysis as looking backwards and analytics as using that understanding to shape what happens next.

I still agree with the sentiment. I was a little too neat with the definitions.

Analysis can be forward-looking. Analytics includes understanding past performance. The words overlap, and the dictionary definitions I quoted didn’t quite support the boundary I drew between them.

But the question underneath that post feels more relevant to me now: how do I explain the value of an analytics professional when producing an analysis is becoming so much easier?

The output is easier to see

With AI, much of the work involved in producing an analysis can be delegated. Calculations, code, summaries and charts can be generated quickly, often at a scale that would previously have required considerable time.

That changes the work. It also makes it easier to produce something that looks like competent analytical thinking.

I can ask a tool to explain a movement in performance and receive a convincing answer. Whether that answer deserves my confidence depends on much more than how clearly it is written. Did we give it the right data? Is the comparison appropriate? Has it identified an explanation, or simply described a pattern in persuasive language?

Those questions were part of the job before AI. The speed of producing an answer gives me more reason to ask them.

My concern is that the appearance of an analysis can be mistaken for evidence of the expertise behind it. A polished chart is visible. The judgement involved in deciding whether to trust it is harder to show.

Some of the work happens in conversation

When I think about where I contribute most, a significant part happens in discussion with other people.

Someone questions a result because it doesn’t fit what they are seeing in their business. I need to understand whether they have identified missing context, misunderstood the measure or raised a problem with the method. Sometimes their challenge changes my interpretation. Sometimes I need to explain why the finding still stands.

That exchange requires more than presenting the numbers confidently. It requires listening carefully enough to understand the objection and being willing to reconsider my own position.

Collaboration also helps establish what we should be examining in the first place. An initial request may describe a symptom, or arrive with a proposed solution already attached. Understanding the concern behind it can change the work we choose to do.

AI can help me prepare for those conversations and explore alternative explanations. I still have to participate in them, understand what matters to the people involved and take responsibility for the recommendation I make.

That contribution rarely appears as a distinct item in the finished presentation. Yet it can determine whether the work is useful at all.

How I would explain it today

In 2020, I reached for a distinction between two words because I wanted to explain the breadth of my profession. Today, I would spend less time defending that distinction and more time explaining what I am accountable for.

I need to understand the question well enough to choose an appropriate approach. I need to judge the evidence, including its limitations, and work with others to establish what it means for a decision. Producing the analysis is part of that responsibility, even when AI does much of the execution.

Access to those tools should help more people work with data. I welcome that. But access alone doesn’t establish whether someone can recognise a misleading result or handle a well-informed challenge to their conclusions.

Perhaps that is what I was reaching for in the original post. I wanted people to see the thinking beyond the report.

Now that a report can be produced in moments, I need to be clearer about that thinking, how I apply it and why someone should trust it.

· Essay

When a dashboard isn’t the answer

A dashboard brief is a starting point. Understanding the work around it can change what I choose to build.

Read article

When someone asks me for a dashboard, I want to understand what they hope will become easier once it exists.

I haven’t always given that question enough attention. Earlier in my career, I was more inclined to accept a dashboard brief as a settled description of what needed building. I would question the measures, data and design, but give less thought to whether the proposed format was right.

One reporting project changed that.

A team was spending a substantial amount of time gathering data, manipulating it in Excel and assembling presentations for hotels. They wanted a dashboard to reduce the burden.

The example decks varied across associates, and sometimes between hotels supported by the same person. Before building anything, I needed to understand those differences. Were they responding to particular needs, or simply reflecting how the reporting had evolved?

Then there was the work that would remain. Even with the data in a dashboard, associates would still have to turn it into a presentation. We could deliver what had been requested and leave a significant part of the original problem unresolved.

Room to rethink

That realisation took me away from our established dashboard template. I experimented with views designed as complete presentation slides, which could be selected and exported into a reporting pack.

The finished report became the endpoint of the design.

Looking back, what mattered was allowing myself room to reach that conclusion. I had been asked to bring my analytics expertise to the problem, and that included questioning the shape of the solution.

I think analysts need that licence: time to understand the context, explore an idea and discuss a different approach with the people who will use it. Some of our most useful contributions emerge during that process, before we write any code.

People naturally describe requirements through solutions they know. Asking for a dashboard may be a perfectly reasonable way to express frustration with a reporting process. It gives us a starting point, but there may still be choices worth exploring together.

That exploration requires care. A process that looks inefficient may have a reason behind it. Differences between reports may reflect real needs. I need to understand enough to make a useful recommendation, rather than assume that consistency is always an improvement.

The judgement behind the build

As AI becomes more capable of helping us build, this part of the analyst’s role feels especially valuable to me.

I can use AI to explore possibilities and accelerate delivery. I still need to judge whether the proposed solution makes sense for the people using it. That judgement depends on interpreting the brief, understanding the surrounding work and deciding which compromises are acceptable.

It also means knowing when to stop. A broader solution brings maintenance and support responsibilities. In the reporting project, growing demand eventually required dedicated analytics ownership. That taught me to think beyond the initial delivery and consider what successful adoption would require.

I wouldn’t turn every dashboard request into something larger. Sometimes a dashboard is exactly what is needed. The reason to suggest a different approach has to come from a clearer understanding of the problem.

These days, I spend more time asking what happens before and after someone uses the output. What are they trying to finish? What will they still have to do manually? Would a different design remove some of that work?

The answers help me decide where to take the brief. Making space for those questions has become an important part of how I work, and how I want the analysts I lead to work.

Let's connect

Let’s start a
conversation.

Connect about analytics, strategy and considered creative work.

Connect on LinkedIn ↗