News for hackers. Stuff that matters.
Re:My £4 a month server can handle 4.2M requests a day by hnbad on Wednesday September 08, 2021 @04:34AM (#28454580)
In defense of whoever wrote the original code: it probably would have been reasonably fast if it had been a database query with proper indexes. The filters would have whittled the selection down to only the relevant data, whereas returning basically three entire tables of data to then throw away most of it would have been extremely inefficient.

The mistake of course was not thinking about why this approach is faster in a database query and that it doesn't work that way when you already need to get all the data out of LDAP to do anything with it.

There are no comments on this comment yet.