We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2577c3 commit 86ffeadCopy full SHA for 86ffead
UPGRADE.md
@@ -1,5 +1,7 @@
1
# Upgrade Notes
2
3
+## 3.0.3
4
+- [IMPROVEMENT] fix memory issue when dealing with large object lists (#41)
5
## 3.0.2
6
- [LICENSE] Dual-License with GPL and Dachcom Commercial License (DCL) added
7
## 3.0.1
src/Service/Builder/ObjectListBuilder.php
@@ -32,10 +32,14 @@ public function buildByList(array $options): \Generator
32
{
33
$list = $this->getList($options);
34
35
- foreach ($list->loadIdList() as $id) {
36
- if ($object = DataObject::getById($id)) {
+ $idList = $list->loadIdList();
+ for ($i = 0; $i < count($idList); $i++) {
37
+ if ($object = DataObject::getById($idList[$i])) {
38
yield $object;
39
}
40
+ if ($i % 400 === 0) {
41
+ \Pimcore::collectGarbage();
42
+ }
43
44
45
0 commit comments