Postgresql slow query fetch

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
saulojb
Posts: 9
Joined: Fri 13 Feb 2015 13:25

Postgresql slow query fetch

Post by saulojb » Fri 13 Feb 2015 13:36

Hello,

I'm testing your product, and beyond the capacity multi database, it has interesting features that will be welcome if the company default on its technology, but something bothers me, Postgres only has direct access option. But this form of access, I'm having requests 3-4 times slower than the libraries of competitors using the native client.
An example in the direct comparison Firedac (sorry for sitar names) natively on XE7, performs a fetch (gigabit ethernet) 1000,000 records, with about 500MB in 8/2 (fetch all) and your product takes about 30 seconds. My question is. Iso is a restriction of trial version, or a problem of technology even in the final version?
And is there any intention of offering choice between direct connection and via customer to the Postgres as was done for Oracle?

Thank's
Saulo

saulojb
Posts: 9
Joined: Fri 13 Feb 2015 13:25

Re: Postgresql slow query fetch

Post by saulojb » Fri 13 Feb 2015 18:20

I cried a virtual machine, with delphi 2007 and unidac 4 series, and the result of a query with 1000000 records and 500 Mb is impresive 3 s. Is reality the best fetch possible ...
please corrige the version 6 ... certainly will be my choice !!!

Tanks

Saulo

FCS
Posts: 176
Joined: Sat 23 Feb 2013 18:46

Re: Postgresql slow query fetch

Post by FCS » Sat 14 Feb 2015 13:47

Hello,

How many fields have you got in this table ?
Are there blob fields with big data ?

In my case, a query works slow if there are a lot of fields (more then 100).

Regards
Michal

saulojb
Posts: 9
Joined: Fri 13 Feb 2015 13:25

Re: Postgresql slow query fetch

Post by saulojb » Sat 14 Feb 2015 15:13

No not are many fields, are 30 fields, no blobs ...
In version 4, is very very fast, but in version 6 is very very slow ....


Tanks.

FCS
Posts: 176
Joined: Sat 23 Feb 2013 18:46

Re: Postgresql slow query fetch

Post by FCS » Sat 14 Feb 2015 18:15

Did you try to use 4.xx on XE7 and 6.02 on BDS2007 ?

The XE7 use unicode but BDS not. Maybe here is the problem.

Regards
Michal

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: Postgresql slow query fetch

Post by azyk » Tue 17 Feb 2015 08:58

Please send a small sample of this performance test to andreyz*devart*com for investigation. In addition, include the scripts for creating the test tables.

saulojb
Posts: 9
Joined: Fri 13 Feb 2015 13:25

Re: Postgresql slow query fetch

Post by saulojb » Tue 17 Feb 2015 16:58

Ok i am providence, but are any FTP for post script ? The test are With large data table ...

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: Postgresql slow query fetch

Post by azyk » Wed 18 Feb 2015 10:00

The tables data itself is not needed. Include only scripts for creating tables structure.

saulojb
Posts: 9
Joined: Fri 13 Feb 2015 13:25

Re: Postgresql slow query fetch

Post by saulojb » Thu 19 Feb 2015 15:41

Good afternoon,
I sent the tests indicated in the mail, but to other members of the forum that quizerem see the study or test alone ... follow the link of the executables used, the simple design the database script with function self population ...

https://www.dropbox.com/s/79me0cv5wtbrb ... ts.7z?dl=0

Saulo

saulojb
Posts: 9
Joined: Fri 13 Feb 2015 13:25

Re: Postgresql slow query fetch

Post by saulojb » Fri 20 Feb 2015 14:00

someone tested?

FCS
Posts: 176
Joined: Sat 23 Feb 2013 18:46

Re: Postgresql slow query fetch

Post by FCS » Sun 22 Feb 2015 13:37

Hello,

I have tested your demos. I confirm the problem on local and remote access. It looks bad for me too.

I don't know how to include screen shots, but:

Local 3 tests:
XE7+FireDac = 9-10 sec
XE2+UniDac 4.1.6 = 6 sec
XE2+UniDac 6.0.1 = 14 sec
XE7+UniDac 6.0.1 = 13-14 sec

Network (remote) 3 tests:
XE7+FireDac = 20-21 sec
XE2+UniDac 4.1.6 = 19 sec
XE2+UniDac 6.0.1 = 49-64 sec
XE7+UniDac 6.0.1 = 46-50 sec

Really something is not good with 6.0.1 version.

I tested this demo compiled on BDS2006+UniDac 6.0.2 and results were the same as 6.0.1.

Regards
Michal

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: Postgresql slow query fetch

Post by azyk » Thu 26 Feb 2015 13:13

The investigation is in progress. We will notify you about the results as any are available.

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: Postgresql slow query fetch

Post by azyk » Fri 27 Feb 2015 12:19

We have fixed this problem. This fix will be included in the next UniDAC build.

FCS
Posts: 176
Joined: Sat 23 Feb 2013 18:46

Re: Postgresql slow query fetch

Post by FCS » Fri 27 Feb 2015 12:31

Hello,

It is good news.

When this build will be available ?

Regards
Michal

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: Postgresql slow query fetch

Post by azyk » Mon 02 Mar 2015 09:30

The UniDAC release is planned for this month.

Post Reply