Board index » delphi » ODBC 12x faster than BDE 5.01 MSSQL driver??

ODBC 12x faster than BDE 5.01 MSSQL driver??

Is the BDE 5.01 MSSQL driver really twelve times slower than ODBC for
fetching records?  Or are we doing something wrong?

We are running a very simple test that opens a query on a 30000-row table
and calls TQuery.Next until EOF is True.  The results:

BDE 5.01 MSSQL Driver: 300 rows/second
ODBC: 3700 rows/second

We must be doing something wrong, right?  All of our connection settings are
default (e.g., no LANGDRIVER specified), except that we set TDS PACKET SIZE
to 4096.

(Other details: Delphi 4 C/S w/ Update Patch #2; connecting via 100Base-T
LAN to SQL Server 6.5 w/latest SP on NT Server 4.)

Thanks in advance,

Lindsay

 

Re:ODBC 12x faster than BDE 5.01 MSSQL driver??


I've heard from MS people that SQL Server 7 native language is OLE-DB, and
that DBLibrary (on which SQL Link is built) have been rebuilt around the
latest MS toy. Rumours has it... I hope Inprise will develop a native
interface to OLE DB as soon as possible. I know nothing about any OLE
DB-based datasets, currently.
Ian

Re:ODBC 12x faster than BDE 5.01 MSSQL driver??


I don't know about 12x faster, but ODBC is usually faster for MS
SQLServer than native drivers.  The MS ODBC driver for SQLServer
bypasses the middleware layer to go directly to the database and, I've
been told, is MS's own preferred method for accessing MS SQLServer.

On Fri, 22 Jan 1999 16:17:36 -0600, "Lindsay Reichmann"

Quote
<lreichm...@sequestresources.com> wrote:
>Is the BDE 5.01 MSSQL driver really twelve times slower than ODBC for
>fetching records?  Or are we doing something wrong?

>We are running a very simple test that opens a query on a 30000-row table
>and calls TQuery.Next until EOF is True.  The results:

>BDE 5.01 MSSQL Driver: 300 rows/second
>ODBC: 3700 rows/second

>We must be doing something wrong, right?  All of our connection settings are
>default (e.g., no LANGDRIVER specified), except that we set TDS PACKET SIZE
>to 4096.

>(Other details: Delphi 4 C/S w/ Update Patch #2; connecting via 100Base-T
>LAN to SQL Server 6.5 w/latest SP on NT Server 4.)

>Thanks in advance,

>Lindsay

================================================
Ray Porter
Applications Analyst Programmer
Administrative Information Services, UNC-CH
Phone: 966-5878
email: ray_por...@unc.edu
       dra...@email.unc.edu
Home Page: http://www.unc.edu/~dragon/

"Meddle not in the affairs of dragons,
for you are crunchy and taste good with ketchup."

Re:ODBC 12x faster than BDE 5.01 MSSQL driver??


Thanks for the reply -- it turns out the 12x difference only occurs when our
test application is run from the IDE.  When the executable is run directly,
the SQL Links MSSQL driver performs very nicely compared to ODBC.

Sorry for any confusion.

Quote
Ian Mar{*word*249}s wrote in message <78cr00$lh...@forums.borland.com>...
>I've heard from MS people that SQL Server 7 native language is OLE-DB, and
>that DBLibrary (on which SQL Link is built) have been rebuilt around the
>latest MS toy. Rumours has it... I hope Inprise will develop a native
>interface to OLE DB as soon as possible. I know nothing about any OLE
>DB-based datasets, currently.
>Ian

Re:ODBC 12x faster than BDE 5.01 MSSQL driver??


Thanks for the reply -- you were right to question the "12x faster" part.
It turns out the 12x difference occurs only when our test application is run
from the IDE.  When the executable is run directly, the SQL Links MSSQL
driver performs very nicely compared to ODBC.

Sorry for any confusion.

Quote
Ray Porter wrote in message <36ac6a2d.1861...@forums.borland.com>...
>I don't know about 12x faster, but ODBC is usually faster for MS
>SQLServer than native drivers.  The MS ODBC driver for SQLServer
>bypasses the middleware layer to go directly to the database and, I've
>been told, is MS's own preferred method for accessing MS SQLServer.

>On Fri, 22 Jan 1999 16:17:36 -0600, "Lindsay Reichmann"
><lreichm...@sequestresources.com> wrote:

>>Is the BDE 5.01 MSSQL driver really twelve times slower than ODBC for
>>fetching records?  Or are we doing something wrong?

>>We are running a very simple test that opens a query on a 30000-row table
>>and calls TQuery.Next until EOF is True.  The results:

>>BDE 5.01 MSSQL Driver: 300 rows/second
>>ODBC: 3700 rows/second

>>We must be doing something wrong, right?  All of our connection settings
are
>>default (e.g., no LANGDRIVER specified), except that we set TDS PACKET
SIZE
>>to 4096.

>>(Other details: Delphi 4 C/S w/ Update Patch #2; connecting via 100Base-T
>>LAN to SQL Server 6.5 w/latest SP on NT Server 4.)

>>Thanks in advance,

>>Lindsay

>================================================
>Ray Porter
>Applications Analyst Programmer
>Administrative Information Services, UNC-CH
>Phone: 966-5878
>email: ray_por...@unc.edu
>       dra...@email.unc.edu
>Home Page: http://www.unc.edu/~dragon/

>"Meddle not in the affairs of dragons,
>for you are crunchy and taste good with ketchup."

Re:ODBC 12x faster than BDE 5.01 MSSQL driver??


According to the R&D people I met with at MS, OLEDB, ODBC, and DBLib all
access SQL Server 7 from the same layer.

Running applications in the IDE in debug mode will always be significantly
slower than running it out of the IDE.  Also, the IDE takes system resources
as well.

Other Threads