You build a commercial real estate database by treating it as a data product, not a spreadsheet project: define the decisions it must support, choose stable entity keys (property, parcel, building, tenant, deal, loan), separate raw source records from cleaned canonical records, and enforce address and parcel matching rules before you add analytics. The critical condition is scope: a database for your own acquisitions pipeline can be built in weeks, while a market-wide comps or listing platform requires licensing, deduplication, and ongoing verification that change the whole plan.

Commercial real estate data is unusually messy because the same asset appears under different addresses, parcel numbers, building names, and suite-level leases. A strip center might be recorded as "1200 Main St," "1200-1250 Main Street," and a parcel ID in county records, while a broker's listing uses a marketing name that exists nowhere in the deed. The build succeeds or fails on whether those records resolve to one entity without silently merging two different properties. Everything below assumes you are building for a defined user group, whether that is an in-house investment team, a brokerage, a lender, or a product you intend to sell.

Start With the Decisions the Database Must Support

Before choosing a schema, write down the questions the database must answer. Typical commercial real estate questions cluster into a few types: what is this property and who owns it, what space is available and at what asking rent, what sold nearby and at what price per square foot, who are the tenants and when do leases expire, and what debt is secured against the asset. A database built for lease-expiration tracking needs tenant and lease abstraction as its core; a database built for sales comps needs transaction records, deed history, and reliable price allocation.

This distinction matters because it determines granularity. A market-tracking database can operate at the building level with aggregate square footage. An asset-management database needs suite-level and lease-level records, because a single building can have twenty tenants with different commencement dates, escalations, options, and renewal probabilities. If you build only at building level and later need lease-level analysis, you face a painful re-keying project. If you build at lease level for a market-wide comps product, you will spend most of your effort on data you never use.

A practical approach is to define a minimum viable entity set first. Most commercial real estate databases need at minimum: property, building, parcel, owner, tenant, lease, transaction, listing, and loan. Each entity needs a stable internal ID that never changes, plus external identifiers (county parcel number, listing ID, loan number) stored separately with source and date so you can re-verify them. Write this list down and get sign-off from the people who will actually query the data, because retrofitting entities after ingestion is far more expensive than adding them up front.

Success check: you can articulate five specific questions the database must answer and name the entity and field that answers each one. If you cannot, the scope is not yet defined.

Set Prerequisites Before You Ingest a Single Record

The build needs four things in place before bulk ingestion: a legal and licensing review, a defined geography, a source inventory, and a storage environment. Skipping any of these creates rework.

The legal review is not optional for commercial real estate data. County recorder and assessor records are generally public, but the terms of use vary by jurisdiction, and bulk extraction may require a data-sharing agreement. Multiple listing services and broker listing platforms restrict redistribution and often prohibit scraping; using their data to build a competing product can breach contract terms even when the underlying facts are public. Ownership and transaction data from commercial vendors is licensed, not owned. Before ingesting anything, document for each source: who owns it, what the license permits (internal use, redistribution, derivative products), how often it updates, and what attribution is required. If you intend to resell or expose the data to third parties, this determines which sources you can use at all.

Geography comes next. Pick a starting metro or county set and resist expanding until matching rules work. Commercial real estate patterns differ by market: parcel systems, address conventions, and zoning vocabularies vary by county, and a matching routine tuned on one county often fails in the next. A single metro with 200,000 to 500,000 parcels is a realistic first target.

The source inventory should list, for each source, the access method (bulk file, API, manual download, records request), update cadence, format, known quality issues, and the entity it feeds. Typical sources include county assessor and recorder files, GIS parcel layers, zoning and land-use datasets, licensed transaction and ownership data, listing feeds under agreement, your own internal deal and lease files, and tenant information from estoppels or lease abstracts. Rank them by reliability and update frequency; assessor records are authoritative for parcel geometry and owner of record but lag on sale prices, while listing feeds are current but incomplete and marketing-oriented.

Storage: for most teams, a relational database (PostgreSQL is a common default) plus object storage for raw files works well. Keep raw source files immutable and versioned so you can re-run transformations. If your data includes geospatial parcels, PostgreSQL with the PostGIS extension handles geometry and spatial joins without a separate GIS stack.

Success check: for each planned source you can name the license status, update cadence, and target entity. Any source with unclear redistribution rights is flagged and excluded from any external-facing product.

Design the Schema Around Stable Keys and Raw-to-Canonical Layers

The central design decision is the two-layer model: raw (source-faithful) records and canonical (resolved) records. Raw tables preserve exactly what the source said, with source name, source record ID, extraction date, and a hash of the original record. Canonical tables hold the deduplicated, matched, and validated version that analysts query. Every canonical record carries pointers back to the raw records that produced it, so any value can be audited to its origin.

This separation solves the most common failure in commercial real estate databases: an early cleaning decision that turns out to be wrong and cannot be reversed because the original record was overwritten. When a county reassigns parcel numbers or a listing is re-posted with a corrected address, you re-run the resolution step from raw data rather than reconstructing history.

Entity keys need care. Use an internal surrogate key (a UUID or bigint) for every property, building, and parcel. Store external identifiers in a separate identifiers table with type, value, issuer, and validity dates. Parcel numbers change on split and merge; listing IDs expire; loan numbers get reused by some servicers. Modeling identifiers as many-to-one with date ranges lets you track a property across parcel splits without corrupting history.

Relationships to model explicitly:

Parcel to building: one parcel can hold multiple buildings; one building can span parcels in rare cases (condominium regimes, air rights). Use a many-to-many link table with a share or allocation field. Building to lease: one building to many suites; one suite to many leases over time; one lease to one or more tenants (joint tenancy). Property to transaction: a sale can include multiple parcels and buildings; store the transaction as its own entity with a link table to the assets included, and record how price was allocated (reported, pro-rata by square footage, or unallocated). Asset to loan: loans are secured by collateral that may include multiple properties; model collateral as a link table with allocation.

Units must be stored with their basis. Rentable square feet, usable square feet, and land area in acres versus square feet are not interchangeable. Store the value, the unit, and the measurement standard (BOMA, landlord-reported, or unknown) as separate fields. Price per square foot calculations must record which area basis was used, or the comparison is meaningless.

Success check: you can trace any canonical field back to a specific raw record and source date, and you can represent a parcel split without deleting the prior parcel record.

Ingest Sources Without Losing Provenance

Ingestion should be boring and repeatable. For each source, write a loader that writes raw records with metadata, validates the file structure, and logs row counts and checksums. Do not transform during ingestion. The temptation to "clean as you load" is what destroys auditability.

Practical ingestion patterns:

1: Bulk files (assessor rolls, recorder indexes): download to object storage, record the file hash and retrieval timestamp, load into a raw table matching the source layout. Expect fixed-width or inconsistent delimiters in older county exports; write a parser per source rather than a universal one. 2: APIs and feeds (listing platforms, licensed vendors): pull incrementally with a cursor or change timestamp, store the full response payload as JSON in raw storage, and flatten only in the transformation step. 3: Manual sources (records requests, PDFs, lease abstracts): store the document, extract fields into a structured staging table, and record who extracted what and when. Human-entered data needs an extractor ID for accountability. 4: Internal files (deal models, rent rolls): these are usually the highest-value and messiest. Load them as raw files with a staging schema, because internal spreadsheets have no enforced structure.

Monitor for silent failures: a source that returns an empty file, a truncated export, or a schema change will pass a naive loader. Compare row counts and key field null rates against the previous load; alert when they move beyond a threshold. Also watch for duplicate deliveries of the same file, which are common with manual downloads.

Success check: re-running the loader for the same source file produces no new raw records (idempotency), and a schema change in the source triggers an alert rather than a partial load.

Match Addresses, Parcels, and Buildings Before Analysis

Entity resolution is where commercial real estate databases earn their value. The goal is to link records that describe the same real-world asset without merging distinct assets. The order of operations matters: match on parcel first where available, then address, then name and geometry.

Address normalization is a prerequisite, not a substitute for matching. Parse each address into components (street number, pre-directional, street name, suffix, post-directional, unit, city, state, ZIP), standardize suffixes and directionals, and geocode to coordinates. Normalization alone will not merge "1200 Main St" and "1200-1250 Main Street," and it should not try; that requires a rule or a spatial check.

A workable matching ladder:

1: Exact parcel ID match within the same county and source type. Highest confidence. 2: Exact normalized address plus ZIP match. High confidence for single-tenant properties; lower for multi-suite buildings. 3: Spatial match: point-in-parcel or building footprint overlap using GIS geometry. Resolves address variants and renumbered streets. 4: Fuzzy name plus proximity: building name similarity within a distance threshold. Lowest confidence; route to review.

Score each candidate pair and set thresholds that trade precision against recall. In commercial real estate, false merges are usually worse than missed matches, because merging two properties corrupts transaction history, ownership, and rent comps in ways that are hard to detect. Set the automatic-merge threshold high and route ambiguous pairs to a human review queue. Track review outcomes as labeled training data so your rules improve.

Handle known hard cases explicitly: suite-level addresses that share a building address (do not merge suites into the building unless your schema intends it), parcels with multiple buildings, condominium regimes where one address maps to many ownership units, and properties whose street address changed after a redevelopment. For each, encode a rule and a test case.

Success check: on a sample of 500 records, you can measure merge precision and recall against a manually labeled set, and the review queue has a documented decision for every ambiguous pair.

Clean and Validate Without Overwriting Source Truth

Cleaning happens in the transformation layer, producing canonical records while raw data stays untouched. Validation rules should be explicit and testable, and every canonical field should record whether it was source-reported, derived, or imputed.

Useful validation categories for commercial real estate:

Domain checks: square footage greater than zero, year built between plausible bounds, rents positive, sale dates not in the future. Cross-field consistency: sale price per square foot within a broad market range, lease expiration after commencement, land area consistent with parcel geometry. Source agreement: when two sources disagree (assessor reports 40,000 square feet, listing reports 52,000), record both with source and date rather than averaging. Averaging incompatible measurements produces a number that matches neither reality nor any source. Completeness by entity: a property with no parcel link, a lease with no tenant, a transaction with no price.

Imputation deserves caution. Filling missing square footage from a similar building, or inferring rent from a market average, creates data that looks measured but is not. If you impute, store the imputed value in a separate field with the method and confidence, and never let imputed values flow into reported comps or client-facing figures without a flag. For a sales-comps product, an imputed price per square foot is a serious accuracy risk because users will treat it as observed.

Success check: a validation report runs on every transformation and lists rule failures by entity and source; zero silent nulls in fields the schema marks as required for your use case.

Build the Query and Analytics Layer

With canonical entities in place, add views and derived tables for the questions you defined at the start. Common derived tables include: current ownership by property, active listings with asking rent and available area, trailing sales with price and price per square foot on a stated area basis, lease expiration schedules by building and tenant, and loan maturity schedules by collateral.

Keep derived tables reproducible from canonical data through versioned transformation code, whether SQL scripts or a pipeline tool. Document the definition of each metric in a data dictionary: price per square foot is sale price divided by which area (rentable, usable, or land), for which property type, with which inclusions (does the price include furniture, tenant improvements, or assumed leases?). Two analysts using different definitions produce comps that cannot be compared, and the error is invisible in the output.

For search and matching at scale, add indexes on normalized address, parcel ID, and geometry (a spatial index). If users need fuzzy search across names and addresses, a full-text or trigram index improves response time without changing the schema.

If the database feeds a public or client-facing product, add a freshness field to every record so users know when it was last verified. Commercial real estate users tolerate staleness when it is disclosed; they do not tolerate it being hidden.

Success check: each of your five target questions is answerable with a saved query or view, and the data dictionary defines every metric used in it.

Plan Refresh, Versioning, and Ongoing Verification

A commercial real estate database is a living dataset. Ownership transfers, leases commence and expire, listings appear and disappear, and parcels split. Refresh design determines whether the database stays trustworthy.

Schedule refreshes by source cadence rather than uniformly: assessor data may update annually or quarterly, recorder data daily or weekly, listing feeds continuously, and internal deal data as deals move. For each source, define the refresh window and what "current" means in queries.

Historical tracking is essential for transactions and ownership. Use effective-dated records (valid-from, valid-to) rather than overwriting, so you can answer "who owned this in 2021" and reconstruct a sale history that survives later corrections. For slowly changing descriptive attributes like square footage, keep the source-reported value with its date and let corrections append rather than replace.

Verification is an ongoing cost, not a one-time task. Build a sampling process: each period, manually verify a random sample of canonical records against the authoritative source, and track error rates by source and field. This catches drift, such as a county changing its parcel numbering or a vendor altering its data model, before users notice. Also maintain a changelog of matching rule changes, because a rule update can shift historical comps and needs to be explainable.

Retention and access control round out the plan. Raw source files should be retained per license terms (some prohibit retaining bulk extracts). Access to tenant and lease data should be restricted, since lease abstracts often contain confidential business terms that should not be visible to all users. Role-based access at the entity level, not just the table level, prevents accidental exposure.

Success check: you can state, for every field a user sees, when it was last refreshed and verified, and you have a documented error rate from your most recent sample audit.

Avoid the Failure Modes That Sink First Builds

Most failed commercial real estate database projects fail in predictable ways. Naming them makes them avoidable.

Boiling the ocean: attempting national coverage before matching works in one metro produces a large, unreliable dataset. Start small, prove precision and recall, then expand.

Scraping restricted sources: building a product on data whose terms prohibit redistribution creates legal exposure that can force the whole dataset to be rebuilt or withdrawn. Resolve licensing before ingestion, not after.

Merging on fuzzy address alone: "100 Oak Street" and "100 Oak Avenue" are different streets in the same city. Fuzzy matching without parcel or spatial confirmation produces false merges that corrupt comps.

Treating listing data as truth: listing feeds are marketing documents. Square footage, rent, and availability are frequently aspirational or stale. Keep them labeled as listing-reported and separate from verified or assessor data.

Ignoring area basis: comparing a rent on a usable-square-foot basis to one on a rentable basis overstates or understates the spread. Store the basis and normalize only with an explicit, documented conversion.

Skipping the data dictionary: without metric definitions, two users get different answers from the same database and trust collapses.

Never reviewing matches: automated matching without a human review loop accumulates errors that no one catches until a client does.

Success check: you can name which failure modes your build has explicit controls against, and which remain open with a dated plan to address them.

A Realistic Build Sequence and Timeline

A solo builder or small team can reach a working internal database for one metro in roughly eight to sixteen weeks, depending on source availability and licensing. A rough sequence:

1: Weeks 1-2: define target questions, entities, and geography; complete licensing review; inventory sources and access methods. 2: Weeks 2-4: set up storage, raw ingestion for the two or three highest-value sources, and the raw/canonical schema. 3: Weeks 4-7: build normalization, geocoding, and the matching ladder; label a review sample and tune thresholds. 4: Weeks 7-10: add remaining sources, validation rules, and canonical transformation; build the review queue workflow. 5: Weeks 10-13: build derived tables and saved queries for the target questions; write the data dictionary. 6: Weeks 13-16: run the first verification sample, fix error clusters, and set the refresh schedule and monitoring.

This timeline assumes county data is accessible and one licensed source is in place. Market-wide or client-facing products add substantial time for licensing negotiation, coverage expansion, and quality assurance across many jurisdictions, and the ongoing verification cost becomes a permanent operating expense rather than a one-time build cost.

What "Done" Looks Like

A commercial real estate database is done enough when a user can ask a specific question, get an answer traceable to sources with dates, see the metric definition, and know the freshness and confidence of the underlying records. Perfection is not the bar; auditability and honesty about data quality are. The teams that succeed treat the database as an evolving product with owners, monitoring, and a review loop, rather than a one-time export that slowly rots. Build the matching and provenance layers first, resist the urge to expand geography before they work, and the analytics will follow from a foundation you can defend.