Aller au contenu

Where Relational Stops

Ce contenu n’est pas encore disponible dans votre langue.

The question this module answers: When is the normalized relational model the right shape for data, and when do we deliberately choose another one?

I have gray hair, so I can tell you what data looked like before relational databases. In the early 1980s a lot of business data still lived on tape, in fixed-width records: the first ten bytes for the person’s first name, the next ten for the last name, and so on, crammed into as small a space as possible. Every program that read the file had to know exactly where each field started. We were just breaking away from those fixed structures, and relational databases were the way out.

For the next forty years, relational won. It’s still the best shape I know for a business transaction. But notice what’s happening now. JSON documents, key-value stores, event streams, files by the million, and vectors that represent meaning as numbers. Some of those look surprisingly like the flat structures we left behind. That isn’t a step backward. It’s a sign that different jobs want different shapes.

That’s what Part 3 of this course is about, and this module opens it with one question, the one I want you asking before you draw anything: what are you going to do with the data?

In chapter 2 we built the relational habit: listen for the nouns, draw the relationships, put each fact where it belongs, and design toward Third Normal Form. Then, in Design to Third Normal Form, Then Back Off, we backed off on purpose: for the user experience, for reporting, for scale. I still teach it the same way. I like to design to second and third normal form, and then back off.

Should you go further? There are Fourth, Fifth and Sixth Normal Forms, and they solve real problems. For the systems we build on Salesforce, they’re a lot of theory, and in my experience not worth the headache. Know they exist and move on.

So when I look at any piece of data, I’m really choosing among three things, and they’re three different decisions:

  • Normalize further. Rare, for a specialized dependency or time problem.
  • Back off, but stay relational. A copied field for a report, a flattened object for an import. Chapter 2’s territory.
  • Choose a different shape entirely. A document, a stream of events, a file, a vector. This chapter’s territory.

The phrase I put on a slide for this is normalize with intent, or, said another way, normalize, but design for use. An architect who understands normalization well enough knows when they’re choosing not to use it. That’s very different from the twelve copies of a customer’s name that happen because nobody understood the model.

Here’s the first place a simple relational picture gets more interesting: time.

Steve Trucking invoices each Retail Partner per delivery. Ask “what’s Redrock’s rate per delivery?” and the answer is a field. Now ask “what rate applied to a delivery made last December, before the new contract started on January 1?” The current value can’t answer that. I need the rate as it was: a rate record for each period, with a valid from and a valid to date. That’s called effective dating, and it’s still relational. I didn’t leave the relational world. But the structure changed, because the question changed.

In class I ask it this way: when a value changes over time, do I keep snapshots of the whole record, or a history of the changes? Both are legitimate. The answer depends on what you’ll ask later. “What did this look like on March 1?” favors snapshots. “When did it change, and who changed it?” favors a history of changes.

I always tell people to look to Salesforce first: see how Salesforce itself solves the problem. And Salesforce answers this question for itself. Field history tracking keeps a history of changes, not snapshots. With Field Audit Trail, that history is kept in FieldHistoryArchive, which Salesforce describes as “a big object”, where each record “represents a single change in the value of a field” (Salesforce, Object Reference: FieldHistoryArchive (opens in a new tab), API version 68.0, checked 2026-11-28). Salesforce didn’t put years of field changes in an ordinary object next to the records people work in every day. It chose a different store, built for a very large number of rows that are written once and read rarely. History has a different shape from the current state.

Steve Trucking has the same split. The Work Order knows the delivery’s current status: out for delivery. The status history, about eight changes per delivery, every one in order with its time, is a different thing, asked for different reasons: how long did deliveries sit at “loaded” last month? We decided at Checkpoint 1 that the history goes to Snowflake while the org keeps the current state, and module 4 shows what shape that history takes there.

Three ways to keep time Three columns, three ways to keep time on Steve Trucking. Current state: the Work Order's status, holding one value, Out for delivery, overwritten at each change; it answers where is it now. A history of changes: the delivery's status events, Scheduled at 07:02, Loaded at 07:40, Out for delivery at 08:15 and so on, about eight rows a delivery, added and never edited; it answers when did it change, and how long did each step take. Effective dated: Redrock's rate per delivery, $42 valid to December 31 and $45 valid from January 1; it answers what applied to a delivery last December. Underneath: same business, three shapes of time; the structure changed because the question changed. {"author": "Steve Simpson", "blueprint": "1.0.0", "builder": "standard 1.52.0", "built": "2026-10-28", "id": "DGM-DA-BR-10", "rights": "\u00a9 2026 Twinshark LLC. All rights reserved.", "template": "comparison 0.5.0", "theme": "stevetecharc 1.4.0"} Current state the Work Order's status WHAT IT HOLDS Status = Out for delivery One value, overwritten at each change THE QUESTION Where is it now? A history of changes the delivery's status events WHAT IT HOLDS Scheduled 07:02 · Loaded 07:40 · Out for delivery 08:15 · … About 8 rows a delivery, added, never edited THE QUESTION When did it change, and how long did each step take? Effective dated Redrock's rate per delivery WHAT IT HOLDS $42, valid to December 31 $45, valid from January 1 THE QUESTION What applied to a delivery last December? Same business, three shapes of time. The structure changed because the question changed. © 2026 Twinshark LLC · stevetecharc.com
Click to enlarge

Flat on the Way In, Normalized for the Work

Section titled “Flat on the Way In, Normalized for the Work”

Here’s a pattern that shows the shape can change on purpose, even inside Salesforce.

When Keystone sends its manifest, a CSV file on the SFTP server, it arrives flat: one row per item, with the delivery, the Recipient, the address and the item all repeated on every row. It’s a spreadsheet, not a data model. Steve Trucking doesn’t need to model Keystone’s file. It needs Work Orders, line items and a Manifest. So the data lands in a flat structure first, and a process normalizes it into the model the business works in.

I’ve built this pattern with a denormalized import object, and Salesforce uses it too. The Nonprofit Success Pack loads gifts through a flat import object and splits them into contacts, accounts and donations. Data 360 does the same thing at a much larger scale: data lands in a data lake object as it arrives, and mapping it to the data model objects is where it normalizes. Chapter 10 used this pattern for RouteDesk’s history (Migration Is a Quality Project First).

Notice what that means. A flat structure isn’t a failure of modeling. It’s the right shape for arrival, and the normalized model is the right shape for work. One fact, two shapes, each with a job.

The next question is where a shape lives. I hear “why don’t we just put all the data in Salesforce?” all the time, and we answered it at Checkpoint 2 for Steve Trucking. Here’s the general rule: Salesforce should hold the data that the business processes in that org need. Keeping a record in core objects is like keeping it at the front of your office, where people work all day. History and high-volume data belong further back.

Steve Trucking’s GPS is the clean example, and it’s one of a bigger family: the Internet of Things. Sensors on trucks, meters, machines and buildings report every minute or every few seconds, all day, every day. The data is collected constantly, it’s added, never edited: a reading from 9:14 this morning is a fact about 9:14, and nobody goes back to update it. That’s the opposite of a Work Order, which changes all day until the delivery is done. Could I create GPS_Reading__c and load 200,000 records a day? Technically, yes. But what are we going to do with the data? The dispatcher needs the latest position. Analytics wants months of readings to study the routes. Neither needs every reading as a Salesforce record. Data that arrives without end and is never edited is exactly where we start thinking about bigger stores built for it.

So I ask more than “does it fit?” Here are the questions, answered for five kinds of Steve Trucking data:

Volume at year fiveHow it changesWho owns itPrivacyWhere it lives
Work OrdersAbout 2.9 million a yearAll day, until the delivery is doneSteve Trucking (the partner owns the items, address and date)Confidential: the Recipient is on itSalesforce, for 13 months
Status changesAbout 23 million a yearAdded, never editedSteve TruckingInternalThe warehouse
GPS readingsOver 200 million a yearAdded, never editedFleetLinkInternalThe telemetry platform, then the warehouse
PhotosOver 11 million a yearAdded, never editedSteve TruckingConfidential: homes, sometimes peopleObject storage, found by key
Keystone’s manifestsOne file per DC, every eveningReplaced by the next revisionKeystoneConfidential: Recipient detailsA flat file on the SFTP server, then normalized into Work Orders
  • Volume. A thousand, a million or a billion? Steve’s Number of Zeros.
  • Change. Edited all day, or added once and never touched again?
  • Ownership. Who keeps the authoritative copy? If another system owns it, do I copy it, or reach it where it lives? Chapter 14 is about reaching it where it lives.
  • Privacy. Every copy is another place to classify, protect, retain and delete (chapter 12).
  • The process. Does Salesforce need it for the work, or is it going there because Salesforce is the platform we happen to be looking at?

This is where I want you to widen the picture. A data architect used to think about tables. Now the places data lives look more like this:

  • Salesforce objects: records people work in, at the front of the office.
  • Big objects: the shed in the back of the office. Very large, rarely changed history, still in Salesforce, like the field history above.
  • Salesforce Files: documents, images and signatures, kept as files rather than fields. With Files Connect, a file can stay in an external file system and still be reached from Salesforce (chapter 3, Where Does This Data Live?).
  • Flat files: a CSV on a file server or an SFTP drop, the way Keystone sends its manifests. Simple and still everywhere.
  • Object storage: buckets of files and other binary objects, each found by its key, cheap at very large volumes. Steve Trucking’s photos live there.
  • Telemetry and time-series platforms: built for readings that arrive without end, like FleetLink.
  • Data warehouses and data lakes: structured for analysis, or raw and kept for later. Module 4.

None of these is a database in the way chapter 2 meant it, and every one of them holds Steve Trucking data. Salesforce is still where the business runs. The architect’s job is to know which shape goes where, and why.

What are you going to do with the data? On the left, highlighted, the question: what are you going to do with the data? Ask it before you draw a table, an object or a file: the job decides the shape, and every shape starts here. Five arrows lead to five jobs on Steve Trucking, each with the shape that fits it. Run the business: the Work Order, relational and normalized, this module. Follow it over time: GPS readings and status changes, written once and never edited, module 2. Keep it as it came: Redrock's JSON manifest and the photos, module 3. Analyze it: the partner scorecard and five years of deliveries, module 4. Find it by meaning: damage claims that say the same thing in different words, module 5. Underneath: the job decides the shape; ask before you draw. {"author": "Steve Simpson", "blueprint": "1.0.0", "builder": "standard 1.52.0", "built": "2026-10-28", "id": "DGM-DA-BR-11", "rights": "\u00a9 2026 Twinshark LLC. All rights reserved.", "template": "cells 0.4.0", "theme": "stevetecharc 1.4.0"} THE QUESTION THE JOB, AND THE SHAPE THAT FITS IT What are you going to do with the data? ask it before you draw a table, an object or a file. Run it, follow it, keep it, analyze it or find it: the job decides the shape, and every shape starts here Run the business the Work Order: relational, normalized (this module) Follow it over time GPS readings, status changes: written once, never edited (module 2) Keep it as it came Redrock's JSON manifest, the photos (module 3) Analyze it the partner scorecard, five years of deliveries (module 4) Find it by meaning damage claims that say the same thing in different words (module 5) run it follow it keep it analyze it find it The job decides the shape. Ask before you draw. HOW TO READ IT the question every shape starts from © 2026 Twinshark LLC · stevetecharc.com
Click to enlarge

This is the change in thinking I want you to take from this module. Earlier in the course we asked, over and over, where does this fact belong? We still need that answer: an authority, an owner, a lineage. But one business thing can have more than one physical shape, each built for a job.

Follow one Steve Trucking delivery:

  • The Work Order in Salesforce: relational, normalized, where the work happens.
  • Redrock’s manifest as it arrived: a JSON document.
  • Its status changes: a history of events in time order, in Snowflake.
  • The truck’s GPS readings: a stream of measurements in FleetLink.
  • The photos: files in off-core storage, with an index that points to them.
  • Later, the damage claim’s description, turned into a vector so an agent can find similar claims by meaning.
One delivery, many shapes One Steve Trucking delivery in the middle, highlighted, identified by its partner key, REDROCK-8472914-1, which ties every shape back to it. On the left, in Salesforce: the Work Order, relational and normalized, changing all day, where the work happens; the Recipient's signature, a file in Salesforce Files on the delivery; and the damage claim as a vector, its meaning as numbers so an agent can find similar claims. On the right, outside Salesforce: Keystone's manifest, a flat file on the SFTP server (Redrock's arrives as JSON); the status history, events in time order in the warehouse, Snowflake; GPS readings, a stream from the truck in the telemetry platform, FleetLink; and the photos, objects in a storage bucket found by key. Underneath: for every shape, where the source is, who owns it, why it exists, how it stays in step, who can reach it, and when it goes away. {"author": "Steve Simpson", "blueprint": "1.0.0", "builder": "standard 1.52.0", "built": "2026-10-28", "id": "DGM-DA-BR-12", "rights": "\u00a9 2026 Twinshark LLC. All rights reserved.", "template": "cells 0.4.0", "theme": "stevetecharc 1.4.0"} IN SALESFORCE ONE DELIVERY OUTSIDE SALESFORCE The Work Order relational, normalized; changes all day; where the work happens The Recipient's signature a file in Salesforce Files, on the delivery The damage claim, as a vector its meaning as numbers, so an agent finds similar claims One delivery REDROCK-8472914-1: the partner key that ties every shape back Keystone's manifest a flat file on the SFTP server; Redrock's arrives as JSON The status history events in time order, in the warehouse (Snowflake) GPS readings a stream from the truck, in the telemetry platform (FleetLink) The photos objects in a storage bucket, found by key relational a file a vector a flat file events in time a stream objects by key For every shape: where the source is, who owns it, why it exists, how it stays in step, who can reach it, when it goes away. HOW TO READ IT the business thing every shape traces back to © 2026 Twinshark LLC · stevetecharc.com
Click to enlarge

That’s six shapes, and none of them is wrong. The architecture isn’t “put everything in one database so we know where it is.” The architecture is knowing, for each shape, where the source is, who owns it, why this copy exists, how it stays in step, who can reach it, and when it goes away. That’s what control means once the data has more than one shape.

The rest of this chapter takes those shapes one at a time: tables and the other families (module 2), structured, semi-structured and unstructured data (module 3), shapes built for analysis (module 4), and vectors (module 5).

I want to be careful with the title. “Where relational stops” doesn’t mean relational is old, or that everything should be NoSQL now, or that AI has made data modeling irrelevant. It’s the opposite.

When an agent creates an order or updates a case, I care more than ever that the order and its lines have the right structure, the right owner and the right rules. The transactional core still needs a strong model, and the data model is the hardest thing to change. AI can help draft one, but humans must design the data model. What’s changed is the range of shapes an architect has to be comfortable with, and the judgment to say both “this belongs in the transactional model” and “this job needs a different shape.” Those statements don’t contradict each other. That’s architecture.

In 2023 I made a video of two ways to keep versions of a record: as peers, the way Salesforce does quotes, and as a parent with version children, the way it does flows. The note under the video says what’s still right and what’s changed since.

STA 2.1 · Steve Data Modeling: Mastering Version Control Strategies · 8:57 · published 2023-09-08 · plays from YouTube when you click it · Watch on YouTube · More videos: Salesforce Data Architecture Videos
  • What the data will be used for, before choosing its shape.
  • Whether to normalize further, back off within relational, or choose a different shape, and why.
  • How time is kept: current state, snapshots, a history of changes, or effective-dated records.
  • Which shape fits arrival and which fits the work, when they differ.
  • Whether the data belongs in Salesforce at all: the process, volume, change, ownership and privacy.
  • For every shape of the same business thing: the source, the owner, the reason, the sync, the access and the end of its life.

Beyond the exam: AI adds consumers that want data in shapes built for them: chunks of text, vectors, summaries. That makes “what are you going to do with the data?” more important, not less. Every new shape is another copy to own, secure and keep in step, and the transactional model underneath still has to be right.