Editing Redis-cli --bigkeys

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
{{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 17:
 
  0 sets with 0 members (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)
 
  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
 
<pre>
 
-------- 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)
 
</pre>
 
 
 
== Related ==
 
[[Biggest set]]
 
[[Biggest zset]]
 
[[Biggest list]]
 
[[Biggest hash]]
 
  
 
== See also ==
 
== See also ==
 
* {{redis-cli}}
 
* {{redis-cli}}
* {{Redis}}
 
  
 
[[Category:Redis]]
 
[[Category:Redis]]

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: