3 ms·
The example you gave is not really a Big O issue. It's the extra DB calls adding a huge constant that's the problem not the underlying algorithm. O(x) can be
by Retric 8y ago
The example you gave is not really a Big O issue. It's the extra DB calls adding a huge constant that's the problem not the underlying algorithm. O(x) can be horrible when the constant is 1/10th of a second each record.
This may be a case of the developers not understanding your ORM tooling. They get something that works, and don't quite what's going on under the hood.