[Israel.pm] Reflections on Version Control Systems (VCSes) vs. Databases
shlomif at shlomifish.org
Wed Sep 7 23:46:16 PDT 2011
On Wed, 7 Sep 2011 15:22:55 -0700
David Baird <davidlbaird at gmail.com> wrote:
> Hi Shlomi,
> First, don't confuse data structure with database.
I did not. I just said that the standard dictionary (key => value) can
be thought of as a database, and that there are databases doing exactly that
with some non-volatility and other goodies (e.g: BDB or Tokyo Cabinet).
> Git utilizes an append-only object database. reference:
> Perforce uses a database, reference:
> Sawyer may find he has to use one of those systems in the future.
He uses git a lot. :-)
> would be a good idea to be familiar with how databases help keep track
> of version control metadata, and especially how to backup a database,
> if one wants to administrate such a system.
Well, in the case of git (and Mercurial) all you need to do is backup the clone
of the repository along with its .git or .hg directory. No need to worry about
the internals. Subversion gives you a specialised dump format (svnadmin dump /
> It seems that Mercurial does not utilize a database, keeping metadata
> in text files, but that's a moot point in a Perl forum.
I see many binary files in the perl-XML-LibXML Mercurial
repository's .hg/store/data directory. And furthermore, it probably implements
some kind of internal database store, either using its own logic, or using the
UNIX filesystem as a backend (which also can be thought of as a database.).
> Long long long ago I administrated PVCS, with no database required.
> Although it was easy to recover lost data through the file system and
> file backup, it was not as reliable as every VCS I administrated
> afterwards which did utilize a database.
> Just a quick answer,
> Perl mailing list
> Perl at perl.org.il
Shlomi Fish http://www.shlomifish.org/
Chuck Norris/etc. Facts - http://www.shlomifish.org/humour/bits/facts/
C++ is complex, complexifying and complexified.
(With apologies to the Oxford English Dictionary).
Please reply to list if it's a mailing list post - http://shlom.in/reply .
More information about the Perl