Personal computing discussed

Moderators: renee, SecretSquirrel, just brew it!

 
emorgoch
Gerbil Elite
Posts: 719
Joined: Tue Mar 27, 2007 11:26 am
Location: Toronto, ON

Re: ASP.NET with recordsets ?

Tue Feb 05, 2008 12:06 pm

Fair enough. I still used parameterized queries even when I'm in a tightly controlled environment, however, as I've never had to program something where resources were so limited that the overhead of of using parameters caused a significant performance reduction, and it's now such a habit that I would actually have to consciously force myself to use string-mashed query.
Intel i7 4790k @ stock, Asus Z97-PRO(Wi-Fi ac), 2x8GB Crucial DDR3 1600MHz, EVGA GTX 1080Ti FTW3
Samsung 950 Pro 512GB + 2TB Western Digital Black
Dell 2408WFP and Dell 2407WFP-HC for dual-24" goodness
Windows 10 64-bit
 
UberGerbil
Grand Admiral Gerbil
Posts: 10368
Joined: Thu Jun 19, 2003 3:11 pm

Re: ASP.NET with recordsets ?

Tue Feb 05, 2008 12:26 pm

Actually, parameterized queries can provide a performance improvement in many cases, if you're using a DB engine that is smart enough to precompile and optimize them. Of course, one as generic as the code earlier doesn't offer much opportunity for optimization. I'd use them anyway: today's "tightly controlled environment" is tomorrow's infrastructure, buried and forgotten several levels down, with the new top layer open to teh intrawebs.
 
Flying Fox
Gerbil God
Posts: 25690
Joined: Mon May 24, 2004 2:19 am
Contact:

Re: ASP.NET with recordsets ?

Tue Feb 05, 2008 9:48 pm

SQL Server should do something similar to Oracle that precompiles and caches queries. So the performance aspect is there with a properly utilized parameterized query. It's not a big deal for your intranet app, but learning best practices is always a Good Thing (TM).
The Model M is not for the faint of heart. You either like them or hate them.

Gerbils unite! Fold for UnitedGerbilNation, team 2630.
 
emorgoch
Gerbil Elite
Posts: 719
Joined: Tue Mar 27, 2007 11:26 am
Location: Toronto, ON

Re: ASP.NET with recordsets ?

Tue Feb 05, 2008 10:03 pm

I was thinking more performance overhead on the client (web server) side of things, than the database server.
Intel i7 4790k @ stock, Asus Z97-PRO(Wi-Fi ac), 2x8GB Crucial DDR3 1600MHz, EVGA GTX 1080Ti FTW3
Samsung 950 Pro 512GB + 2TB Western Digital Black
Dell 2408WFP and Dell 2407WFP-HC for dual-24" goodness
Windows 10 64-bit

Who is online

Users browsing this forum: No registered users and 8 guests
GZIP: On