#64 open
Yurii Rashkovskii

Finalize multi-head approach

Reported by Yurii Rashkovskii | May 26th, 2008 @ 08:32 PM

Currently we have only one ("master") head, but it would be quite easy to improve it. Steps to do:

  • Rename head version uuid:
 RAW_HEAD_VERSION_UUID = Util.sha1_uuid("strokedb-internal:head-version").to_raw_uuid
# replace with
 RAW_MASTER_HEAD_VERSION_UUID = Util.sha1_uuid("master").to_raw_uuid
  • Add optional branch parameter to #find, #save_as_head! and #head_version (defaults to "master")

This branch parameter is basically that version parameter...

  • Make #save! and #perform_save! use this stuff
  • Allow to Document#save!(branch="..")
  • Make MemoryStorage use the same schema

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

StrokeDB is an embeddable distributed document database written in Ruby

Shared Ticket Bins

People watching this ticket