Re:How I Reduced My DB Server Load by 80%
by cagmz on Tuesday October 10, 2017 @12:31AM
(#15439375)
What do you mean by "set-manner than a C-in-SQL manner"?
[ Parent
| on HN ]
Re:How I Reduced My DB Server Load by 80%
by jessaustin on Tuesday October 10, 2017 @02:02AM
(#15439712)
(Not OP, but I feel like I've seen this phenomenon before.) In C, the natural idiom would be to read in a giant file line by line, doing something with each line and eventually doing something else based on some summary of everything read so far. Lots of dumb SQL code also does something like this, e.g. by generating some ginormous join and then whittling it down to something usable. Better SQL code filters before the join, and often uses indexes to do so.