{
  "status": "shipping",
  "advantages": [],
  "limitations": [],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-18",
  "slug": "fts5-external-content",
  "term": "FTS5 external-content table",
  "aliases": [
    "external-content FTS5"
  ],
  "definition": "An FTS5 external-content table stores a full-text index while retrieving document values from another database object.",
  "note": "The content option names the document source; content_rowid selects its key. Application logic must maintain both source and index. Triggers added after existing documents do not backfill them: in the fixture, a plain read returned three rows but MATCH found only the later insert. Rebuild restored search coverage. [fts5] [data]\n\nBase-table REPLACE with recursive_triggers off left an old alpha posting that returned the new delta row despite all maintenance triggers existing. Enabling recursive triggers caused delete then insert; the tested conflict-targeted UPSERT caused an update under either setting. These are ordinary-table writes, not direct virtual-table writes. [replace-contract] [replace-data]\n\nOnly ordinary VACUUM on the implicit-rowid table without an ordinary index changed IDs 1/3/8 to 1/2/3 among nine cases per build on SQLite 3.45.1 and 3.53.1. MATCH charlie returned hotel. INTO, backup and the other schema controls preserved IDs in these fixtures, not as a general guarantee. [maintenance-data] [maintenance-vacuum]\n\nUse a true rowid alias such as id INTEGER PRIMARY KEY with matching content_rowid for persistent identity. INT PRIMARY KEY and inline INTEGER PRIMARY KEY DESC are not aliases. Rebuild repaired current searches, not old IDs or references. [maintenance-key] [maintenance-rowid] [maintenance-data]\n\nRecovery acceptance needs two separate comparisons: the earlier ID-to-text mapping and stored token instances against a fresh current-content index. A baseline created after damage cannot establish earlier contents. [acceptance-data] [acceptance-vocab]",
  "related": [
    "inverted-index",
    "fts5-integrity-check",
    "sqlite-expression-index",
    "sqlite-online-backup",
    "sqlite-replace"
  ],
  "citations": [
    {
      "id": "fts5",
      "title": "SQLite FTS5: external content and integrity checking",
      "url": "https://sqlite.org/fts5.html",
      "accessed": "2026-10-18"
    },
    {
      "id": "experiment",
      "title": "Hesela: FTS5 query and verification controls",
      "url": "https://hesela.com/analyses/sqlite-index-runtime-dependencies/#fts5-content",
      "accessed": "2026-10-18"
    },
    {
      "id": "data",
      "title": "Hesela: eight executed FTS5 states and full query results",
      "url": "https://hesela.dev/research/sqlite-fts5/results.json",
      "accessed": "2026-10-18"
    },
    {
      "id": "replace-data",
      "title": "Hesela: four REPLACE/UPSERT cases with rollback, trigger events and full query results",
      "url": "https://hesela.dev/research/sqlite-fts5/replace-results.json",
      "accessed": "2026-10-19"
    },
    {
      "id": "replace-contract",
      "title": "SQLite ON CONFLICT: REPLACE deletion and recursive triggers",
      "url": "https://sqlite.org/lang_conflict.html",
      "accessed": "2026-10-19"
    },
    {
      "id": "maintenance-vacuum",
      "title": "SQLite: VACUUM and unaliased rowid changes",
      "url": "https://sqlite.org/lang_vacuum.html",
      "accessed": "2026-11-01"
    },
    {
      "id": "maintenance-rowid",
      "title": "SQLite: rowid persistence and integer-key aliases",
      "url": "https://sqlite.org/rowidtable.html",
      "accessed": "2026-11-01"
    },
    {
      "id": "maintenance-key",
      "title": "SQLite: exact INTEGER PRIMARY KEY alias rules",
      "url": "https://sqlite.org/lang_createtable.html#rowids_and_the_integer_primary_key",
      "accessed": "2026-11-01"
    },
    {
      "id": "maintenance-data",
      "title": "Hesela: nine maintenance-identity cases on each of two SQLite builds",
      "url": "https://hesela.dev/research/fts5-preservation/maintenance-identity/summary.json",
      "accessed": "2026-11-01"
    },
    {
      "id": "acceptance-data",
      "title": "Hesela: historical-row and current-index acceptance, 17 designed cases",
      "url": "https://hesela.dev/research/fts5-preservation/acceptance-contract/summary.json",
      "accessed": "2026-11-02"
    },
    {
      "id": "acceptance-vocab",
      "title": "SQLite FTS5: instance vocabulary and token positions",
      "url": "https://sqlite.org/fts5.html#the_fts5vocab_virtual_table_module",
      "accessed": "2026-11-02"
    }
  ],
  "provenance": [
    "Designed fixtures on SQLite 3.45.1, default tokenizer and closed DELETE-journal files. Not a failure-rate estimate.",
    "Nine designed maintenance cases per build, closed DELETE journal and no concurrent writer. Independent source/prose review only; no independent native replication or incident-rate estimate. [maintenance-data]",
    "The acceptance demonstrator uses fixed TEXT-only, unicode61, detail=full fixtures and a fresh index in the same SQLite engine. The baseline is known original input, not independently authenticated history or a general production checker. [acceptance-data] [acceptance-vocab]"
  ]
}
