Subject RE: [IBO] Re: FW: IBO seems slower for some things compared with the BDE
Author Peter McLeod
Thanks Stan,

I am using it now.

-----Original Message-----
From: stanw1950 [mailto:stanw@...]
Sent: Saturday 28 June 2003 1:09 AM
To: IBObjects@yahoogroups.com
Subject: [IBO] Re: FW: IBO seems slower for some things compared with
the BDE


If you are using a TIBODatabase component try using the
SchemaCacheDir property. This greatly improved the initial
performance for us. When the schema cache files do not exist, the
first user in will cause them to be created. When the metadata for
your database changes just delete the cache files and they will be
recreated automatically again.

I put it in the same directory where the application is in a "schema"
directory (and there will be another directory with the database name
in this directory):

MyDb.SchemaCacheDir := ExtractFilePath(Application.ExeName)
+ 'Schema';


Stan Walker




--- In IBObjects@yahoogroups.com, "Peter McLeod" <PeterMcLeod@p...>
wrote:
> > I have an application which I have just ported from the BDE to
IBO. I then noticed that the application took longer to load
compared with the same application using the BDE (48 seconds compared
to 6 seconds).
> >
> > In order to quantify where the differences were, I then used
Sleuth stopwatch to time the two programs. During this time I
noticed that IBO seemed to be slow as it was retrieving information
about the database (according to Codewatch the time differences
coudld be attributable to the functions/procedures
SchemaIndexDefinitions, SchemaDefaultedCols and SchemaProcedureInfo,
SchemaPrimaryKeyInfo from IB_Schema.pas, and SysGetBlobData from
IB_Session).
> >
> > On the whole examing the time taken for other processes was
faster than using the BDE, it was the retrieval of the database
information which slowed the whole thing down.
> >
> > Does anyone know why IBO needs to retrieve this information, or
could it be in the porting I have a BDE setting which is causing
things to slow down?
> >
> > Any assistance would be greatly appreciated.
> >
> > Regards
> >
> >
> > Peter Mc Leod
> >
> >
> >
> >
> >
> >
> >



___________________________________________________________________________
IB Objects - direct, complete, custom connectivity to Firebird or InterBase
without the need for BDE, ODBC or any other layer.
___________________________________________________________________________
http://www.ibobjects.com - your IBO community resource for Tech Info papers,
keyword-searchable FAQ, community code contributions and more !

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/