Home : Products : Gossamer Links : Discussions :

Products: Gossamer Links: Discussions: Re: [el noe] performance difference do_query prepare + execute: Edit Log

Here is the list of edits for this post
Re: [el noe] performance difference do_query prepare + execute
Hi,

Are you asking if your 1st or 2nd query is faster?

BTW I would personally do:

Code:
sub {
my $Links = $DB->table('Links');
$Links->select_options("LIMIT 0,1");
return $Links->select( ['Contact_Email'], { BrandID => $_[0] } )->fetchrow || undef
}

That gets around placeholders, and any potential SQL injection issues as well then

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

Last edited by:

Andy: May 6, 2021, 8:06 AM

Edit Log: