Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vvoleman committed Nov 23, 2023
1 parent 4f17b25 commit 31581db
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions src/Service/AbstractSyncer.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function sync(): void
$repository = $this->getRepository();

$i = 0;
$maxRecords = 5000;
$maxRecords = 500;
foreach ($data as $item) {
$this->handleRow($item, $repository);
$i++;
Expand Down Expand Up @@ -111,4 +111,9 @@ protected function getFileData(): iterable
}
}

}
protected function logMemory() {
$memory = number_format(memory_get_usage() / 1024 / 1024, 2);
$this->logger->info("Memory: {$memory}MB");
}

}
2 changes: 1 addition & 1 deletion src/Service/CsvSyncer.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ public function sync(): void
}
}

}
}

0 comments on commit 31581db

Please sign in to comment.