-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit d81d990
committed
DATAREDIS-803 - Work around Redis parameter limitation.
Redis has a [limitation of 1024 * 1024 parameters](https://github.com/antirez/redis/blob/4.0.9/src/networking.c#L1200) for bulk operations.
To insert more than 1024 * 1024 / 2 - 1 entries with putAll(), they need to be split up in multiple calls.
To reveive more than 1024 * 1024 - 1 entries with entrySet(), we can directly use the HGETALL command instead of first fetching the keys with HKEYS and then fetching the values with HMGET.1 parent e0b73c7 commit d81d990
File tree
2 files changed
+27
-14
lines changed- src
- main/java/org/springframework/data/redis/support/collections
- test/java/org/springframework/data/redis/support/collections
2 files changed
+27
-14
lines changedLines changed: 4 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
41 | + | ||
41 | 42 |
| |
42 | 43 |
| |
43 | 44 |
| |
| |||
155 | 156 |
| |
156 | 157 |
| |
157 | 158 |
| |
158 | - | ||
159 | - | ||
160 | - | ||
161 | - | ||
162 | - | ||
163 | - | ||
164 | - | ||
165 | - | ||
166 | - | ||
167 | - | ||
168 | - | ||
169 | - | ||
170 | - | ||
171 | - | ||
159 | + | ||
160 | + | ||
161 | + | ||
172 | 162 |
| |
173 | 163 |
| |
174 | 164 |
| |
|
Lines changed: 23 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 | + | ||
28 | 29 |
| |
29 | 30 |
| |
30 | 31 |
| |
| |||
62 | 63 |
| |
63 | 64 |
| |
64 | 65 |
| |
66 | + | ||
65 | 67 |
| |
66 | 68 |
| |
67 | 69 |
| |
| |||
396 | 398 |
| |
397 | 399 |
| |
398 | 400 |
| |
401 | + | ||
402 | + | ||
403 | + | ||
404 | + | ||
405 | + | ||
406 | + | ||
407 | + | ||
408 | + | ||
409 | + | ||
410 | + | ||
411 | + | ||
412 | + | ||
413 | + | ||
414 | + | ||
415 | + | ||
416 | + | ||
417 | + | ||
418 | + | ||
419 | + | ||
420 | + | ||
421 | + | ||
399 | 422 |
| |
400 | 423 |
| |
401 | 424 |
| |
|
0 commit comments