13. Show disk usage#

13.1. Synopsis#

SHOW DISK_USAGE

  ON { <entries> | <find_expression> }

find_expression ::=
  FIND ( { <type_expression> | <tag_expression> | NOT <tag_expression> } [ AND ... ] )

tag_expression ::=
  TAG = 'tag_name'

type_expression ::=
  TYPE = { BLOB | DEQUE | HSET | INT | INTEGER | STREAM | TAG | TS }

13.2. Description#

SHOW DISK_USAGE will compute the persisted size of an entry on disk.

13.3. Parameters#

entries

The name of the entries for which the access control list should be listed.

find_expression

When your tables are tagged, you can use inline key/value lookups to perform your query over multiple tables. To match all tables that have the tag “stocks”, you can use FIND(tag='stocks' AND type=ts).

13.4. Examples#

Compute the persisted size on table1:

SHOW DISK_USAGE ON table1

Compute the persisted size for everything tagged with ‘nyse’:

SHOW DISK_USAGE ON FIND(tag='nyse')