Subject | Re: [IBO] IBODatabase & IBO4 1Min Query |
---|---|
Author | danialwidner |
Post date | 2002-06-26T20:27:46Z |
--- In IBObjects@y..., "Helen Borrie (TeamIBO)" <helebor@t...> wrote:
OF EVERY QUERY OR TABLE as long as all other queries and tables are
closed when you do it. (IE. Open table - hit, use it, close it, open
a different table - hit... ) If you leave a small table open the hit
is on that table and the cache never gets refreshed again for the
duration of the run.
Setting the SchemacacheDir property and doing the setup for it will
also solve this.
> At 01:38 PM 24-04-02 +0200, you wrote:connection gets
> >Question1: IBODatabase.Connected problem
> >
> >I am using IBO 3.4 and I had a problem where the database
> >lost.connect and
>
> No, it cannot tell when a connection is lost. All it can do is
> then, until it is logically disconnected, it remains connected.get back to
>
> >Then in Code I do the following (this is not all the code, just a
> >logical idea)
> >
> >// in the beginning
> >IBODatabase.Connected := True or
> >IBODatabasse.Connect;
>
> Yup, that's the problem. In order for the connection status to
> normal, you'll need to call Disconnect and then call Connect again.well to
>
> If this network is liable to these types of errors, then you'd do
> have some kind of fallback function that gets called each time youopen
> anything. It would help if you could find out if any error isgetting
> thrown...for example, what happens when you try to Open on a deadconnection?
>query ran
>
> >Question 2: I Min Query on IBO4
> >
> >I have tested IBO4.02 and Had a severe problem with every first
> >again a Database connection, Does not matter what type of queryyou run it
> >takes almost exactly 1 min. Just for the first query and then itflies, No
> >one else seems to have this problem, what could it be?What
>
> At a guess, your Schemacache is updating itself upon connecting.
> do you see in the monitor?From experience: Schemacache is updating itself on EVERY FIRST USE
OF EVERY QUERY OR TABLE as long as all other queries and tables are
closed when you do it. (IE. Open table - hit, use it, close it, open
a different table - hit... ) If you leave a small table open the hit
is on that table and the cache never gets refreshed again for the
duration of the run.
Setting the SchemacacheDir property and doing the setup for it will
also solve this.
>
>
> regards,
> Helen Borrie (TeamIBO Support)
>
> ** Please don't email your support questions privately **
> Ask on the list and everyone benefits
> Don't forget the IB Objects online FAQ - link from any page at
> www.ibobjects.com