tzaeschke / zoodb

ZooDB Object Database
Apache License 2.0
57 stars 9 forks source link

Implement optimistic direct references in DB #94

Open tzaeschke opened 7 years ago

tzaeschke commented 7 years ago

Currently, references between objects use the OID to perform a lookup in the OID-index to find the target objects' location in the DB. For rarely changing objects (configurable?) we could also store directly the pageID/txID of the target object. If the target page has the correct txID, then we can directly load the object without going through the OID-index. When the txId mismatches, we still have to go through the OID index.

Problems: