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

From wikieduonline
Jump to navigation Jump to search
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
  redis-cli --bigkeys
+
* https://redis.io/docs/manual/cli/#scanning-for-big-keys
 +
 
 +
  [[redis-cli]] --bigkeys
 
  # Scanning the entire keyspace to find biggest keys as well as
 
  # 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
 
  # average sizes per key type.  You can use -i 0.1 to sleep 0.1 sec
Line 20: Line 22:
  
 
== 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 -------
  
Line 45: Line 47:
 
0 zsets with 0 members (00.00% of keys, avg size 0.00)
 
0 zsets with 0 members (00.00% of keys, avg size 0.00)
 
</pre>
 
</pre>
 +
 +
 +
== Related ==
 +
[[Biggest set]]
 +
[[Biggest zset]]
 +
[[Biggest list]]
 +
[[Biggest hash]]
  
 
== See also ==
 
== See also ==
 
* {{redis-cli}}
 
* {{redis-cli}}
 +
* {{Redis}}
  
 
[[Category:Redis]]
 
[[Category:Redis]]

Latest revision as of 11:02, 4 October 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[edit]

# 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)


Related[edit]

Biggest set
Biggest zset
Biggest list
Biggest hash

See also[edit]

Advertising: