A 40-Year Career as a Dataset: Event Sourcing, Version Compatibility, and Retrieval Design
This article uses a four-decade career biography as a case study to demonstrate a reusable data modeling method for long-lived entities. It walks through five steps: separating event time, valid time, and transaction time; splitting entities to remove ambiguous fields; applying event sourcing with append-only corrections; using dual timestamps to reconstruct state at any point in time; and managing the lifecycle with a state machine. Each step is illustrated with SQL examples applied to concrete timeline nodes, and the approach is mapped to software version release management. The method helps teams answer two questions reliably: what did an entity look like at any given moment, and how did it become what it is today.
1. Introduction: A Career Is an “Evolving Dataset”
The source material has two parts: a structured summary containing fields such as name, nationality, birth and death dates, occupation, group affiliation, active years, representative works, and major achievements; and a chronological narrative covering early life, career progression, album releases, and anniversary performances. At first glance, this reads like an ordinary biography. But from a data modeling perspective, it is essentially an archive of a long-lived, continuously evolving entity: one subject that generates new events across more than forty years, where every event carries attributes such as time, works, achievements, and exposure channels.
If you read it only as text, the experience is pleasant enough, but it does not hold up to a few technical questions:
- How does the state of the same entity change over time? The source material mixes a span label like “active years: late 1960s” with concrete milestones such as “formed a band at 16” and “1972: Kiss Me topped charts in multiple countries,” all in the same summary. A span label describes “continuously active since a certain stage,” while a concrete milestone describes “something happened at a specific moment.” When both share the same “time” field, the data cannot answer a question like “what was his status in 1990.”
- How do you judge whether a fact is new or outdated? The material contains both “began performing at 16, went to Paris at 17” and “recorded a first 45 rpm single in 1967,” which can mislead readers into treating the single as the starting point. The material actually states that his career began in the “late 1960s”—an early hint that the time an event occurred and the time a record was captured are not the same. Without distinguishing them, later back-filled or corrected records would overwrite information that already existed.
- How do you distinguish objects with the same name? The original Kiss Me and the new version of Kiss Me included in the 1990 album Danielle S’en Va - Kiss Me share the same title, yet they are eighteen years apart and entirely different in nature. If you use the “work title” as the unique key, the new version would directly overwrite the original.
These three questions map to two categories of difficulty: the data modeling difficulty introduced by long-term entity evolution, and the data reliability difficulty introduced by facts being corrected over time. Using this career as a sample, this article demonstrates a reusable modeling method in full. The core idea can be summarized in five steps:
- Use a time-field split to unify the semantics of time;
- Use entity-relationship decomposition to eliminate ambiguous fields;
- Use event sourcing to guarantee that no change is ever lost;
- Use dual timestamps to support time-travel to any point;
- Use a state machine to manage active, dormant, return, archived, and terminal states.
The years and dates in the example are all taken from the source material and are used only to illustrate the data shapes; nothing here evaluates any individual or product. All SQL below is dialect-neutral illustrative code, and the extraction syntax for JSON fields needs to be adjusted to the actual database in use.
2. First, Separate Three Types of Time
2.1 Definitions of the Three Types
The first step of modeling is not drawing tables but defining “time.” Nearly every question of the form “what happened to an entity at a given moment” depends on which kind of time “a given moment” refers to. The industry commonly distinguishes three:
- Event time: the time an event actually occurred in the real world, and the default time dimension for queries and aggregation. In this example, the birth date, the time of the first performance, the release year of each work, and the death date are all event times.
- Valid time: the interval over which an attribute value or state “holds” in the system’s understanding. For instance, “active years: late 1960s” expresses the valid interval of the judgment “active since the late 1960s.”
- Transaction time: the time a record entered the system and was modified—for example, the initial load time and the most recent revision time. It answers “when did we learn about this.”
2.2 How the Three Types Appear in a Career
| Time type | Corresponding content in the career | Typical use |
|---|---|---|
| Event time | Born on December 21, 1946; formed a band at 16; debut single in 1967; Kiss Me topped charts in 1972; died on March 14, 2000 | Timeline display, annual aggregation, anniversary calculation |
| Valid time | The continuous-active interval implied by “active years: late 1960s” | State determination, interval coverage analysis |
| Transaction time | The time of each encyclopedia page revision | Change auditing, reconstructing “what the page said at the time” |
Expressions of age like “16” and “17” only become usable event times after conversion using the birth year. In this example, that means:
- Formed the first band and began performing: around 1962–1963;
- Went to Paris and met the future producer: around 1963–1964;
- Debut single in 1967: age 20.
This lets us correct a common misreading: 1967 was not his starting point but the first time, about five or six years after he had already begun accumulating experience, that he officially released a work under a stage name.
2.3 Three Practical Principles
- Event time and record-entry time must be stored in separate columns. Once the two are conflated, back-filling a historical event gets misjudged as “happening recently,” which then breaks sorting and aggregation.
- Time granularity must match the semantics. Birth and death need to be precise to the “day,” while work releases in the source material are precise only to the “year.” Field types should adopt the finest granularity they can carry: for example, use the DATE type for birth and death dates, and add a precision marker within the event, so that a “year” is not forcibly stuffed into “January 1” and later treated as an exact date.
- Absolute dates and relative descriptions must be cross-validated. “Active in the late 1960s” is a relative description; concrete milestones are absolute dates. If a concrete milestone falls outside the range described by the relative expression, you must either correct the relative description or split the state intervals. Here, the 25th-anniversary show in 1993 corresponds to a debut around 1968; compared with “late 1960s,” that is off by at most about a year. The two corroborate each other and also suggest that the “active-start” attribute should retain room for correction.
3. Step 1: Identify Entities and Relationships to Remove Ambiguous Fields
3.1 Identifying Entities from Summary Fields
At first glance, the summary fields all look like “artist attributes,” but after decomposition you can identify five types of entities:
- Person entity: name, real name, stage name, gender, nationality, birthplace, birth date, death date.
- Organization entity: the band he formed and belonged to at 16. In the original it appears under the “group affiliation” field, but it is effectively an independent subject with its own name and its own formation and dissolution dates.
- Work entity: songs, albums, 45 rpm singles, and different versions of the same work (original, new version).
- Achievement/exposure entity: whether sales exceeded a million, whether it topped charts in multiple countries, whether it received support from a radio program.
- Relationship entity: the membership relationship between the person and the band, the collaboration between the person and the producer, and the associations between “event–work.”
3.2 Why the “Representative Works” Field Cannot Be Used as a Relationship
In the source material, “representative works” lists only one work title. But the text also mentions Et tu danses avec lui (1985), which sold over a million copies, and Kiss Me (1972), which topped charts in multiple countries. If you turn “representative works” directly into a relationship table, you get only an incomplete mapping; and once you add a second and third representative work as your understanding grows, you must repeatedly rewrite this field.
A better approach is to treat “representative work” as an attribute of the person that carries valid time:
- The attribute can hold multiple values, each with an effective time and a source;
- “First being called a representative work” is itself a recordable event.
This turns “representative works” from a label that gets repeatedly overwritten into a queryable history.
4. Step 2: Event Sourcing—Append, Don’t Overwrite
4.1 Why a Career Cannot Simply Be “Edited in Place”
The conventional approach maintains “current values” for name, status, representative works, and so on in a person table, and turns to page history only when tracing is needed. The value of career data lies precisely in the changes themselves. The phrase in the source material—“included a new version of Kiss Me“—is recording the change that “a work was re-performed.” If you use UPDATE to directly rewrite the work record, this information has nowhere to live.
Event Sourcing is a general pattern: state changes in the system are not stored as “modifications” but expressed as the appending of a series of immutable events, and the current state is obtained by replaying historical events. Applied to career data, this means recording “born,” “formed a band,” “released a single,” “topped the charts,” “performed in a concert hall,” and “archived” all as individual events. Business keys (such as work ID and person ID) remain unchanged across versions, and versions are distinguished by an incrementing sequence number.
4.2 Balancing the Immutability Principle with Correctability
“Append, don’t overwrite” does not mean data can never be modified. When a data-entry error is discovered, the correct approach is to append a correction event, such as “the occurrence time of a certain event is corrected from year X to year Y,” and to note the reason and source in the correction record. History thus forms a complete chain of “original value → corrected value,” which is both traceable and lossless. This is a generalization of the “reversal entry” (red-flush) idea from financial accounting, applied to archive-type data.
4.3 Illustrative Table Structure
-- Person entity: keep only relatively stable attributes; leave volatile attributes to events and the attribute-change tableCREATE TABLE person (person_id VARCHAR(32) PRIMARY KEY,display_name VARCHAR(128) NOT NULL, -- common name (e.g., stage name)gender VARCHAR(16),nationality VARCHAR(32),birth_date DATE, -- event timedeath_date DATE,recorded_at TIMESTAMP NOT NULL, -- transaction timeupdated_at TIMESTAMP NOT NULL);-- Generic event table: one event corresponds to one node in the careerCREATE TABLE timeline_event (event_id VARCHAR(64) PRIMARY KEY,person_id VARCHAR(32) NOT NULL REFERENCES person(person_id),event_type VARCHAR(32) NOT NULL, -- FORMATION / SINGLE_RELEASE / ALBUM_RELEASE / CHART / PERFORMANCE / MILESTONE / DEATH ...occurred_on DATE NOT NULL, -- event timetime_precision VARCHAR(8) NOT NULL DEFAULT 'DAY', -- YEAR / MONTH / DAYpayload JSON NOT NULL, -- event details (work title, chart, sales tier, etc.)source_ref VARCHAR(128) NOT NULL, -- source identifier for the fact, ensuring verifiabilityrecorded_at TIMESTAMP NOT NULL, -- when it entered the systemcorrected_from VARCHAR(64) -- for a correction event, points to the event being corrected);-- Compatibility note: the JSON type must be changed to the corresponding text/document type in some databases.-- For easier cross-dialect portability, it can also be split into a generic key-value detail table.
4.4 Translating Career Nodes into Events (Illustrative)
INSERT INTO timeline_event (event_id, person_id, event_type, occurred_on, time_precision, payload, source_ref, recorded_at) VALUES('EV-1946-BIRTH', 'P-001', 'BIRTH', '1946-12-21', 'DAY', '{"district":"Paris 12e"}', 'BIO-001', '2025-01-01 10:00:00'),('EV-1963-BAND', 'P-001', 'FORMATION', '1963-06-01', 'MONTH','{"band":"first rock band","role":"founder","note":"age inferred from birth year, ~16"}', 'BIO-001', '2025-01-01 10:00:00'),('EV-1964-PARIS', 'P-001', 'MILESTONE', '1964-06-01', 'MONTH','{"place":"Paris","met":"future producer","note":"~17"}', 'BIO-001', '2025-01-01 10:00:00'),('EV-1967-SINGLE', 'P-001', 'SINGLE_RELEASE', '1967-01-01', 'YEAR', '{"title":"Les Fiances","format":"45rpm","stage_name":"C. Jerome"}','BIO-001', '2025-01-01 10:00:00'),('EV-1972-KISSME', 'P-001', 'CHART', '1972-01-01', 'YEAR', '{"work":"Kiss Me","peak":"#1 in multiple countries","sales_tier":"over 1M"}','BIO-001','2025-01-01 10:00:00'),('EV-1993-OLYMPIA', 'P-001', 'PERFORMANCE', '1993-01-01', 'YEAR', '{"venue":"Olympia","occasion":"25th anniversary of career"}', 'BIO-001', '2025-01-01 10:00:00'),('EV-2000-DEATH', 'P-001', 'DEATH', '2000-03-14', 'DAY', '{}', 'BIO-001', '2025-01-01 10:00:00');-- Note: names in the table have been generalized; this is illustrative data only and does not represent a complete career.
Pay attention to the time_precision field. For an event whose year is the only known fact, recording its occurrence date as January 1 of that year is merely a placeholder, not the fact itself. Keeping the precision marker lets you avoid outputting a false exact date when displaying the data.
5. Step 3: Dual Timestamps, Making the Career “Replayable”
5.1 Attribute Changes: Use a “Validity Interval” Instead of Overwriting
Not all information is suited to being written as an event. For judgments that hold continuously—such as “active phase” and “representative work”—a slowly changing attribute table with valid-time intervals is more natural:
CREATE TABLE person_attribute_history (attribute_id BIGSERIAL PRIMARY KEY,person_id VARCHAR(32) NOT NULL,attribute VARCHAR(48) NOT NULL, -- e.g. ACTIVE_PHASE, REPRESENTATIVE_WORKattr_value VARCHAR(256) NOT NULL,valid_from DATE NOT NULL, -- valid start (event-time basis)valid_to DATE, -- valid end; NULL means still holds nowrecorded_at TIMESTAMP NOT NULL, -- first load (transaction time)updated_at TIMESTAMP NOT NULL,source_ref VARCHAR(128) NOT NULL,is_deleted BOOLEAN NOT NULL DEFAULT FALSE);-- Writing a new value: first "close" the record still in effect, then append the new record; never rewrite historical values-- Shown in generic SQL; depending on the database, implement as a single atomic statement using its merge syntaxUPDATE person_attribute_historySET valid_to = :effective_date, updated_at = CURRENT_TIMESTAMPWHERE person_id = :person_idAND attribute = :attributeAND valid_to IS NULLAND is_deleted = FALSE;INSERT INTO person_attribute_history(person_id, attribute, attr_value, valid_from, recorded_at, updated_at, source_ref)VALUES(:person_id, :attribute, :new_value, :effective_date, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, :source_ref);
5.2 The Key to Replay: Filter by Both Times Simultaneously
“Replayable” means: given any two dates (one transaction time, one event time), you can reconstruct the state as the system understood it at that time. This can be written as a generic query pattern:
-- Query attribute values that were known before transaction time :as_known and held on event time :as_ofSELECT attribute, attr_value, valid_from, valid_toFROM person_attribute_historyWHERE person_id = :person_idAND recorded_at <= :as_knownAND is_deleted = FALSEAND valid_from <= :as_ofAND (valid_to IS NULL OR valid_to > :as_of);
In practice, the most common need is to “reconstruct the facts as of some historical moment,” which means filtering only by valid time. When you need to investigate “when and by whom a wrong number was written,” add the recorded_at condition to reconstruct the view as of the write time. Both filters live on the same table, so no additional history table is needed.
5.3 Physical Deletion vs. Logical Deletion
Career data needs to be retained for the long term, so deletion should be logical: set is_deleted = TRUE only, without performing a physical delete. This both satisfies the business need to “remove erroneous data” and avoids breaking the continuity of time intervals.
6. Step 4: Use a State Machine to Manage the Lifecycle
6.1 From “Active Years” to a Computable State
“Active years: late 1960s” is a static description that cannot capture the many ups and downs of his career: a breakout in 1972, a return in the early 1980s with Julie à la folie, a further upswing in 1985 with Et tu danses avec lui (over a million in sales), a final album in 1994, and death in 2000. Only by explicitly modeling these fluctuations as a state machine can the analysis move from “reading a biography” to “computing metrics”:
ACTIVE ──(last version of a work released)──▶ ARCHIVED ──(DEATH event recorded)──▶ TERMINATED (terminal state)▲ ▲│(return event: return single/album)│(if not previously archived)└───────────────────────────────────┘Note: intermediate states such as PAUSED can be added as the business requires; state transitions must be driven by events, and manual direct rewriting is prohibited.
6.2 State Transition Rules
- ACTIVE → ARCHIVED: triggered when an album-release event of type “final album” appears. In the source material, “the eighth and final album (1994)” is exactly the event that triggers this transition.
- ARCHIVED → ACTIVE: transitions back when a return-type event appears, such as Julie à la folie—drawn from the album Ève et Moi in the early 1980s—and the 1990 album that included the new version of Kiss Me. This shows that “dormancy–return” is the norm in a career, not an anomaly.
- → TERMINATED: after a DEATH event is recorded, the entity enters a terminal state and transitions no further. From then on, all queries should read a read-only replica by default—the same idea as archiving a departed employee in an HR system or a decommissioned version in a product system.
6.3 Key Rule: Continuity Validation of the Ordered Event Chain
Whether the state can be correctly computed depends on the event chain being continuous. A complete career should also cover nodes such as “received support from a radio music program (second record),” “topped charts in multiple countries,” “performed in a concert hall,” and “released the first album.” These nodes are scattered across different paragraphs of the source, and missing any one of them will distort the state computation. The system therefore needs a built-in integrity check:
-- Continuity check: sort by occurrence time, then use a window function to get the "next event"WITH ordered AS (SELECT event_id, event_type, occurred_on,LEAD(event_type) OVER (PARTITION BY person_id ORDER BY occurred_on, event_id) AS next_typeFROM timeline_eventWHERE person_id = :person_id)SELECT * FROM orderedWHERE (event_type = 'DEATH' AND next_type IS NOT NULL) -- no events should follow the terminal stateOR (event_type = 'FINAL_ALBUM' AND next_type NOT IN ('DEATH', 'PERFORMANCE')); -- only commemorative events allowed after "the final one"
6.4 Gap Detection: Distinguishing “Dormancy” from “Archival”
-- Gap detection: locate intervals between adjacent events that exceed a thresholdWITH ordered AS (SELECT event_id, occurred_on,LEAD(occurred_on) OVER (PARTITION BY person_id ORDER BY occurred_on, event_id) AS next_onFROM timeline_eventWHERE person_id = :person_id)SELECT event_id, occurred_on, next_on,(next_on - occurred_on) AS gap_daysFROM orderedWHERE next_on IS NOT NULLAND (next_on - occurred_on) > :threshold_days;
In this example, this query roughly flags two intervals:
- After the million-selling work in 1985 to the 1990 album that included the new version of Kiss Me—about a five-year gap;
- Between the final album in 1994 and the death in 2000—about a six-year gap.
The nature of the two intervals is entirely different. The former is the incubation period of a “return after dormancy”; the latter is the waiting period of “awaiting the terminal state after archival.” Only in combination with the state machine can they be told apart: a gap when the state is ACTIVE means a “dormant period,” while a gap when the state is ARCHIVED means “already archived.” This example shows that the same stretch of “no data” time has completely different meanings under different states. Therefore, a gap should not be filled in as a missing value, but treated as a business signal that requires interpretation.
7. Step 5: Version Lineage and Release Cadence
7.1 Same Name, Different Version: Lineage Must Be Modeled Explicitly
The original Kiss Me (1972) and the new version of Kiss Me included in the 1990 album are two nodes on the same work lineage. If you use the work title as the unique identifier, the new version overwrites the old, and the eighteen-year span vanishes. The general practice is to introduce a work ID and a lineage-relationship table:
CREATE TABLE work (work_id VARCHAR(48) PRIMARY KEY, -- lineage identifier: original and new version share the same work_idtitle VARCHAR(256) NOT NULL,work_type VARCHAR(16) NOT NULL -- SINGLE / ALBUM / ANTHEM);CREATE TABLE work_version (version_id VARCHAR(64) PRIMARY KEY,work_id VARCHAR(48) NOT NULL REFERENCES work(work_id),version_no INT NOT NULL, -- version number within the same lineagerelease_year SMALLINT NOT NULL,variant VARCHAR(32) NOT NULL, -- ORIGINAL / RE_RECORDING / REPACKAGEUNIQUE (work_id, version_no));INSERT INTO work VALUES ('W-KISSME', 'Kiss Me', 'SINGLE');INSERT INTO work_version VALUES('V-KISSME-1972', 'W-KISSME', 1, 1972, 'ORIGINAL'),('V-KISSME-1990', 'W-KISSME', 2, 1990, 'RE_RECORDING');-- The 1990 version, as a new recording, is included in that year's album; this belonging relationship is registered in the album event or track table.
This table directly supports many queries: aggregating cumulative sales by lineage, comparing performance across versions, and identifying works that have been repeatedly re-performed. When a work is re-performed, it usually means it has a strong audience base and deserves priority for maintenance resources. This is the same principle as “a foundational component that is called frequently should be hardened first” in software systems.
7.2 Release Cadence: The Interval Itself Is Analyzable Data
Once you arrange the versions of works chronologically, a clear “fast-cadence release period” emerges: first album in 1974, second album in 1977, third album in 1978—about one every three to four years. By the early 1980s, 1990, 1991, and 1994, the release cadence slows markedly, with intervals stretching to several years.
It is worth emphasizing that the source material calls the 1990 album “the album Danielle S’en Va - Kiss Me“ and the 1994 album “the eighth and final album,” but it does not explicitly number every album. Therefore, inferences like “the seventh” should not be written into the data. When modeling, faithfully preserve the original expression “eighth, final album” and design a dedicated event type for it. Cadence analysis should be based on verifiable release years, not on unverified ordinal inference.
Back at the data level, you can use a window function to compute the interval between adjacent release events:
SELECT work_id, release_year,release_year - LAG(release_year) OVER (PARTITION BY work_id ORDER BY release_year) AS gap_yearsFROM work_versionWHERE work_id = :work_idORDER BY release_year;
7.3 Correspondence with “Version Release Management”
This modeling approach is highly isomorphic to version release management in software engineering, with the core difference being only the “deliverable”:
- Semantic versioning’s three segments: the major version represents incompatible major changes, the minor version represents backward-compatible new features, and the patch version represents compatibility fixes. Similarly, upgrading the release format from a 45 rpm single to vinyl records and then to digital media is a change in the “medium major version”; including a new version of a song within an album is a “content revision.”
- Long-term support (LTS) versions: a classic work being repeatedly re-performed and re-included is equivalent to receiving “long-term support” treatment. Such assets need stable metadata and lineage records so that multiple generations of versions do not fragment from each other.
- Release cadence and return releases: a dense period suits fast iteration to validate market feedback, while longer intervals correspond to “LTS maintenance + returning at the right moment.” Return-type releases (such as Et tu danses avec lui in 1985) should be counted separately as an independent event type, so that the conversion effect of “dormancy–return” can be evaluated.
8. General Design Points
Stringing the five steps together yields a design-points table that runs through the whole article:
| Design point | Specific problem in the career scenario | General approach |
|---|---|---|
| Time-semantics layering | Birth, performance, chart-topping, and death are conflated into “time” | Store event time, valid time, and transaction time in separate columns |
| Event/state separation | “Active years” and concrete milestones are mixed together | Write nodes to the event table; write continuous states to the attribute table |
| Relative-expression validation | Relative descriptions like “active years” and “16 years old” | Convert to absolute dates and add a consistency check |
| Append, don’t overwrite | A new version overwrites the original | Lineage table + version number |
| Replayable | Cannot answer “what was the data at that time” | Transaction time + valid time, dual filter |
| Logical deletion | Physical deletion breaks historical continuity | Logical deletion + deletion reason |
| State machine | Active, dormant, return, archived, and terminal states are hard to distinguish | Event-driven transitions + ordered-chain validation |
| Source tagging | Unclear data provenance makes verification hard | Every event and attribute record carries a source identifier |
During implementation, you can also use general cloud services to improve the operability of this kind of data. For example:
- Use object storage to hold unstructured materials such as original biography documents and cover images, with versioning enabled;
- Use a message queue to decouple “new event registration” from “career timeline reconstruction,” ensuring consistency between event writes and view refreshes;
- Use logging and monitoring/alerting services to track operational metrics such as failed event writes and abnormal state transitions.
Cloud platforms such as Baidu AI Cloud provide this kind of general capability, and teams can choose according to their existing technology stack.
9. Conclusion
The real value of this four-decade career lies not in the list of “what he did,” but in how it shows an entity being continuously recorded, corrected, and reinterpreted. When you translate a career into an event stream, you actually accomplish four things:
- Unify the semantics of time;
- Clarify the boundaries between entities;
- Preserve historical versions through lineage relationships;
- Use a state machine to string scattered nodes into an explainable lifecycle.
This method is not limited to personal archives. From onboarding, transfer, and promotion to departure for an employee; from project initiation, internal testing, and official release to shutdown and archival for software; from drafting, signing, and renewal to expiration for a contract—they all follow the same set of rules. Going further, it can be combined with a data analytics platform: first use the event stream as the single trusted source of truth, then generate statistical summary tables or a data mart from it, thereby ensuring “details are replayable and summaries are reconstructable.”
Regardless of data scale, the criterion for judging whether a long-evolving archive is reliable is simple: can it accurately answer these two questions—“what did it look like at any given moment?” and “how did it become what it is now?”
