in reply to Re: Re: Re: DBI prepare_cached VS self cached
in thread DBI prepare_cached VS self cached

Are you sure he wasn't talking about caching the actual prepared statement, versus using the prepare_cached method? I.E. while not caching the data, he can actually store

$queries{"SELECT .."} = $dbh->prepare("SELECT ..");

Which is talked about here: http://perl.apache.org/docs/1.0/guide/performance.html#Eliminating_SQL_Statement_Parsing

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: DBI prepare_cached VS self cached
by perrin (Chancellor) on Oct 25, 2003 at 06:32 UTC
    Yes, quite sure.

    I created a %CACHE with the select statement as the Key and a Hash representing the columns returned as the %CACHE value.