You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.3 KiB
ReStructuredText

2 years ago
====================================
Query execution
====================================
2 years ago
Usually, in a database,
how queries are executed is usually considered an implementation detail
hidden behind an abstraction layer, which normal users need not care about.
As everyone knows, however, this abstraction layer is leaky,
since bad query execution plans invariably occur and hurt performance,
and developers routinely "go under" the abstraction layer to solve such problems.
Therefore, in Cozo we take the pragmatic approach and make certain guarantees
about query execution, which we will explain in the following.
It is essential to at least have a rough idea of these guarantees to write
efficient queries and to debug performance.
--------------------------------------
Stratification
--------------------------------------
--------------------------------------
Semi-naïve evaluation
--------------------------------------
--------------------------------------
Magic set rewrites
--------------------------------------
---------------------------------------
Relations as indices
---------------------------------------
---------------------------------------
Ordering of atoms
---------------------------------------
---------------------------------------
Early stopping
---------------------------------------