Using OntoDB

Settings

\set prints the settings and \set knob value changes one. Settings last for the shell process.

Settings

OntoDB> \set
backend mem
pool_size 64
lru_k 2
join auto
isolation rc
KnobValuesDefaultEffect today
backendmem, indexedmemindexed moves the triples onto pages and B+ trees in a temporary file; mem moves them back. A persistent database stays on mem until PLAN 8
pool_sizeframes64Frames in the indexed backend's pool, read when the backend is switched on
lru_kpositive integer2The indexed backend's LRU-K k, read when the backend is switched on
joinauto, nlj, inlj, hashautoJoin operator. auto lets the optimizer choose per join; the others force one operator everywhere
isolationru, rc, rr, serrcStored for transactions, which are being built

A setting that is accepted prints ok. An unknown knob or value prints an error and changes nothing.

Timing

\timing on prints time: N ms after each statement's result. \timing off stops it.

Statistics

OntoDB> \stats
page reads: 0
page writes: 0
buffer hits: 0
buffer misses: 0
log flushes: 0

log flushes counts physical log writes in a persistent database; one flush can carry many commits. The page and buffer counters stay at zero until the buffer pool exists.