Subject | RE: [IBO] Re: FW: IBO seems slower for some things compared with the BDE |
---|---|
Author | Peter McLeod |
Post date | 2003-06-29T22:41:22Z |
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:
compared with the same application using the BDE (48 seconds compared
to 6 seconds).
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).
information which slowed the whole thing down.
things to slow down?
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/
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 toIBO. I then noticed that the application took longer to load
compared with the same application using the BDE (48 seconds compared
to 6 seconds).
> >Sleuth stopwatch to time the two programs. During this time I
> > In order to quantify where the differences were, I then used
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).
> >faster than using the BDE, it was the retrieval of the database
> > On the whole examing the time taken for other processes was
information which slowed the whole thing down.
> >could it be in the porting I have a BDE setting which is causing
> > Does anyone know why IBO needs to retrieve this information, or
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/