Board index » delphi » Minimizing Interbase Client/Server network traffic

Minimizing Interbase Client/Server network traffic

I am a novice database programmer.  I've developed an InterBase
Client/Server app, using D5 and IBExpress components.  No problems with
the app, but some members of my workgroup would like to use their
clients from home, connecting to the server by TCP/IP over the phone.
Here's the problem: it seems that the IB server returns inordinately
large amounts of data, so that the app is painfully slow at 56K.  For
example, in response to a query that fetches a single integer value, the
IB server transmits 2098 bytes!  Any suggestions on what I could do to
minimize the amount of network traffic that the server generates would
be appreciated.

TIA,

Jim Morgan

 

Re:Minimizing Interbase Client/Server network traffic


Do you use  prepared queries?  Prepare just once - if possible.
You're not using TTables, are you ?

Aage J.

Quote
Jim Morgan wrote:
> I am a novice database programmer.  I've developed an InterBase
> Client/Server app, using D5 and IBExpress components.  No problems with
> the app, but some members of my workgroup would like to use their
> clients from home, connecting to the server by TCP/IP over the phone.
> Here's the problem: it seems that the IB server returns inordinately
> large amounts of data, so that the app is painfully slow at 56K.  For
> example, in response to a query that fetches a single integer value, the
> IB server transmits 2098 bytes!  Any suggestions on what I could do to
> minimize the amount of network traffic that the server generates would
> be appreciated.

> TIA,

> Jim Morgan

Re:Minimizing Interbase Client/Server network traffic


Yes, the queries were prepared.  But reading over at
borland.public.delphi.database.interbaseexpress, I saw several recommendations
for using TIBSQL rather than TIBQuery.  What a difference!  The network load
with TIBSQL apears to be about 6-8% of that with TIBQuery: an improvement of
more than an order of magnitude.  I guess I didn't see that in the IBExpress
documentation ;-)
Quote
Aage Johansen wrote:
> Do you use  prepared queries?  Prepare just once - if possible.
> You're not using TTables, are you ?

> Aage J.

> Jim Morgan wrote:

> > I am a novice database programmer.  I've developed an InterBase
> > Client/Server app, using D5 and IBExpress components.  No problems with
> > the app, but some members of my workgroup would like to use their
> > clients from home, connecting to the server by TCP/IP over the phone.
> > Here's the problem: it seems that the IB server returns inordinately
> > large amounts of data, so that the app is painfully slow at 56K.  For
> > example, in response to a query that fetches a single integer value, the
> > IB server transmits 2098 bytes!  Any suggestions on what I could do to
> > minimize the amount of network traffic that the server generates would
> > be appreciated.

> > TIA,

> > Jim Morgan

Other Threads