You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by Benoit Chesneau <bc...@gmail.com> on 2013/10/20 10:37:19 UTC

couch btree algorithm

Is anyone of you aware of a paper or blog describing the internals of the
couchdb storage?

I remember there was a eerie of blog post but can't remember the address.
Anyway if anyone have some informations about it I'm interested.


- benoit

Re: couch btree algorithm

Posted by Dave Cottlehuber <dc...@jsonified.com>.
>> On Sun, Oct 20, 2013 at 12:37 PM, Benoit Chesneau wrote:
>>> Is anyone of you aware of a paper or blog describing the internals of the
>>> couchdb storage?
>>>
>>> I remember there was a eerie of blog post but can't remember the address.
>>> Anyway if anyone have some informations about it I'm interested.
>>>
>>>
>>> - benoit


Also, https://github.com/couchbaselabs/couchstore/wiki/Format similar but not quite.

Re where things are stored, how about a new JIRA ticket & then a normal ASF git branch for 1234-feature-document-the-internal-bits? That should mean github PR for those who want it, and happiness for keeping Things Together.

-- 
Dave Cottlehuber
Sent with Airmail

Re: couch btree algorithm

Posted by Andy Wenk <an...@nms.de>.
thanks Benoit - super cool!

I think this should be in the documentation. Why not opening an extra topic
called "CouchDB internals" in http://docs.couchdb.org/en/latest/ . One
could also think about placing it in
http://docs.couchdb.org/en/latest/intro/overview.html but imho it should be
more prominently

I am also following Noah's and Dirkjan's opinion


On 20 October 2013 13:05, Noah Slater <ns...@apache.org> wrote:

> I think this could/should live in the manual (i.e. the docs we ship with
> CouchDB). Just put it at the back, or in a developers section.
>
>
> On 20 October 2013 12:34, Benoit Chesneau <bc...@gmail.com> wrote:
>
> > On Sun, Oct 20, 2013 at 12:25 PM, Dirkjan Ochtman <dirkjan@ochtman.nl
> > >wrote:
> >
> > > On Sun, Oct 20, 2013 at 12:22 PM, Benoit Chesneau <bchesneau@gmail.com
> >
> > > wrote:
> > > > But I just created the couchdb_internals repo to handle changes on
> this
> > > > content. Feel free to join me ;)
> > >
> > > Why not just do it in the docs? Seems a little more accessible,
> > > centralized and integrated.
> > >
> > >
> > Made a mail about on another topic.  It could be, but I don't think it
> > should be part of a user doc. We should have a doc targeting developers,
> > hobbyists and hackers with a specific entry imo.
> >
> > - benoit
> >
>
>
>
> --
> Noah Slater
> https://twitter.com/nslater
>



-- 
Andy Wenk
Hamburg - Germany
RockIt!

"CouchDB - Das Praxisbuch für Entwickler und Administratoren"
http://www.galileocomputing.de/2462
http://www.couchdb-buch.de

"PostgreSQL 8.4: Das Praxisbuch"
http://www.galileocomputing.de/2008
http://www.pg-praxisbuch.de

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: OpenPGP.js v.1.20130712
Comment: http://openpgpjs.org

xo0EUeJpHgED/34kUBUQNNT+3fcc621CLjzQZsuwYajo7Pj1hxtTcPbOo6Ci
UbyGOlIhlSDBaiXGXsFKxtdp4z/os7NdFQstzh6QpHzppjbGzGkv/om49jJM
SYLYkXyMDquhEQO47ovgOQUwJeO5qSzKE5fxftJQUjzHY1K673aA9D80uREM
Jc1tABEBAAHNF0FuZHkgV2VuayA8YW5keUBubXMuZGU+wpwEEAEIABAFAlHi
aR8JEAhxaGu1XIB2AAAfuAP/ZJXbv5wxAGCPridI/8Za9fXcccM0GmsG5ciH
bkhE9bakLlexclv3Jb+iQ2Cyp2FFo1wzLSADRRMEz1EvFFUoDo/Wj2SUQnaq
LNA8tKkRBuW0tUf88aK66TcdRINghhAcEqVJtwRIXF7fI5Arv6N+ql8heD3O
4/jA6c/8iExS0dE=
=6ftE
-----END PGP PUBLIC KEY BLOCK-----

Re: couch btree algorithm

Posted by Noah Slater <ns...@apache.org>.
I think this could/should live in the manual (i.e. the docs we ship with
CouchDB). Just put it at the back, or in a developers section.


On 20 October 2013 12:34, Benoit Chesneau <bc...@gmail.com> wrote:

> On Sun, Oct 20, 2013 at 12:25 PM, Dirkjan Ochtman <dirkjan@ochtman.nl
> >wrote:
>
> > On Sun, Oct 20, 2013 at 12:22 PM, Benoit Chesneau <bc...@gmail.com>
> > wrote:
> > > But I just created the couchdb_internals repo to handle changes on this
> > > content. Feel free to join me ;)
> >
> > Why not just do it in the docs? Seems a little more accessible,
> > centralized and integrated.
> >
> >
> Made a mail about on another topic.  It could be, but I don't think it
> should be part of a user doc. We should have a doc targeting developers,
> hobbyists and hackers with a specific entry imo.
>
> - benoit
>



-- 
Noah Slater
https://twitter.com/nslater

Re: couch btree algorithm

Posted by Benoit Chesneau <bc...@gmail.com>.
On Sun, Oct 20, 2013 at 12:25 PM, Dirkjan Ochtman <di...@ochtman.nl>wrote:

> On Sun, Oct 20, 2013 at 12:22 PM, Benoit Chesneau <bc...@gmail.com>
> wrote:
> > But I just created the couchdb_internals repo to handle changes on this
> > content. Feel free to join me ;)
>
> Why not just do it in the docs? Seems a little more accessible,
> centralized and integrated.
>
>
Made a mail about on another topic.  It could be, but I don't think it
should be part of a user doc. We should have a doc targeting developers,
hobbyists and hackers with a specific entry imo.

- benoit

Re: couch btree algorithm

Posted by Dirkjan Ochtman <di...@ochtman.nl>.
On Sun, Oct 20, 2013 at 12:22 PM, Benoit Chesneau <bc...@gmail.com> wrote:
> But I just created the couchdb_internals repo to handle changes on this
> content. Feel free to join me ;)

Why not just do it in the docs? Seems a little more accessible,
centralized and integrated.

Cheers,

Dirkjan

Re: couch btree algorithm

Posted by Benoit Chesneau <bc...@gmail.com>.
On Sun, Oct 20, 2013 at 11:49 AM, Andy Wenk <an...@nms.de> wrote:

> On 20 October 2013 11:33, Benoit Chesneau <bc...@gmail.com> wrote:
>
>
> >
> > My goal for now is to document all the algorithmm used in a pseudo lang
> > like I did for the replicator. Then maybe write a simple implementation
> so
> > people can play with it and eventually improve it.
> >
> > - benoit
> >
>
> sounds great! Can you please point me to what you have already written
> about the replicator? I am just plain interested ;-)
>
>
It was originally there:

https://github.com/refuge/rcouch/wiki/Replication-Algorithm

But I just created the couchdb_internals repo to handle changes on this
content. Feel free to join me ;)

The couchdb internals repo:

https://github.com/benoitc/couchdb_internals

And the replication algorithm doc:

https://github.com/benoitc/couchdb_internals/blob/master/replication_algorithm.md

- benoit

Re: couch btree algorithm

Posted by Andy Wenk <an...@nms.de>.
On 20 October 2013 11:33, Benoit Chesneau <bc...@gmail.com> wrote:

> On Sun, Oct 20, 2013 at 11:11 AM, Alexander Shorin <kx...@gmail.com>
> wrote:
>
> > Also there was good discussion about quite recently:
> > http://www.mail-archive.com/dev@couchdb.apache.org/msg18257.html
> > --
> > ,,,^..^,,,
> >
> >
> > On Sun, Oct 20, 2013 at 1:06 PM, Alexander Shorin <kx...@gmail.com>
> > wrote:
> > > A bit old, but may be useful:
> > >
> > >
> >
> http://web.archive.org/web/20110903011752/http://horicky.blogspot.com/2008/10/couchdb-implementation.html
> > > http://ayende.com/blog/3608/more-couchdb-reading-btree-lookup
> > > http://ayende.com/blog/3609/more-couchdb-reading-btree-query-modify
> > > --
> > > ,,,^..^,,,
> > >
> >
> >
> Thanks Alexander! That will help me, I don't think the way we index/store
> the data (can we really call that a btree?) changed too much since…. Maybe
> Paul have some insights on that.
>
>
> My goal for now is to document all the algorithmm used in a pseudo lang
> like I did for the replicator. Then maybe write a simple implementation so
> people can play with it and eventually improve it.
>
> - benoit
>

sounds great! Can you please point me to what you have already written
about the replicator? I am just plain interested ;-)

Thanks

Andy


-- 
Andy Wenk
Hamburg - Germany
RockIt!

Re: couch btree algorithm

Posted by Benoit Chesneau <bc...@gmail.com>.
On Sun, Oct 20, 2013 at 11:11 AM, Alexander Shorin <kx...@gmail.com> wrote:

> Also there was good discussion about quite recently:
> http://www.mail-archive.com/dev@couchdb.apache.org/msg18257.html
> --
> ,,,^..^,,,
>
>
> On Sun, Oct 20, 2013 at 1:06 PM, Alexander Shorin <kx...@gmail.com>
> wrote:
> > A bit old, but may be useful:
> >
> >
> http://web.archive.org/web/20110903011752/http://horicky.blogspot.com/2008/10/couchdb-implementation.html
> > http://ayende.com/blog/3608/more-couchdb-reading-btree-lookup
> > http://ayende.com/blog/3609/more-couchdb-reading-btree-query-modify
> > --
> > ,,,^..^,,,
> >
>
>
Thanks Alexander! That will help me, I don't think the way we index/store
the data (can we really call that a btree?) changed too much since…. Maybe
Paul have some insights on that.


My goal for now is to document all the algorithmm used in a pseudo lang
like I did for the replicator. Then maybe write a simple implementation so
people can play with it and eventually improve it.

- benoit

Re: couch btree algorithm

Posted by Alexander Shorin <kx...@gmail.com>.
Also there was good discussion about quite recently:
http://www.mail-archive.com/dev@couchdb.apache.org/msg18257.html
--
,,,^..^,,,


On Sun, Oct 20, 2013 at 1:06 PM, Alexander Shorin <kx...@gmail.com> wrote:
> A bit old, but may be useful:
>
> http://web.archive.org/web/20110903011752/http://horicky.blogspot.com/2008/10/couchdb-implementation.html
> http://ayende.com/blog/3608/more-couchdb-reading-btree-lookup
> http://ayende.com/blog/3609/more-couchdb-reading-btree-query-modify
> --
> ,,,^..^,,,
>
>
> On Sun, Oct 20, 2013 at 12:37 PM, Benoit Chesneau <bc...@gmail.com> wrote:
>> Is anyone of you aware of a paper or blog describing the internals of the
>> couchdb storage?
>>
>> I remember there was a eerie of blog post but can't remember the address.
>> Anyway if anyone have some informations about it I'm interested.
>>
>>
>> - benoit

Re: couch btree algorithm

Posted by Alexander Shorin <kx...@gmail.com>.
A bit old, but may be useful:

http://web.archive.org/web/20110903011752/http://horicky.blogspot.com/2008/10/couchdb-implementation.html
http://ayende.com/blog/3608/more-couchdb-reading-btree-lookup
http://ayende.com/blog/3609/more-couchdb-reading-btree-query-modify
--
,,,^..^,,,


On Sun, Oct 20, 2013 at 12:37 PM, Benoit Chesneau <bc...@gmail.com> wrote:
> Is anyone of you aware of a paper or blog describing the internals of the
> couchdb storage?
>
> I remember there was a eerie of blog post but can't remember the address.
> Anyway if anyone have some informations about it I'm interested.
>
>
> - benoit