Object storage

The object store holds the current and recent state of every object in the Ontology. It keeps each object as a series of versions in Delta Lake tables in your own storage. This page describes the layout and how source values and edits combine

LayoutDelta Lake tables per object type, in a bucket you own
VersionsEvery write is a new version with a monotonic version and updatedAt
Hot tierCache beside the query service for the most-read types (on request)
ConsistencyRead-your-writes for the writer (on request)

In the platform today

Built
  • Each object type is one Delta Lake table, objects.<type>, in the lake (a local folder, or S3 or MinIO), with one row per object: its properties plus _key, _version, _updatedAt and _edited
  • Edits are kept apart from source values and applied under the type's conflict policy, and each change an action makes is logged in ops.edits
  • A property sealed under an access label is stored as an AES-256-GCM token, so a direct read sees the token, never the value
  • Sync reads each backing dataset's change feed from where it last stopped, deletes remove the row, and an action's deletes and creates survive later syncs through _deleted and _created markers
  • Attachment properties hold file ids; the files are under _files/ in the lake
  • The tables can be read directly with DuckDB or the Delta Lake libraries
On request
  • The commit log, the hot tier, consistency tokens, time travel through the API, history kept per type and the per-object purge

The built layout

In the platform service, reading the demo airline's aircraft straight from the lake with DuckDB

-- Aircraft on the ground, and which properties hold an edit
SELECT _key AS fleet_number, status, statusReason, _version, _updatedAt, _edited
FROM delta_scan('<lake>/objects/aircraft')
WHERE status = 'AOG'
ORDER BY _updatedAt DESC;

Replace <lake> with the lake folder, or with the s3:// root when the lake is in object storage

Deletes and creates against the source

An action can delete an object whose row is still in its backing dataset, or create one the dataset doesn't hold. Two markers kept with the edits keep the action's result in place until the source catches up

_deleted_created
Left byA delete ruleA create rule for a key the backing dataset doesn't hold
While it is activeSync skips the key, so the object stays deleted although the source still has the row, and a modify on it fails as not found. The delete supersedes the object's other editsA full sync, the first or one after the object table is rebuilt, keeps the object although no source row names it
Clears whenThe source deletes the row too, through writeback or a later build. A row the source adds after that is a new object. A create of the same key also clears it and brings no older edit backThe source reports a row for that key; from then on the source owns it

Sync also refuses a source row, keeping its object as it was, when its key is empty, when the key appears twice in a full read, or when a required property is empty after edits are overlaid. The refusals are listed in ops.sync_runs, as described on indexing and sync. The rest of this page is delivered on request

What the object store holds

An object is not a source row. A Production batch may be built from three source tables in the ERP and the MES, keyed and cleaned by a pipeline, and then edited by a QA lead who puts it on hold. The object store is where those two streams meet. The sync service writes versions that come from backing datasets, the action service writes versions that come from edits, and the store keeps both, with a record of which input produced each property value

Everything else that describes an object lives in a store built for its shape. The object store keeps scalar, struct and array properties and the keys that make links work. The search index keeps what search queries need. Time series and geotemporal tracks live in the time series store, and attachments live as files in your bucket with a reference on the object

DataWhere it is storedFormat
Object versionsObject store, one set of tables per object typeDelta Lake, Parquet files, Zstandard compression
One-to-one and one-to-many linksThe foreign-key property on the object at the many endAn ordinary property column
Many-to-many linksObject store, one link table per link typeDelta Lake, two key columns plus link metadata
Search postings, doc values and vectorsSearch indexInverted index and columnar doc values, rebuilt from the object store at will
Sensor and metric pointsTime series storeDelta Lake partitioned by series and day, plus rollups
Attachments and mediaYour bucket, under ontology/<ontology>/attachments/ (on request; today under _files/ in the lake, see attachments)Original bytes, content-addressed by SHA-256
Action log entriesAction log tables and the audit serviceDelta Lake plus the hash-chained audit stream
The index is derived, the store is not

The search index can be dropped and rebuilt from the object store with no loss, which is how reindexing works. The object store cannot be rebuilt from the index. Backups, residency rules and customer-managed keys therefore apply to the object store first

Direct reads skip row access

A direct table read is governed by storage and catalogue grants, not by the Ontology's row access, field access or access labels. Grant direct read access to the object tables only to service principals and people who are cleared for every row and column in them. Everyone else should read through the API or the SDK

The write path, caching and consistency

On request, every write goes through one replicated commit log, busy types are cached beside the query service, each write returns a token so the caller reads its own changes, and history is kept per type. Today, sync and the action service write the object tables directly

Versions and concurrency

The store never updates a row in place. Each write produces a new version with a per-object _version and an _updatedAt commit time. Writers use optimistic concurrency, and writeback and side effects are only queued after the commit

How source values and edits merge

Each property's effective value is computed from the latest source value and the latest edit, under the object type's conflict policy: preferEdit (the default), preferSource or latestWins. Here is how one batch moves through a morning at the creamery under the default policy

VersionWritten byChangeEffective qaStatus_prov['qaStatus']
7Sync, gold.batches version 4412Batch B-0841 completes on Line 2Releasedsource
8Action place-holdQA manager holds the batch after check QA-7710On holdalog_01J9Z7K3…
9Sync, gold.batches version 4419Unit count corrected, QA status unchangedOn holdalog_01J9Z7K3…
10Sync, gold.batches version 4425The production sheet sets QA status to ReleasedOn hold, review task raisedalog_01J9Z7K3…

Version 9 shows why edits are stored separately: the source row changed, so the object got a new version, but the source did not touch qaStatus and the edit stands. Version 10 is a real conflict, and the policy keeps the edit and opens a review task for the type's owners rather than silently shipping a held batch. On request, _prov records which input set each property and a conflict raises a review task. Today, the edit is kept without a review task, and _edited plays the part of _prov

Time travel

On request, any read can ask for an earlier state by time. Today, read an earlier table version with the Delta Lake libraries

Retention

Pruning version history never removes the record of a decision. The action log keeps the before and after value of every property an action changed for its own retention period, independent of the object's history

  • Retention policies. Retention policies delete rows from an object type's backing dataset on a schedule, sync the type and cut the history of each purged table
  • Erasure requests. An approved erasure request deletes one person's objects, backing rows and edits everywhere its plan lists, keeping the hash-chained audit log intact through subject references
  • Purging one object. On request, an administrator can purge a single object, for example personal information about a wholesale contact, removing every version and edit of it and recording the purge, but not the purged values, in the audit log

Volume and cost drivers

Storage and compute cost follow the volume of the object store and its index: the number of objects, their row size, the retained history and the links. A few choices dominate it

DriverWhy it costsWhat to do
Version churnEvery change to any property writes a new version of the whole rowKeep fast-changing measurements in time series, not properties
Wide typesRow size grows with every propertySplit rarely read groups of properties into a linked type
Large valuesA large value is copied into every versionStore documents as attachments and keep a reference
Many-to-many linksEach link is a row in a link table and in the indexUse a foreign key where the relationship is really one-to-many
Vector propertiesAn embedding adds kilobytes per object, plus the vector indexEmbed only the text people search semantically
Long historyRetention multiplies churnKeep short history unless an audit need says otherwise
A common mistake

Modelling a freezer temperature as a property of Scoop shop updated every 30 seconds writes 2,880 versions per shop per day, about 40,000 versions a day for 14 shops, each a full copy of the shop's row. The same readings as a time series cost a few bytes per point and keep the shop's history readable

Limitations

  • Today, deleted objects are removed rather than tombstoned, and there is no time travel through the API
  • Direct table reads with Spark or DuckDB bypass row access, field access and access labels. Only catalogue and storage grants protect them
  • A transaction never spans more than one action or one source dataset version. There is no way to group writes from two actions, or from a sync and an action, into one atomic commit

Related