Quantcast
Channel: Active questions tagged redis+ruby-on-rails - Stack Overflow
Viewing all articles
Browse latest Browse all 873

Is it possible to do bulk read from redis outside index block in Ruby ActiveAdmin?

$
0
0

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.

  1. 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 the index block?

  2. How can we get X users' id within ActiveAdmin.register so that we can pass it to GetBulkUserNames() ?


Viewing all articles
Browse latest Browse all 873

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>