Add TODO for updating rider. #762

This commit is contained in:
Korina Cordero 2023-09-28 19:07:11 +08:00
parent 9bf5d5851a
commit 3e0084630f

View file

@ -850,6 +850,11 @@ class GetJobOrderArchiveDataCommand extends Command
protected function updateRiderJobOrders($jo_id_list)
{
// TODO: memory exception while updating rider table.
// need to figure out how to make this not run out of memory.
// first draft had us selecting and finding the rider ids. maybe we should bring
// that back with the set attribute? I can't remember if I ran it with that one :(
// so that updating will have a smaller result set.
$db = $this->em->getConnection();
$db->getWrappedConnection()->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, false);