跳到正文

第 16 课 · Master and Reference Data

Master Data Management

Learn master data management: MDM styles, matching rules, golden records, survivorship, stewardship review, and how to avoid merging records that differ.

Master data describes the core things many processes share: customers, suppliers, products, employees, locations. Transaction data records events involving them, such as orders and payments. If your sales system, billing system and support tool each hold their own version of a customer, you will send duplicate letters, miscount customers and miss important context.

Master data management (MDM) is the practice of creating and maintaining a trusted, shared view of these core entities. It is a process with owners and rules, supported by software.

Common implementation styles

Style Idea Trade-off
Registry A central index links records that stay in source systems Light to start; sources keep their errors
Consolidation Copies are combined centrally, mainly for reporting Good analytics; sources unchanged
Coexistence Master record is built centrally and synced back Consistent, but more complex
Centralized Master data is created and changed in one hub Strong control, biggest change

Many organizations start with a lighter style and move further only where the benefit is clear. Terms vary between vendors.

The matching pipeline

flowchart LR
  A["Collect records"] --> B["Standardize"]
  B --> C["Match"]
  C --> D["Review doubtful pairs"]
  D --> E["Build golden record"]
  E --> F["Publish and monitor"]

Standardizing before matching makes true duplicates much easier to see.

Standardize first: trim spaces, unify letter case, normalize phone formats and addresses. Keep the original values too.

Match by rules. Deterministic matching uses exact agreement on strong identifiers, such as a verified tax number. Probabilistic or similarity matching combines evidence from several fields and gives a score.

Matching with a score

Python Score possible duplicate customers

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The weights and limits are invented for this example. C3 has a similar name to A1 but is a different person, so it lands in review, not in automatic linking. Test your thresholds against pairs that experts have labeled, and watch two kinds of error: false matches (merging different people) and missed matches (leaving duplicates). False merges are often much harder to undo, and with personal data they can expose one person's information to another.

Golden records and survivorship

The golden record is the best current view of one entity. Survivorship rules decide which source value wins for each attribute: most trusted source, most recently verified, most complete, and so on. Decide per attribute.

SQL Apply survivorship rules with SQL

Press Run (or Ctrl + Enter) to see the result here.

Keep every source record and a cross-reference table that maps each source ID to the master ID. That makes it possible to audit decisions and unmerge a wrong match.

Stewardship and rules of operation

  • A steward reviews doubtful pairs using clear guidance.
  • Owners approve changes to matching and survivorship rules.
  • New records are checked for duplicates at creation, which is far cheaper than merging later.
  • Changes to the golden record are logged: who, when, why.
  • Quality metrics track duplicate rates, review backlog and unmerge counts.

Choosing where to start

Pick one domain with a real pain, such as duplicate suppliers causing double payments. Define the entity precisely: is a company with three branches one supplier or three? Then agree on identifiers and owners before choosing software.

Never merge records permanently without keeping the originals and the mapping. Without them, a wrong merge cannot be reversed.

A worked example: supplier duplicates

A fictional hospital group pays one cleaning supplier through three records: "BrightClean Ltd", "Bright Clean Limited" and "BrightClean (north)". Two share a tax number. The third has a different bank account, a branch address and no tax number.

The steward links the first two, because a strong identifier agrees and the other details are compatible. The third needs a question: is it a branch of the same company or a separate legal entity? A document shows it is the same company, with a separate account for one region. The golden record keeps one supplier with two payment accounts, each labeled.

A matching rule on names alone would have merged all three without asking. A rule requiring identical bank accounts would have kept the branch separate for the wrong reason. Entity definitions and human review matter.

Preventing new duplicates

Cleaning duplicates is only half the job. At creation time, search for likely matches and show them to the person before a new record is saved. Make the existing record easy to select. Require a reason if someone creates one anyway. Then track how many new duplicates still appear and where they come from, such as a bulk import that skips the check.

Measure the effect

Choose measures that match your reason for starting, such as duplicate payments, returned mail or time spent searching for the right record. Take a baseline before changing anything. Also measure the cost of the process itself: the size of the review queue, how long stewards take to decide and how often merges are undone. If the queue only grows, your thresholds, source quality or staffing need to change.

Try it yourself

Invent ten fictional supplier records with spelling variants, shared addresses and two different companies with similar names. Decide by hand which belong together, then write a matching rule and compare its answers with yours.

Check your understanding

Quick check · 3 questions

of 3 answered You scored / 3 · perfect!

  1. 1. Which is master data?

    Products are shared core entities. Payments and clicks are events.
  2. 2. Why standardize values before matching?

    Normalized formats reveal real similarity, while originals are kept.
  3. 3. What do survivorship rules decide?

    They resolve conflicting attribute values, usually one attribute at a time.

Summary

  • Master data covers shared core entities; transaction data records events.
  • MDM styles range from a light registry to a central hub.
  • Standardize, match, review doubtful pairs, then build golden records.
  • Set survivorship rules per attribute and keep cross-references.
  • Guard against false merges.

Next: Reference Data Management

你的学习进度保存在此浏览器中,无需账号。