Page 1 of 1

A very strange Bug with Blob Field (MS SERVER)

Posted: Mon 15 Jul 2013 01:28
by coolzew
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;

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

Posted: Mon 15 Jul 2013 12:35
by AndreyZ
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.

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

Posted: Tue 16 Jul 2013 10:21
by coolzew
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

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

Posted: Wed 17 Jul 2013 06:48
by coolzew
Can you reproduce this issue ?

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

Posted: Thu 18 Jul 2013 11:08
by AndreyZ
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.

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

Posted: Sat 28 Sep 2013 14:13
by coolzew
Is this problem is fixed?

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

Posted: Mon 30 Sep 2013 07:08
by AndreyZ
We are still investigating this problem. As soon as we have any results, we will let you know.

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

Posted: Thu 26 Dec 2013 11:52
by coolzew
Is there any goods news about this bug?

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

Posted: Fri 27 Dec 2013 08:51
by AndreyZ
We have not fixed this problem yet. We will try to fix it in the next UniDAC build.

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

Posted: Thu 23 Jan 2014 09:25
by Dimon
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?