You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@bookkeeper.apache.org by Enrico Olivelli <eo...@gmail.com> on 2017/07/19 07:34:46 UTC

InterleavedLedgerStorage vs SortedLedgerStorage

Hi,
is there any doc about the differences and usecases for
InterleavedLedgerStorage vs SortedLedgerStorage ?


--- Enrico

Re: InterleavedLedgerStorage vs SortedLedgerStorage

Posted by Enrico Olivelli <eo...@gmail.com>.
2017-07-19 11:58 GMT+02:00 Sijie Guo <gu...@gmail.com>:

>
>
> On Wed, Jul 19, 2017 at 5:23 PM, Enrico Olivelli <eo...@gmail.com>
> wrote:
>
>> Can you please  tell me  major benefits of Interleaved over Sorted? The
>> default is sorted
>> I can dig in code anyway
>>
>
> Sorted is in general better than Interleaved - not relying on filesystem
> page cache for caching, better I/O isolation.
>
> But if you only have a few ledgers or you rarely read from the ledgers,
> the memtables in Sorted might bring in overhead for you.
>
>

Thank you
I will do benchmarks with my workload, but I think that Sorted will be my
option

Enrico


> - Sijie
>
>
>> Enrico
>>
>> Il mer 19 lug 2017, 11:12 Sijie Guo <gu...@gmail.com> ha scritto:
>>
>>> Currently we don't have such documentation about these two ledger
>>> storages. We are working on improving the documentation as part of BP-11.
>>>
>>> - Sijie
>>>
>>> On Wed, Jul 19, 2017 at 3:34 PM, Enrico Olivelli <eo...@gmail.com>
>>> wrote:
>>>
>>>> Hi,
>>>> is there any doc about the differences and usecases for
>>>> InterleavedLedgerStorage vs SortedLedgerStorage ?
>>>>
>>>>
>>>> --- Enrico
>>>>
>>>
>>> --
>>
>>
>> -- Enrico Olivelli
>>
>
>

Re: InterleavedLedgerStorage vs SortedLedgerStorage

Posted by Sijie Guo <gu...@gmail.com>.
On Wed, Jul 19, 2017 at 5:23 PM, Enrico Olivelli <eo...@gmail.com>
wrote:

> Can you please  tell me  major benefits of Interleaved over Sorted? The
> default is sorted
> I can dig in code anyway
>

Sorted is in general better than Interleaved - not relying on filesystem
page cache for caching, better I/O isolation.

But if you only have a few ledgers or you rarely read from the ledgers, the
memtables in Sorted might bring in overhead for you.

- Sijie


> Enrico
>
> Il mer 19 lug 2017, 11:12 Sijie Guo <gu...@gmail.com> ha scritto:
>
>> Currently we don't have such documentation about these two ledger
>> storages. We are working on improving the documentation as part of BP-11.
>>
>> - Sijie
>>
>> On Wed, Jul 19, 2017 at 3:34 PM, Enrico Olivelli <eo...@gmail.com>
>> wrote:
>>
>>> Hi,
>>> is there any doc about the differences and usecases for
>>> InterleavedLedgerStorage vs SortedLedgerStorage ?
>>>
>>>
>>> --- Enrico
>>>
>>
>> --
>
>
> -- Enrico Olivelli
>

Re: InterleavedLedgerStorage vs SortedLedgerStorage

Posted by Enrico Olivelli <eo...@gmail.com>.
Can you please  tell me  major benefits of Interleaved over Sorted? The
default is sorted
I can dig in code anyway
Enrico

Il mer 19 lug 2017, 11:12 Sijie Guo <gu...@gmail.com> ha scritto:

> Currently we don't have such documentation about these two ledger
> storages. We are working on improving the documentation as part of BP-11.
>
> - Sijie
>
> On Wed, Jul 19, 2017 at 3:34 PM, Enrico Olivelli <eo...@gmail.com>
> wrote:
>
>> Hi,
>> is there any doc about the differences and usecases for
>> InterleavedLedgerStorage vs SortedLedgerStorage ?
>>
>>
>> --- Enrico
>>
>
> --


-- Enrico Olivelli

Re: InterleavedLedgerStorage vs SortedLedgerStorage

Posted by Sijie Guo <gu...@gmail.com>.
Currently we don't have such documentation about these two ledger storages.
We are working on improving the documentation as part of BP-11.

- Sijie

On Wed, Jul 19, 2017 at 3:34 PM, Enrico Olivelli <eo...@gmail.com>
wrote:

> Hi,
> is there any doc about the differences and usecases for
> InterleavedLedgerStorage vs SortedLedgerStorage ?
>
>
> --- Enrico
>