Difference between revisions of "Redis-cli --bigkeys"

From wikieduonline
Jump to navigation Jump to search
Line 20: Line 20:
  
 
== Official example ==
 
== Official example ==
 +
 +
# Scanning the entire keyspace to find biggest keys as well as
 +
# average sizes per key type.  You can use -i 0.01 to sleep 0.01 sec
 +
# per SCAN command (not usually needed).
 +
 +
[00.00%] [[Biggest string]] found so far 'key-419' with 3 bytes
 +
[05.14%] [[Biggest list]]  found so far 'mylist' with 100004 items
 +
[35.77%] [[Biggest string]] found so far 'counter:__rand_int__' with 6 bytes
 +
[73.91%] [[Biggest hash]]  found so far 'myobject' with 3 fields
 
<pre>
 
<pre>
# Scanning the entire keyspace to find biggest keys as well as
 
# average sizes per key type.  You can use -i 0.01 to sleep 0.01 sec
 
# per SCAN command (not usually needed).
 
 
[00.00%] [[Biggest string]] found so far 'key-419' with 3 bytes
 
[05.14%] [[Biggest list]]  found so far 'mylist' with 100004 items
 
[35.77%] [[Biggest string]] found so far 'counter:__rand_int__' with 6 bytes
 
[73.91%] [[Biggest hash]]  found so far 'myobject' with 3 fields
 
 
 
-------- summary -------
 
-------- summary -------
  

Revision as of 17:14, 18 September 2022

redis-cli --bigkeys
# Scanning the entire keyspace to find biggest keys as well as
# average sizes per key type.  You can use -i 0.1 to sleep 0.1 sec
# per 100 SCAN commands (not usually needed).
 

-------- summary -------

Sampled 0 keys in the keyspace!
Total key length in bytes is 0 (avg len 0.00)
 

0 hashs with 0 fields (00.00% of keys, avg size 0.00)
0 lists with 0 items (00.00% of keys, avg size 0.00)
0 strings with 0 bytes (00.00% of keys, avg size 0.00)
0 streams with 0 entries (00.00% of keys, avg size 0.00)
0 sets with 0 members (00.00% of keys, avg size 0.00)
0 zsets with 0 members (00.00% of keys, avg size 0.00)

Official example

# Scanning the entire keyspace to find biggest keys as well as
# average sizes per key type.  You can use -i 0.01 to sleep 0.01 sec
# per SCAN command (not usually needed).

[00.00%] Biggest string found so far 'key-419' with 3 bytes
[05.14%] Biggest list   found so far 'mylist' with 100004 items
[35.77%] Biggest string found so far 'counter:__rand_int__' with 6 bytes
[73.91%] Biggest hash   found so far 'myobject' with 3 fields
-------- summary -------

Sampled 506 keys in the keyspace!
Total key length in bytes is 3452 (avg len 6.82)

Biggest string found 'counter:__rand_int__' has 6 bytes
Biggest   list found 'mylist' has 100004 items
Biggest   hash found 'myobject' has 3 fields

504 strings with 1403 bytes (99.60% of keys, avg size 2.78)
1 lists with 100004 items (00.20% of keys, avg size 100004.00)
0 sets with 0 members (00.00% of keys, avg size 0.00)
1 hashs with 3 fields (00.20% of keys, avg size 3.00)
0 zsets with 0 members (00.00% of keys, avg size 0.00)

See also

Advertising: