invantive documentationpart of invantive cloud
Invantive Support ForumsLog In / Sign Up

Big Data JSON Data Model

Query large volumes of configurable JSON data.

What the driver reads The driver reads a directory of JSON files as a set of tables. Every file holds one record per line (NDJSON) or one record as a whole file, plain or compressed with gzip or Zstandard; a file of a million records is read record by record and never held whole. Which tables exist and which columns they have is stated by an OpenAPI specification, not guessed from the data, so a column keeps its name and its data type however few files hold a value for it.

Setting up a connection The directory is named in 'directories' and the specification in 'swagger-specification-files'. With 'recurse-directories' the directories under it are read as well, which is how a folder per day or per machine is read as one table. 'extension' says which names are data, by default '*.json,.json.gz,.*json.zst'.

Partitions A first-level subdirectory which holds a data file is a partition, and the directory itself is one for the files in its root. Every table therefore starts with the columns 'partition', 'file_path', 'file_name' and 'file_row_number', which say where a row comes from. A statement confined to a partition never walks the other directories:

use ws253 select count(*) from Logging

select count(*) from Logging where partition in ('ws253', 'ws267') select * from Logging where file_name like '%bridge%'

A filter on 'partition', 'file_path' or 'file_name' chooses the files before one of them is opened.

The index A full read of a directory describes every file it read in an index beside the data, under 'index'. The index holds per file how many records it has and, per column, the smallest and the largest value, how many records hold no value, and either the values themselves or a filter over them. A later statement uses it to skip the files which cannot hold a matching record, and to answer a count, a smallest or a largest value without opening a file at all:

select count() from Logging select min(OccurredUtc), max(OccurredUtc) from Logging select count() from Logging where MessageCode = 'itgenlic125'

A file which the index does not describe as it is now is described first and the answer follows from the index, so a directory which keeps growing costs a statement the files which arrived, not the whole collection. What the index holds is readable:

select * from System.FileIndexFiles select * from System.FileIndexColumns where file_name = 'trace-001.ndjson.zst' select * from System.FileIndexColumnValues where column_name = 'MessageCode' select * from System.FileIndexBloomFilters

The index is maintained where the data is written to; with 'file-index-directory' it is kept elsewhere, for a directory which cannot be written to. 'file-index-maintain' and 'file-index-use' switch the writing and the reading of it, and 'file-index-budget-percentage' says how much of a file's contents its description may be worth, ten percent by default: a larger percentage keeps the value lists and filters which do the skipping, a smaller one keeps the bounds and little else.

Files which are not as expected A line which is not valid JSON is skipped with a warning while 'ignore-erroneous-records' is on, so one damaged line does not cost the other million; switched off, the statement fails on it. 'max-erroneous-files' says how many files may be unreadable before a statement fails. A file which holds several JSON records on one line is read as several records.

What is read and what is not Only the columns a statement names are built from a record and only the records which match its filters are handed to the engine, so a narrow statement over a wide record costs what it asks for. A count of rows asks for no column at all.

Set up this platform in Invantive Cloud: https://cloud.invantive.eu/bigdatajson

The data is partitioned per partition (partition).

Text comparisons on this platform are case sensitive.

Platform

  • Used from: the Invantive products on your own computer or server.
  • Kind: an application reached over its API.
  • Invantive Cloud plans: Office for Entrepreneurs, Office for Accountants, Premium Finance, OEM.

Figures

Figure Count
Tables 7
Columns 273

Data Model Poster

This data model declares no keys yet; the dotted relations are derived from column names.

PDF, 1 A0 sheet

On a table of the poster: plus and minus zoom, the arrow keys move, 0 fits.

Big Data JSON data model, Sheet 1 of 1Big Data JSON data modelfor use with Invantive UniversalSQLRelease 26.1.88-BETA+6212 · 22-09-2026Tables without relationsSheet 1 of 1 · documentation.invantive.euFileBigData.System.FileIndexBloomFilters: File Index Bloom FiltersFileIndexBloomFiltersBigData.System.FileIndexColumnValues: File Index Column ValuesFileIndexColumnValuesBigData.System.FileIndexColumns: File Index ColumnsFileIndexColumnsBigData.System.FileIndexFiles: File Index FilesFileIndexFilesLoggingBigData.Logging.Logging: Trace MessagesLoggingBig Data JSONWhat the driver reads The driver reads a directory of JSON filesas a set of tables. Every file holds one record per line (NDJSON)or one record as a whole file, plain or compressed with gzip orZstandard; a file of a million records is read record by recordand never held whole. Which tables exist and which columnsthey have is stated by an OpenAPI specification, not guessedNotesThis data model declares no keys yet; the dotted relations are derived from column names.Data dictionaryEvery table and column of this data model is described with its documentation ondocumentation.invantive.eu, where the poster is also available in other languages.NotesThe boxes are grouped by topic and coloured by category. A relation is drawn in the topic of thetable holding the key; a box in pale grey is defined in another topic.TopicsTables without relations1LegendTransactionalSetupTechnicalHard-coded valuesDefined in another topicDeclared keyRelation described in wordsCandidate derived from column namesBold: a popular table+Bulk, +Read: the table also exists as these variants×n: n relations between the same tablesGenerated from the metadata of Invantive UniversalSQL 26.1.88-BETA+6212 on 22-09-2026. Every table links toits page with columns, keys and sample queries.documentation.invantive.eu/en/datamodels/bigdatajson
The poster as text: tables per topic and their relations

File (without relations)

FileIndexBloomFilters, FileIndexColumnValues, FileIndexColumns, FileIndexFiles

Logging (without relations)

Logging

Attributes

The attributes of this platform are on the page Attributes.

Tables

BigData.Logging

BigData.System