Aggregating role listings from multiple regional feeds—similar to the structured listings indexed across Canadian job search boards—quickly exposes a subtle data engineering trap: identical openings syndicated across three partner feeds with slightly altered titles, HTML whitespace, or regional postal formatting.

Naive URL deduplication leaves your database cluttered with triple-posted roles, while overly aggressive title matching silently deletes legitimate multi-city openings. Four ingestion patterns keep job-feed pipelines clean and deterministic.

1. Compute a Normalized Content Fingerprint Alongside Source IDs

Never rely solely on the upstream partner's external_job_id, which changes whenever an employer reposts a requisition.

  • Strip HTML tags, collapse whitespace, lowercase the title, and concatenate (employer_slug, normalized_title, city_code, description_simhash) into a deterministic SHA-256 fingerprint.
  • Store source_id in a child listing_sources table so multiple syndication partners can point cleanly to a single canonical job_posting record.

2. Separate Location Granularity Before Hashing

A legitimate multi-branch hiring drive for "Data Analyst" in Toronto and Vancouver should never collapse into one record, whereas "Toronto, ON" and "Toronto, Ontario, Canada" must resolve to the same city entity.

  • Normalize raw location strings against a canonical municipalities lookup table (country_code, admin_region, city_id) prior to deduplication checks.
  • Flag remote-eligible roles with an explicit work_mode enum (onsite, hybrid, remote) rather than burying "Remote" inside the city column.

3. Track Listing Lifecycle States With Soft-Expiry Windows

Feeds routinely drop active postings for 24 hours during upstream ATS maintenance before re-exporting them the next morning.

  • Instead of hard-deleting records missing from a single nightly sync, increment a missed_sync_count counter and transition status to expired only after two consecutive missed runs.
  • Preserve historical timestamps (first_seen_at, last_verified_at) so analytics queries can measure true time-to-fill accurately.

4. Isolate HTML Sanitization From Raw Ingestion

Persist the raw JSON/XML payload in an immutable staging table before running DOM sanitization and entity extraction. When an upstream feed changes its markup structure, you can replay historical batches without re-scraping external endpoints.

What deduplication strategies have worked best for messy multi-source feeds in your ETL pipelines? Share your setup in the comments.