Tech
One Loop Made Four Hundred Round Trips
The list page takes nine seconds.
On your machine it took
a quarter of a second,
with twelve rows in the table.
There are four hundred rows
in production,
and there is nothing wrong
with any line you wrote.
Look at the loop.
You walk the orders.
For each one you read
the customer's name,
which is a field
on an object you already have.
It looks like a field.
It reads like a field.
It is a query,
issued one order at a time,
four hundred times,
each one leaving th...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to