I'm using Jedis Java library to make the iterative hscans operations
I'm experiencing an strange behaviour with HSCAN command with a custom COUNT on a hashmap on redis, with no search pattern. The hashmap has a size of 350000 elements (every element has 1Kb of size)
I'm iterating over the redis hasmap elements. In every iteration, I store the elements into a list. When I reach a limit of scanned elements (2000 elements) I stop the hscan.Then I make some calculations and delete (hdel) the elements into the list. Then I return to execute another hscan operation (initied with a new zewro cursor) and store elements in a list and etc... This cycle repeats until the hashmap is depleted
I've done tests with different values of COUNT, counting the number of hscan operations and the elements retrieved in each hscan call. That to calculate a average elements/hscan and see how many redis calls I'm doing
X = COUNT value in each testI'm recieving A LOT of iterations with 0 results (but cursor with non-zero value). Then, I recieve some iterations with the element number as COUNT value, no problem. The number of HSCAN operations isvery high and that's impacting severely the performance of my application. Memory and cpu usage are monitorized and I've seen no issues on this regard.
I can not find any explanation to this strange behaviour, any ideas ?
--
You received this message because you are subscribed to the Google Groups "Jedis" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jedis_redis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jedis_redis/428f39e1-7030-4559-8241-44d943b4d449n%40googlegroups.com.
I know that solution works
To view this discussion on the web visit https://groups.google.com/d/msgid/jedis_redis/72688348-9e7b-4f5e-99d7-9a8057a478f5n%40googlegroups.com.