Subject | Re: Slow UPDATE from Delphi |
---|---|
Author | rks84093 |
Post date | 2002-02-15T18:55:12Z |
--- In ib-support@y..., Nando Dessena <nandod@d...> wrote:
> Kevin,(38
>
> > My developer tells me he is using Delphi 6 with IBX and Dataset
> > component, and inserting a new record into a 125,000 record table
> > fields, 3 basic indexes) is taking 7 seconds. Turning indexesUPDATE,
> > INACTIVE doesn't make much difference.
> >
> > When I access the database using IB Console and write the SQL
> > the same insert with COMMIT takes less than .25 seconds.(BTW
> >
> > What am I missing here? Why the difference?
>
> the dataset must be open before you can perform the Insert and Post
> is it a TIBTable, TIBQuery, TIBDataSet?), I guess that the initialquery
> fetching or, more probably, the refresh after the actual insert is
> biting you.
> Either you bring the number of retrieved records down by means of a
> suitable where clause, or you insert new record using a different
> component with an "insert into" SQL statement.He is using TIBDataSet. The refresh issue is interesting.
> Ciao
> --
> ____
> _/\/ando