Saturday, 15 May 2010

c# - Getting multiple hashes from redis using StackExchange.Redis -


I need to get approximately 10k hashes from redis server. Since I do not order any code in many codes, I was running through all the keys using the db.HashGetAllAsync () call and then to complete all the tasks. Was waiting. Although this has worked, I saw a dramatic latency spike on the radislabs dashboard during these calls.

Is there any way to get many hashes at the same time? Could any connection multiplexer setting be helpful in this situation?

There is no variant hgetall , so yes: the simplest way is to pipeline There will be a huge number of individual hgetall . The only thing you can possibly , is to use the Leah script ( eval / evalsha ) to generate many items in each item But I can not see how this server will reduce the load or bandwidth, so it does not seem to be worth trying!

By any means, yes: it will generate some work on the server.


No comments:

Post a Comment