You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Emmanuel Lécharny <el...@gmail.com> on 2013/12/20 20:44:49 UTC
[Mavibot] Atmic operation cross BTrees
Hi guys,
transaction support is not easy, and while working on it, I realized
that the most critical part of it is the global update of the btrees
headers. This is a mandatory part of the transaction process, but it's
also a mandatory part of the atomocity of operations across BTrees.
Although we don't need to support in-memory operations on pages to get
Mavibot guarantiing atomocity across btrees. We just need to exhibit the
update btrees when we are done with the operation.
I will start implementing this feature first, as its critical for
ApacheDS (in fact, we need it, all the transaction feature is less
critical, even if it's good to have in the near future), and I *think*
we will be able to release ApacheDS with this backand as the main backend...
thoughts ?
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
Re: [Mavibot] Atmic operation cross BTrees
Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 12/20/13 11:09 PM, Howard Chu a écrit :
> Emmanuel Lécharny wrote:
>> Hi guys,
>>
>> transaction support is not easy, and while working on it, I realized
>> that the most critical part of it is the global update of the btrees
>> headers. This is a mandatory part of the transaction process, but it's
>> also a mandatory part of the atomocity of operations across BTrees.
>>
>> Although we don't need to support in-memory operations on pages to get
>> Mavibot guarantiing atomocity across btrees. We just need to exhibit the
>> update btrees when we are done with the operation.
>>
>> I will start implementing this feature first, as its critical for
>> ApacheDS (in fact, we need it, all the transaction feature is less
>> critical, even if it's good to have in the near future), and I *think*
>> we will be able to release ApacheDS with this backand as the main
>> backend...
>>
>> thoughts ?
>>
> Not sure why this is a big deal. E.g., in LMDB, you have a tree of
> trees. So updates to just a single tree or updates to many trees are
> all naturally a single atomic transaction.
>
We don't have a tree of trees atm. This is why it's a big deal ;-)
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
Re: [Mavibot] Atmic operation cross BTrees
Posted by Howard Chu <hy...@symas.com>.
Emmanuel Lécharny wrote:
> Hi guys,
>
> transaction support is not easy, and while working on it, I realized
> that the most critical part of it is the global update of the btrees
> headers. This is a mandatory part of the transaction process, but it's
> also a mandatory part of the atomocity of operations across BTrees.
>
> Although we don't need to support in-memory operations on pages to get
> Mavibot guarantiing atomocity across btrees. We just need to exhibit the
> update btrees when we are done with the operation.
>
> I will start implementing this feature first, as its critical for
> ApacheDS (in fact, we need it, all the transaction feature is less
> critical, even if it's good to have in the near future), and I *think*
> we will be able to release ApacheDS with this backand as the main backend...
>
> thoughts ?
>
Not sure why this is a big deal. E.g., in LMDB, you have a tree of trees. So
updates to just a single tree or updates to many trees are all naturally a
single atomic transaction.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/