Skip to content

make heads available in O(log(n)) #37

@timkuijsten

Description

@timkuijsten

Currently heads can only be found in O(n) since every version has to be iterated over in order to find all heads.

Add a _m3._head : < bool > attribute and with each update toggle the parent to false.

This will also open the way to rollover old versions and get rid of the constraint to keep all versions of all times in the capped collection.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions