Skip to content
This repository has been archived by the owner on Feb 20, 2021. It is now read-only.

No result for keys * for relatively large number of keys. #13

Closed
nitesh123 opened this issue Aug 3, 2012 · 0 comments
Closed

No result for keys * for relatively large number of keys. #13

nitesh123 opened this issue Aug 3, 2012 · 0 comments

Comments

@nitesh123
Copy link

No result for keys * for relatively large number of keys, by relatively large meaning more than 5200 keys. It is seen for number of keys less than 5100 , the expected multi bulk output is returned.

To reproduce this, populate the database with appropriate number of normal keys.

Sample Output

Working for keys <= 5100
    [6684] 03 Aug 18:57:04 * The server is now ready to accept connections on port 5970
    [6684] 03 Aug 18:57:04 - Accepted 127.0.0.1:61913
    [6684] 03 Aug 18:57:04 - 1 clients connected (0 slaves), 452324 bytes in use
    [6684] 03 Aug 18:57:09 - DB 0: 5106 keys (0 volatile) in 8192 slots HT.

redis-cli.exe output : of **keys *** [trimmed]

   5104) "3929"
   5105) "4658"
   5106) "4659"
   redis 127.0.0.1:5970>
Observed scenario for keys >=5200
   [4312] 03 Aug 19:03:33 * The server is now ready to accept connections on port 7178
   [4312] 03 Aug 19:03:33 - Accepted 127.0.0.1:62110
   [4312] 03 Aug 19:03:33 - 1 clients connected (0 slaves), 452324 bytes in use
   [4312] 03 Aug 19:03:38 - DB 0: 5206 keys (0 volatile) in 8192 slots HT.

redis-cli.exe output :

   redis 127.0.0.1:7178>
   redis 127.0.0.1:7178> dbsize
   (integer) 5206
   redis 127.0.0.1:7178> keys *
   redis 127.0.0.1:7178> 
Another Scenario where the time is returned
Database 0 populated with more than 50000 keys:

    [7296] 03 Aug 18:43:08 - 0 clients connected (0 slaves), 3146972 bytes in use
    [7296] 03 Aug 18:43:13 - DB 0: 50006 keys (0 volatile) in 65536 slots HT.
    [7296] 03 Aug 18:43:13 - 0 clients connected (0 slaves), 3146972 bytes in use
    [7296] 03 Aug 18:43:18 - DB 0: 50006 keys (0 volatile) in 65536 slots HT.

redis-cli.exe output

   redis 127.0.0.1:8354> dbsize
   (integer) 50006
   redis 127.0.0.1:8354> keys *
   (0.65s)
   redis 127.0.0.1:8354>
Comparison with redis 2.4.16 stable release for non-windows operating systems

[Note: database is loaded from dump.rdb]

Database 9 populated with 1000000 keys:

   [2224] 03 Aug 18:39:47 * DB loaded from disk: 2 seconds
   [2224] 03 Aug 18:39:47 * The server is now ready to accept connections on port 21218
   [2224] 03 Aug 18:39:48 - DB 9: 1000000 keys (0 volatile) in 1048576 slots HT.
   [2224] 03 Aug 18:39:48 - 0 clients connected (0 slaves), 52581792 bytes in use
   [2224] 03 Aug 18:39:53 - DB 9: 1000000 keys (0 volatile) in 1048576 slots HT.
   [2224] 03 Aug 18:39:53 - 0 clients connected (0 slaves), 52581792 bytes in use
   [2224] 03 Aug 18:39:58 - DB 9: 1000000 keys (0 volatile) in 1048576 slots HT.

./redis-cli output of **keys *** [trimmed]

  999997) "415969"
  999998) "343798"
  999999) "343799"
  1000000) "415970"
  (186.04s)
  redis 127.0.0.1:21218[9]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants