Commit c5d3f89
committed
[Gem] Fixes ScrollHelper
Fixes #2556
The iteration implementation has been fixed. There was a bug where an
additional search (with scroll) request was made to Elasticsearch for
each resulting hit. It was rewritten so that the docs are retrieved as
needed and the Helper instance doesn't store documents internally,
with big savings in memory and requests to Elasticsearch.1 parent 0e73dfd commit c5d3f89
1 file changed
+4
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 46 | + | |
| 47 | + | |
52 | 48 | | |
53 | 49 | | |
54 | 50 | | |
| |||
70 | 66 | | |
71 | 67 | | |
72 | 68 | | |
73 | | - | |
| 69 | + | |
74 | 70 | | |
75 | 71 | | |
76 | 72 | | |
77 | 73 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | 74 | | |
85 | 75 | | |
86 | 76 | | |
87 | 77 | | |
88 | 78 | | |
89 | 79 | | |
90 | 80 | | |
91 | | - | |
| 81 | + | |
92 | 82 | | |
93 | 83 | | |
94 | 84 | | |
| |||
0 commit comments