---
title: "Big Data JSON Data Model"
description: "Query large volumes of configurable JSON data."
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/bigdatajson
original: https://documentation.invantive.eu/en/datamodels/bigdatajson
updated: 2026-09-22T17:24:21Z
license: https://documentation.invantive.eu/en/
---

# 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 |

## Attributes

The attributes of this platform are on the page [Attributes](attributes).

## Tables

### BigData.Logging

- [Logging](BigData.Logging.Logging): Trace Messages
- [Logging_ActiveRoles](BigData.Logging.Logging_ActiveRoles): Trace Messages
- [Logging_Tags](BigData.Logging.Logging_Tags): Trace Messages

### BigData.System

- [FileIndexBloomFilters](BigData.System.FileIndexBloomFilters): File Index Bloom Filters
- [FileIndexColumnValues](BigData.System.FileIndexColumnValues): File Index Column Values
- [FileIndexColumns](BigData.System.FileIndexColumns): File Index Columns
- [FileIndexFiles](BigData.System.FileIndexFiles): File Index Files

