Skip to content

Memory usage optimized

Compare
Choose a tag to compare
@ufee ufee released this 19 Apr 15:32
· 85 commits to master since this release

Get 20 000 entitys with custom fields
Memomy usage: ~130 mb

Example:
$companies = $amo->companies()->maxRows(20000)->recursiveCall();
$companies->each(function(&$company) {
// handle item
$company->id;
$company->cf('Name')->getValue();
// after handled clear mem for this item
$company = null;
});
// done