OnProgress in UniLoader doesn't work

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
FCS
Posts: 176
Joined: Sat 23 Feb 2013 18:46

OnProgress in UniLoader doesn't work

Post by FCS » Wed 01 May 2013 17:15

Hello,

The OnProgress event in UniLoader doesn't work. It is not called at all.

Regards
MIchal

CristianP
Posts: 79
Joined: Fri 07 Dec 2012 07:44
Location: Timișoara, Romania

Re: OnProgress in UniLoader doesn't work

Post by CristianP » Thu 02 May 2013 09:41

Hello,

I tested it in XE3 with UniDAC 5.0.1 and 4.6.12 and is called.

Best Regards,
Cristian Peta

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

Re: OnProgress in UniLoader doesn't work

Post by FCS » Thu 02 May 2013 10:16

Hello,

On BDS2006 onProgress is not called. I use version 4.6.12.
I'm testing loading data into PostgreSQL.

How to set the UniLoader SpecificOptions from code ?
What is the BufferSize and how it should be calculated to improve loading?

Regards

CristianP
Posts: 79
Joined: Fri 07 Dec 2012 07:44
Location: Timișoara, Romania

Re: OnProgress in UniLoader doesn't work

Post by CristianP » Thu 02 May 2013 10:55

FCS wrote: On BDS2006 onProgress is not called. I use version 4.6.12.
I do not have BDS2006 so you need to wait for devart response.
FCS wrote: How to set the UniLoader SpecificOptions from code ?

Code: Select all

UniLoader1.SpecificOptions.Values['BufferSize'] := '8192'
FCS wrote: What is the BufferSize and how it should be calculated to improve loading?
From help "UniDAC and PostgreSQL":
BufferSize
This property contains the size of the memory buffer used by TPgLoader. When buffer is filled, the loader sends block of data to the server.

Best Regards,
Cristian Peta
Last edited by CristianP on Thu 02 May 2013 11:06, edited 1 time in total.

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

Re: OnProgress in UniLoader doesn't work

Post by FCS » Thu 02 May 2013 11:01

Hello,

Thanks for your reply.

Regards
MIchal

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

Re: OnProgress in UniLoader doesn't work

Post by AlexP » Fri 10 May 2013 10:52

Hello,

The OnProgress event in TUniLoader runs only in the case, when the LoadFromDataSet method is used for data loading; if you implement loading with the OnGetColumnData or OnPutData method, you should implement displaying the data loading process by yourself.

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

Re: OnProgress in UniLoader doesn't work

Post by FCS » Fri 10 May 2013 15:45

Hello,

Thanks for the information.

Regards
Michal

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

Re: OnProgress in UniLoader doesn't work

Post by AlexP » Tue 14 May 2013 10:00

Hello,

If you have any other questions, feel free to contact us.

Post Reply