Subject | Re: Slow execution of first query |
---|---|
Author | Nico Callewaert |
Post date | 2005-11-24T14:59:04Z |
Hi Mike,
Thanks for the tip, but I've limited the result set to 40 records
only (the number of records needed to fill up the grid).
Thank you, Nico
--- In firebird-support@yahoogroups.com, "M Tuttle \(KS\)"
<miket@s...> wrote:
Thanks for the tip, but I've limited the result set to 40 records
only (the number of records needed to fill up the grid).
Thank you, Nico
--- In firebird-support@yahoogroups.com, "M Tuttle \(KS\)"
<miket@s...> wrote:
>may be
> Greetings Noco,
>
> How many records are being returned by your query's result set? I
> wrong, but I'm guessing that IBExpert and DBWorkbench both limitthe number
> of records record in the result set to the number that will displayin the
> interface, which will of course vastly speed up the executiontime. I do
> not know the query you use, but IBQuery has a BufferChunks propertyand if
> you are using a TClientDataset then you can use the PacketRecordsproperty
> to limit your result set to the number of records that can show inyour user
> interface.in
>
> Just a guess mind you...
>
> Mike
>
> ----- Original Message -----
> From: "Nico Callewaert" <ncw@p...>
> To: <firebird-support@yahoogroups.com>
> Sent: Thursday, November 24, 2005 7:06 AM
> Subject: [firebird-support] Re: Slow execution of first query
>
>
> > Hi Pavel,
> >
> > You know what is funny : when I first execute that SQL statement
> > IBExpert, and then I open my application, there is no delay, it'sthe
> > fast immediatly ...
> >
> > Nico
> >
> > --- In firebird-support@yahoogroups.com, Pavel Menshchikov
> > <developer@l...> wrote:
> > >
> > > Hello Nico,
> > >
> > > NC> The connection to the DB is fast, it's only the first time
> > > NC> the "Query.Open" statement is executed. The next 10 or 20
> > times I
> > > NC> open the query, it's always fast.
> > > Then, my guess is that's server-side caching. Can you execute
> > > query via ibexpert/(similar tool)... to get additional infoabout
> > > executing the statement (I mean, time to prepare, time toexecute,
> > > reads, writes, etc. for the first time and for the second)?metadata at
> > >
> > > NC> I know this is not the right list
> > > NC> to ask, but is it possible with FIBPlus to load the
> > > NC> startup of the application ?it
> > > You may turn metadata caching on. But it is a database metadata,
> > not a
> > > query metadata. Look at TpFIBDatabase properties - you'll find
> > > there (AFAIR).
> > >
> > >
> > >
> > > --
> > > Best regards,
> > > Pavel Menshchikov
> > > http://www.ls-software.com
> > >
> >
> >
> >
> >
> >
> >
> >
> > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> >
> > Visit http://firebird.sourceforge.net and click the Resources item
> > on the main (top) menu. Try Knowledgebase and FAQ links !
> >
> > Also search the knowledgebases at http://www.ibphoenix.com
> >
> > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> >
> >
>