NHyDBrun4
R
u
v
Version of 1
lane
NLOverview

Basic concepts

NHyDB needs only a few concepts. Here they are in plain words – the exact formulas and value ranges are on the right.

The address of a cell

Every value lives in a cell. Four details describe where: an area (realm), two coordinates u and v within the area and one of two sides (lane). Written together: (R, u, v, lane).

In the customer example on the start page, “row” stands for u and “position” for v: “row 2, position 4711” is the cell (R1, u2, v4711, NL).

The number N

Every cell has exactly one natural number, its address N. It is never assigned and stored nowhere; it is computed from the coordinates – and the cell can be computed back from N. No register of all possible addresses is needed.

Realm

A realm is an area of the address space, for example for a project or one kind of data. There can be any number of them. A realm takes up no storage as long as nothing is stored there.

NL and NR

Every position exists on two sides, NL and NR. Both have their own addresses. Whether and how an application uses the two sides together is up to the application – NhyFlow, for example, keeps the text on the left and its note on the right.

Record, field and cell

A record has a fixed, typed field structure (a shape). There are also single cells that are written freely. Both can be mixed; NHyDB merges stored changes into one consistent view.

Layout

A layout is a predefined rule for how records and fields are mapped to cells. Data is always stored in the same cells – the layout only defines the mapping. Built in are CLASSIC, COLUMN, PACKED and CUSTOM; with MATH_MAP, values are placed by formula.

From one starting point to the whole context

An application can define a starting point for every document or process and store the creation time, sender ID, processing status or version number at positions computed from it. Content can be in one area and its additional information in the next, each version at a position determined by a fixed rule.

Creation timeSender IDProcessing statusVersion numberStarting pointdocument / process
The positions of the additional information are computed from a known starting point – without a separate mapping table.

This also allows different views of the same data: an input form, a timeline, a report. Each view reads the same cells according to its own rule, without copying the data. Relationships that do not follow from a rule are stored as ordinary data.

Where a rule suffices, it replaces countless individual mappings.

Commit

Only committed changes count as stored. Until then they can be discarded; after a crash the last committed state applies.

Index

An index is an additional search structure, like the index of a book: it finds hits without reading all the data.

# Basic concepts NHyDB needs only a few concepts. Here they are in plain words – the exact formulas and value ranges are on the right. ## The address of a cell Every value lives in a **cell**. Four details describe where: an area (**realm**), two coordinates **u** and **v** within the area and one of two sides (**lane**). Written together: **(R, u, v, lane)**. In the customer example on the start page, “row” stands for u and “position” for v: “row 2, position 4711” is the cell (R1, u2, v4711, NL). ## The number N Every cell has exactly one natural number, its **address N**. It is never assigned and stored nowhere; it is computed from the coordinates – and the cell can be computed back from N. No register of all possible addresses is needed. ## Realm A **realm** is an area of the address space, for example for a project or one kind of data. There can be any number of them. A realm takes up no storage as long as nothing is stored there. ## NL and NR Every position exists on two sides, **NL** and **NR**. Both have their own addresses. Whether and how an application uses the two sides together is up to the application – NhyFlow, for example, keeps the text on the left and its note on the right. ## Record, field and cell A **record** has a fixed, typed field structure (a *shape*). There are also **single cells** that are written freely. Both can be mixed; NHyDB merges stored changes into one consistent view. ## Layout A **layout** is a predefined rule for how records and fields are mapped to cells. Data is always stored in the same cells – the layout only defines the mapping. Built in are CLASSIC, COLUMN, PACKED and CUSTOM; with MATH_MAP, values are placed by formula. ## From one starting point to the whole context An application can define a **starting point** for every document or process and store the creation time, sender ID, processing status or version number at positions computed from it. Content can be in one area and its additional information in the next, each version at a position determined by a fixed rule. {{faecher}} This also allows different **views** of the same data: an input form, a timeline, a report. Each view reads the same cells according to its own rule, without copying the data. Relationships that do not follow from a rule are stored as ordinary data. > Where a rule suffices, it replaces countless individual mappings. ## Commit Only **committed** changes count as stored. Until then they can be discarded; after a crash the last committed state applies. ## Index An **index** is an additional search structure, like the index of a book: it finds hits without reading all the data.