Print Thread
Which is Faster?
#1303 11/25/00 07:45 AM
Joined: Jul 2000
Posts: 12
Atlanta, GA USA
D
d4jaj1 Offline OP
Member
OP Offline
Member
D
Joined: Jul 2000
Posts: 12
Atlanta, GA USA
Hello,

For simple seaching of data (e.g., SELECT Statements), which is faster : TOracleDataSet or TOracleQuery? Is there really any performance difference between the two - assuming the same select statement is used?

Thanks


----------
Jay
Re: Which is Faster?
#1304 11/28/00 06:10 PM
Joined: Aug 1999
Posts: 22,221
Member
Offline
Member
Joined: Aug 1999
Posts: 22,221
The TOracleQuery solution will always be faster. The TOracleDataSet uses a TOracleQuery internally, and needs to convert the SQL*Net data to TDataSet conventions, and needs to buffer records. The TOracleQuery does not need to convert or buffer anything, it is just a low-level encapsulation of an Oracle Cursor.

------------------
Marco Kalter
Allround Automations


Marco Kalter
Allround Automations
Re: Which is Faster?
#1305 11/29/00 08:05 PM
Joined: Sep 2000
Posts: 25
L
Member
Offline
Member
L
Joined: Sep 2000
Posts: 25
Just how significant is the performance delta ? Did you measure ?

Thanks [Linked Image]

Re: Which is Faster?
#1306 11/30/00 07:35 PM
Joined: Aug 1999
Posts: 22,221
Member
Offline
Member
Joined: Aug 1999
Posts: 22,221
If the server or network are the bottleneck, and the result set is not extremely large, then there will not be much difference. For local database connections the performance difference can be significant (something like 50%). For batch processing of extremely large result sets you should always use a TOracleQuery, assuming that you do not present such a result set to an end-user through data-aware controls.

------------------
Marco Kalter
Allround Automations


Marco Kalter
Allround Automations

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.022s Queries: 13 (0.005s) Memory: 2.5083 MB (Peak: 3.0431 MB) Data Comp: Off Server Time: 2024-05-20 11:05:51 UTC
Valid HTML 5 and Valid CSS