Skip to content

change log ids in data keys and current table#207

Closed
ekg wants to merge 3 commits intodat-ecosystem:masterfrom
ekg:master
Closed

change log ids in data keys and current table#207
ekg wants to merge 3 commits intodat-ecosystem:masterfrom
ekg:master

Conversation

@ekg
Copy link
Copy Markdown
Contributor

@ekg ekg commented Oct 17, 2014

The addition of change log ids to the data keys (after the versions), will allow us to quickly extract the state of the data at particular point in the change log. This can be accomplished via a linear scan of the keys in the data table, requiring that the change id of a particular object is <= the target point in the log.

If we did not include this data alongside the data, we would be forced to complete a reconstruction of the dataset via the change log. This would complicate the process of rolling back particular subsets of the data to predetermined points in the history. Additionally, it wouldn't be possible to quickly determine the relative age of two objects, which has a number of possible applications in reproducibility and logging.

No functionality is yet tested which is based on the change ids, but the next step should be to implement a commit/checkout or checkpoint/rollback model on top of it.

ekg added 3 commits October 16, 2014 19:13
By adding a reference to the change index id to data table keys, we can quickly
revert the current table of the repository to a particular checkpoint.

These changes only enable the storage of the change index keys.

This is not a stable commit. A majority of tests now pass, but there are still
significant issues.
The addition of change log ids to the data keys (after the versions), will
allow us to quickly extract the state of the data at particular point in the
change log. This can be accomplished via a linear scan of the keys in the data
table, requiring that the change id of a particular object is <= the target
point in the log.

If we did not include this data alongside the data, we would be forced to
complete a reconstruction of the dataset via the change log. This would
complicate the process of rolling back particular subsets of the data to
predetermined points in the history. Additionally, it wouldn't be possible to
quickly determine the relative age of two objects, which has a number of
possible applications in reproducibility and logging.

The level-dat backend will support these change ids as of 4.5.0.

No functionality is yet tested which is based on the change ids, but the next
step should be to implement a commit/checkout or checkpoint/rollback model on
top of it.

With this update we now pass 616/616 tests.
@ekg
Copy link
Copy Markdown
Contributor Author

ekg commented Oct 17, 2014

This depends on mafintosh/level-dat#1

@ekg
Copy link
Copy Markdown
Contributor Author

ekg commented Oct 17, 2014

It looks like the build error results from the requirement that we update the level-dat version.

@max-mapper
Copy link
Copy Markdown
Collaborator

Just commenting here for posterity, we have discussed this pull request and are still investigating if it is the right approach. Keeping it open for now

@max-mapper
Copy link
Copy Markdown
Collaborator

gonna close for now, but we will definitely make sure this gets in after @mafintosh refactors the storage stuff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants