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
But this blocks the eventloop with having a large amount of keys in the DB, so I think this has to be done in small batches with e.g. 1000L instead of Long.MAX_VALUE.
Is there anyone who can explain this while(cursor.hasNext) { ...cursor.next() ...} stucture to retrieve the keys in a reactive manner?
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,
I'm trying to get a list/set of all keys with a given pattern in a Redis DB reactivly using the ReactiveKeyScanCursor.
The simplest way to do it is:
But this blocks the eventloop with having a large amount of keys in the DB, so I think this has to be done in small batches with e.g.
1000L
instead ofLong.MAX_VALUE
.Is there anyone who can explain this
while(cursor.hasNext) { ...cursor.next() ...}
stucture to retrieve the keys in a reactive manner?Thanks in advance,
Andreas
Beta Was this translation helpful? Give feedback.
All reactions