You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to retrieve from Redis all relevant ids (a lot of 64 Big Integers) when an application server starts and store them in the immutable cache right in the RAM. Multiple threads should have an access to the single shared cache object. Later I will need to get slices of the array and send them to Redis (or Postgres) to get the entities.
How would you do that for maximal speed and convenience? Just convert them to strings and store them in a regular array, or convert to BigInt in BigUint64Array, or something else?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello there,
I need to retrieve from Redis all relevant ids (a lot of 64 Big Integers) when an application server starts and store them in the immutable cache right in the RAM. Multiple threads should have an access to the single shared cache object. Later I will need to get slices of the array and send them to Redis (or Postgres) to get the entities.
How would you do that for maximal speed and convenience? Just convert them to strings and store them in a regular array, or convert to BigInt in BigUint64Array, or something else?
Beta Was this translation helpful? Give feedback.
All reactions