Re:Bad Interbase performance?
Quote
Andreas Troester wrote:
> Hi out there,
> recently I abandoned Paradox and began rewriting one of my projects for
> Interbase.
> May I ask a few questions:
> 2) I tried so speed up indexed searching in the tables by bracketing my
> code with the following type of construction:
> Table1.DisableControls;
> ... search the table...
> Table1.EnableControls;
> But that doesn't make much difference either. Any comment?
Using DisableControls/EnableControls determines whether or not the
datasource is refreshed (and in turn the data access controls like
dbgrids). If you are searching through a table to find a particular
record and the table is attached to a dbgrid (via a datasource) it
is a good idea. If your table is not attached to a datacontrol,
then their is not effect.
Also, and more importantly, don't use the TTable to talk to a real
DBMS like interbase. Instead use a TQuery and passthroughsql (a
paramter on the alias and the TDatabase Params). This will cause
your sql to be processed by the server instead of delphi. Limit
your result set by using 'where' clauses to reduce how many
records you get back. The fewer the better.
Quote
> 3) Is the performance of the "big" Interbase Server for multiuser
> environments any better than that of LIBS (I am aware that this may
> depend on the kind of network and server hardware used)?
The performance of the big IB server is better because it is 32-bit and
assuming it runs on a bigger box then you app does, it will be faster. There
is not 'migration' issue with LIBS to IB/NT. The database itself can be
moved from one database to the other with no changes. There are a few
features that are not available in the 16-bit LIBS vs IB/NT. I think
the main ones are Events and User-Defined Functions.
Borland has announced a 32-bit BDE and a 32-bit Local Interbase Server that
is signicantly faster and more robust and runs on Win95/NT.
Rodger Zeisler
Everest Software Corp.
r...@eversoft.com