[patches] [PATCH 2/2] vinyl: implement space.bsize, index.bsize, and index.len

Konstantin Osipov kostja at tarantool.org
Thu Feb 8 23:14:09 MSK 2018


* Vladimir Davydov <vdavydov.dev at gmail.com> [18/02/04 21:12]:
>  - space.bsize returns the size of data stored in the space.
>    It is the sum of memory.bytes and disk.bytes as reported
>    by the primary index.

Why is it looking at the primary index only? Shouldn't it take
into account all indexes? 
Since this has surfaced as a question, please add a test case.

>  - index.bsize returns the size of memory used for indexing data.
>    It is the sum of memory.index_size, disk.index_size, and
>    disk.bloom_size as reported by index.info.

This is OK.

>  - index.len returns the total number of rows stored in the index.
>    It is the sum of memory.rows and disk.rows as reported by
>    index.info. Note, it may be greater than the number of tuples
>    stored in the space, because it includes DELETE and UPDATE
>    statements.

This is OK too.


-- 
Konstantin Osipov, Moscow, Russia, +7 903 626 22 32
http://tarantool.org - www.twitter.com/kostja_osipov



More information about the Tarantool-patches mailing list