I have code within index
block, where if there are X users for a class, the index block is looped X times.
Within index
block, I make a call to Redis to read a value. So, it would be X calls to Redis.
Is there a way to make bulk call to Redis where we can pass X users' ids as an array? (Say
GetBulkUserNames(<Array_Of_X_Users_Ids>)
) If yes, how to do that? Should that go in a method or it can be anywhere outside theindex
block?How can we get X users' id within
ActiveAdmin.register
so that we can pass it toGetBulkUserNames()
?