3 ms·
you are right, APIs often use o(n) algorithms in an individual API call that is meant to execute once. what happens, is that API users start executing that end
by somurzakov 7y ago
you are right, APIs often use o(n) algorithms in an individual API call that is meant to execute once.
what happens, is that API users start executing that endpoint N times and here it becomes O(n^2).
people should remember that APIs are for CRUD calls. If you want batch reports - call a separate reporting endpoints that process data in large batches.