websolete
05/23/2022, 7:12 PMSELECT TOP 1 ...
(sql server)? clearly maxrows is superfluous, but i wonder if there are additional implications i should include in calling it out in a code review beyond 'this is redundant'Adam Cameron
TOP 1
cos we're row-limiting in the `<cfquery>`", and get rid of the TOP 1
which pull push more work than necessary into the DB.
Other than that... not that I can think of.websolete
05/23/2022, 7:18 PMAdam Cameron
Adam Cameron
Evil Ware
05/23/2022, 11:46 PMseancorfield
maxrows
in a cfquery
tag to magically change the SQL being executed? It doesn't work that way -- and you do not want to run a query that returns thousands of rows to CF, just to have CF throw away all but maxrows
of that result. That's very inefficient.Evil Ware
05/25/2022, 10:27 PMAdam Cameron
seancorfield
Evil Ware
05/25/2022, 10:41 PMseancorfield
ResultSet
before you've pulled all the rows out of it, that can prevent the streaming of additional chunks. But those can still be pretty large.seancorfield
seancorfield
Evil Ware
05/25/2022, 10:52 PMseancorfield
Evil Ware
05/25/2022, 10:55 PMEvil Ware
05/25/2022, 10:58 PMwebsolete
05/25/2022, 11:19 PMAdam Cameron
websolete
05/26/2022, 12:03 AM