#64 open
Yurii Rashkovskii

Finalize multi-head approach

Reported by Yurii Rashkovskii | May 26th, 2008 @ 09:52 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 Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

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