jedis - How to improve Read performance in redis -


i have around 3 million keys of structure following format example

3000000:60 

each key has hset of string converted values of integer , double

each key has around 10 such entries in map.

key: string = 3000000:60  value : field(string) = abcc , value = 1000:-123.456:1001:234.57:..... 

when read data using hgetall or hget or hmget takes 2-3 minutes

when change pipeline , finish in 20 seconds not sure how process data in batches.

my code snippet below

readpipeline.multi();  (long = start; < end; ++i)    if (pipelinebatch == currentbatchcount)       readpipeline.exec();       list<object> allobjects = readpipeline.syncandreturnall(); 

here when read objects have value queued. so, how process pipelined data?


Comments