in reply to Re: Re: speed and efficiency XML/DBI vs DBI
in thread speed and efficiency XML/DBI vs DBI

The prepare_cached method prevents the statement handle from being created more than once (in a persistent environment like mod_perl), but that's all it does. The query still has to be executed by the database. It should be faster to pull the data from a cache.

Maybe you're getting ahead of yourself here. Is the site slow now? Have you profiled it to find out where the bottlenecks are? It could be that this particular query runs so fast that it's not worth caching.

  • Comment on Re: Re: Re: speed and efficiency XML/DBI vs DBI

Replies are listed 'Best First'.
Re: Re: Re: Re: speed and efficiency XML/DBI vs DBI
by primus (Scribe) on Jan 14, 2003 at 17:22 UTC
    well, the site is not slow, i was just looking to the future, because though the site isnt finished,i just wanted to start with the fastest possible execution, avioding any bottleneck before it occurs.

    and yes, i suppose i am getting ahead of myself, because the calls to the database are fairly simple SQL queries, so in all reality i doubt that they will pose a problem... i am just curious as to faster execution possibilities.

    thanks for the wisdom fellow monks