Inferensys

Glossary

Schema-on-Read

A data management strategy where the structure and interpretation of data are applied only when the data is queried, providing the agility required to ingest heterogeneous, evolving sensor data from the factory floor.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.
DATA MANAGEMENT STRATEGY

What is Schema-on-Read?

Schema-on-Read is a data management strategy where the structure and interpretation of data are applied only at query time, not during ingestion, enabling maximum agility for heterogeneous industrial data.

Schema-on-Read is a data processing paradigm that defers the application of a data's structure until it is accessed for analysis. Unlike traditional Schema-on-Write systems, which require data to be cleansed, transformed, and fitted to a rigid relational model before storage, this approach ingests raw, unstructured, or semi-structured data—such as high-velocity sensor telemetry—directly into a data lake in its native format. The interpretive schema is imposed by the query engine at runtime, allowing a single data set to be projected into multiple logical views simultaneously.

This strategy is foundational for Industrial DataOps pipelines handling heterogeneous factory-floor data. When a new vibration sensor is added to a machine, its data stream can be ingested immediately without re-architecting a database. Engineers can later apply a schema to contextualize the readings against an ontology or ISA-95 Standard model, enabling semantic interoperability between legacy and modern systems without costly upfront normalization.

DATA AGILITY

Core Characteristics of Schema-on-Read

Schema-on-Read fundamentally inverts the traditional data integration paradigm. Instead of imposing a rigid structure on data before it is stored, the schema is applied only at query time, enabling manufacturing systems to ingest heterogeneous sensor streams, log formats, and machine protocols without upfront transformation.

01

Late-Binding Structure

The defining mechanism of Schema-on-Read is the deferred application of schema. Raw data is landed in a persistent store in its native format. The structure, typing, and interpretation are bound to the data only when a query is issued. This allows the same raw dataset to be projected through multiple schemas simultaneously—a vibration signal can be read as a time-series array by one application and as a statistical summary by another, without duplicating the underlying bytes.

02

Agility in Heterogeneous Environments

Manufacturing floors generate data across a fragmented protocol landscape: OPC UA, MQTT, Modbus, and proprietary PLC registers. Schema-on-Read eliminates the bottleneck of designing a unified canonical model before ingestion. New sensor types or machine models can be onboarded immediately. The schema is iteratively refined as analysts discover patterns, rather than requiring a waterfall-style data modeling phase that stalls time-to-insight.

03

ELT Over ETL

Schema-on-Read is the architectural foundation of the Extract, Load, Transform (ELT) pattern, which supersedes traditional Extract, Transform, Load (ETL) in modern data stacks. In ELT:

  • Extract: Raw data is captured from source systems.
  • Load: Data is immediately written to a data lake or object store.
  • Transform: Schema is applied on-the-fly during analysis. This preserves the raw fidelity of source data, which is critical for auditability and reprocessing when analytical models change.
04

Schema Evolution and Polymorphism

Because the schema is a query-time construct, it can evolve independently of the data. A manufacturing knowledge graph can ingest a year's worth of sensor data and later apply a new SHACL constraint or OWL ontology to validate and classify that historical data retroactively. This polymorphic capability means the same data object can satisfy multiple domain models—a single JSON blob from a CNC machine can simultaneously populate a predictive maintenance model and a carbon accounting ledger.

05

Query-Time Projection

The practical implementation relies on query engines that can parse semi-structured formats on-the-fly. Technologies like Apache Spark, Presto/Trino, and Apache Drill can query JSON, Parquet, or Avro files directly from a data lake, applying a schema projection that maps nested fields to tabular columns. For manufacturing, this means a maintenance log stored as unstructured text can be queried with a structured schema that extracts failure codes, timestamps, and asset IDs using user-defined functions at read time.

06

Contrast with Schema-on-Write

Traditional relational databases enforce Schema-on-Write: data must be transformed, validated, and fitted to a predefined table structure before insertion. This guarantees strong consistency but creates a brittle integration point. In manufacturing, where production lines are reconfigured and new sensors are added, Schema-on-Write requires costly migrations and downtime. Schema-on-Read accepts that data is messy and defers governance to a more flexible, query-time layer, trading upfront consistency for downstream adaptability.

DATA INGESTION STRATEGIES

Schema-on-Read vs. Schema-on-Write

A comparison of the two fundamental approaches to structuring data in manufacturing analytics pipelines, contrasting the traditional upfront modeling of Schema-on-Write with the agile, query-time interpretation of Schema-on-Read.

FeatureSchema-on-ReadSchema-on-WriteHybrid Approach

Definition

Structure is applied at query time, leaving raw data in its native format

Structure is enforced and validated before data is written to the store

A transactional write layer feeds a structured store while a raw lake retains original fidelity

Data Ingestion Speed

< 100 ms per event

500 ms - 2 sec per record

100 ms - 1 sec per event

Schema Flexibility

Query Performance

Slower; compute applied at read

Faster; optimized for known patterns

Moderate; depends on query routing

Handling Sparse Sensor Data

Storage Cost per TB

$23/month (object store)

$80-150/month (relational DB)

$50-80/month (tiered storage)

Schema Evolution Cost

Near-zero; no backfill required

High; requires migration scripts and downtime

Low; raw layer absorbs change

Ideal Use Case

Exploratory analysis of heterogeneous PLC and IoT telemetry

High-frequency transactional data for real-time control loops

Regulated environments requiring both audit trails and agile analytics

SCHEMA-ON-READ

Frequently Asked Questions

Schema-on-read is a foundational data management strategy for modern industrial analytics, enabling the ingestion of heterogeneous sensor data without upfront structural constraints. These answers address the most common technical and strategic questions about applying this approach to manufacturing knowledge graphs.

Schema-on-read is a data management strategy where the structure and interpretation of data are applied only when the data is queried, not when it is ingested. This contrasts directly with schema-on-write, the traditional relational database approach where data must be cleansed, transformed, and fitted into a rigid, predefined table structure before storage. In a manufacturing context, schema-on-write would require a data engineer to define columns for every possible vibration sensor attribute before any data could be loaded. Schema-on-read allows raw, semi-structured data—such as nested JSON payloads from an OPC UA server or unstructured maintenance logs—to be stored immediately in a data lake. The schema is applied later, at query time, by a semantic annotation engine or a SPARQL query that maps the raw fields to an ontology. This decoupling provides the agility required to handle the evolving data formats common on the factory floor, where new sensor models and firmware updates constantly change output structures.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.