A very strange Bug with Blob Field (MS SERVER)

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
coolzew
Posts: 10
Joined: Sun 17 Apr 2005 04:04

A very strange Bug with Blob Field (MS SERVER)

Post by coolzew » Mon 15 Jul 2013 01:28

if you write these code in delphi XE4, the performance is very slow. ms sql server 2000. win7 os
Same code use ADOQuery in 2 seconds.

Code: Select all

procedure TForm3.Button2Click(Sender: TObject);
var A : TUniConnection;
begin
  inherited;
  with UniQuery1 do
  try

    Close;
    SQL.Clear;
    // tblA have one Record,  field image1 and image2 is blob field and stored picture about 1M size
    SQL.Add('select Image1, Image2  from tblA');
    Open;
    Close;
    SQL.Clear;
    // tblB have 20000 record with blob field, but blob field is null
    // it will take 8-10 seconds
    SQL.Add('SELECT * FROM tblB ');
    OPen;
  finally

  end;


end;
If you write use these code, uniQuery will complete in 2-3 Seconds
not select a blob field first, the performance is normal.
Who know the reason?

Code: Select all

procedure TForm3.Button2Click(Sender: TObject);
var A : TUniConnection;
begin
  inherited;
  with UniQuery1 do
  try
    Close;
    SQL.Clear;
    // tblB have 20000 record with blob field, but blob field is null
    // it will take 2-3 seconds
    SQL.Add('SELECT * FROM tblB ');
    OPen;
  finally

  end;


end;

AndreyZ

Re: A very strange Bug with Blob Field (MS SERVER)

Post by AndreyZ » Mon 15 Jul 2013 12:35

I cannot reproduce this problem. Please specify the following:
- the script to create and fill the tblA and tblB tables;
- the exact version of your IDE (for example, Delphi XE4 18.0.4905.60485 );
- the exact version of SQL Server server and client you are using. You can learn it from the Info sheet of TUniConnection Editor.

coolzew
Posts: 10
Joined: Sun 17 Apr 2005 04:04

Re: A very strange Bug with Blob Field (MS SERVER)

Post by coolzew » Tue 16 Jul 2013 10:21

OK, give your a Sample today.

XE4 Version 18.0.4854.59655
Microsoft SQL Server 2000 - 8.00.2039
latest uniQuery version

you can download the sample and database from here :
http://pan.baidu.com/share/link?shareid ... 3272039482

coolzew
Posts: 10
Joined: Sun 17 Apr 2005 04:04

Re: A very strange Bug with Blob Field (MS SERVER)

Post by coolzew » Wed 17 Jul 2013 06:48

Can you reproduce this issue ?

AndreyZ

Re: A very strange Bug with Blob Field (MS SERVER)

Post by AndreyZ » Thu 18 Jul 2013 11:08

Thank you for the information. We have reproduced the problem and the investigation of the problem is in progress. We will notify you when we have any results.

coolzew
Posts: 10
Joined: Sun 17 Apr 2005 04:04

Re: A very strange Bug with Blob Field (MS SERVER)

Post by coolzew » Sat 28 Sep 2013 14:13

Is this problem is fixed?

AndreyZ

Re: A very strange Bug with Blob Field (MS SERVER)

Post by AndreyZ » Mon 30 Sep 2013 07:08

We are still investigating this problem. As soon as we have any results, we will let you know.

coolzew
Posts: 10
Joined: Sun 17 Apr 2005 04:04

Re: A very strange Bug with Blob Field (MS SERVER)

Post by coolzew » Thu 26 Dec 2013 11:52

Is there any goods news about this bug?

AndreyZ

Re: A very strange Bug with Blob Field (MS SERVER)

Post by AndreyZ » Fri 27 Dec 2013 08:51

We have not fixed this problem yet. We will try to fix it in the next UniDAC build.

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Re: A very strange Bug with Blob Field (MS SERVER)

Post by Dimon » Thu 23 Jan 2014 09:25

After some deeper investigation, we found out that this problem is reproduced only if application is run from the IDE. If we run the same application not from the IDE, then performance is normal. We can not influence this behaviour.
Please check, is the problem arisen when you run the application not from the IDE?

Post Reply