we are saving 250k Objects in Redis using Spring Data Redis Repositories (repository.save(List)). its too slow. its taking around 30 minutes.
i am using redisTemplate with pipeline to save 250k objects with same redis data structure as repository (like using hmset to store object, sadd to to store key. so that we can retrieve object using repository) save, managed to save 250k in 150 seconds.
how can we save objects using repository save with pipeline? so that i don't need to manually do stuff like hmset, sadd (this is the internally happens when repository saves data in redis)