Problem in Speed

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
yar
Posts: 15
Joined: Sun 23 Mar 2014 10:47

Problem in Speed

Post by yar » Sun 17 Aug 2014 10:19

I use Component TQuery, works in Sybase Anywher 11.

I want to use your component TUniQuery.
Problem in Speed.
I run SQL: 'Select * from Cards ;
Then I run Query.Last
In Table Cards 30000 records and 200 fields

Component TQuery run in 0.7 seconds,
component TUniQuery - in 4.4 seconds (4.3 seconds in Query.Last)

What is problem ?

I set properties of TUniQuery:

Options.FlatBuffers = TRUE
SpecificOptions.Values['FetchAll'] = 'False'

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Problem in Speed

Post by AlexP » Mon 18 Aug 2014 11:59

Hello,

Try to estimate the overall time in both components - DataSet opening and switch to the last record – and inform us the result

Code: Select all

var
  c: cardinal;
begin
  c := GetTickCount;
  UniQuery1.Open;
  UniQuery1.Last;
  ShowMessage(IntToStr(GetTickCount - c));
end;

yar
Posts: 15
Joined: Sun 23 Mar 2014 10:47

Re: Problem in Speed

Post by yar » Mon 18 Aug 2014 15:00

This is exactly what I did and I got the slow:
Component TQuery run in 0.7 seconds,
component TUniQuery - in 4.4 seconds (4.3 seconds in Query.Last)

I want to know how you can improve the speed at least be similar to BDE?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Problem in Speed

Post by AlexP » Thu 21 Aug 2014 10:40

Please provide the script for creating the table and your SQL query text.

yar
Posts: 15
Joined: Sun 23 Mar 2014 10:47

Re: Problem in Speed

Post by yar » Mon 25 Aug 2014 07:08

Hi,

1. Attached hereto is an example of the problem in Delphi 7
2. Script to create the table (DBA.Cards.zip)

Download Link
https://dl.dropboxusercontent.com/u/107 ... edTest.zip

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Problem in Speed

Post by AlexP » Tue 26 Aug 2014 09:55

We have already increased performance for the ODBC provider. Now, UniDAC surpasses even BDE in performance. This feature will be included in the next UniDAC version.

yar
Posts: 15
Joined: Sun 23 Mar 2014 10:47

Re: Problem in Speed

Post by yar » Tue 26 Aug 2014 16:04

When the new version is supposed to come out?
And what will be the version number?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Problem in Speed

Post by AlexP » Wed 27 Aug 2014 07:07

We are waiting for the Rad Studio XE7 release. As soon as the IDE is officially released, we will release the new versions of our products.

Post Reply