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

Vladimir Davydov vdavydov.dev at gmail.com
Fri Feb 9 12:17:07 MSK 2018


On Thu, Feb 08, 2018 at 11:14:09PM +0300, Konstantin Osipov wrote:
> * 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? 

AFAIU usere want to see how much user data a space stores, hence len and
bsize return the actual number of rows and their cumulative size. This
is consistent with memtx.

More detailed information can be checked with the aid of index.info().

> Since this has surfaced as a question, please add a test case.

OK.



More information about the Tarantool-patches mailing list