Icon View Incident Report

Serious Serious
Reported By: Fernando Dias
Reported On: 6/13/2009
For: Version 2.02 Build 14
# 3019 Insensitive Result Sets are Generated Very Slowly When Forced Buffer Flushing Turned On

This query returns 10 rows and takes about one minute if RequestSensitive is True and less than a second when RequestSensitive is False. The delay with this query only happens if the session has ForceBufferFlush set to true.

SELECT
  NumCliente,
  Nome,
  (SELECT SUM(Total) FROM FacCab WHERE TipoDoc='NFA' AND 
NumCliente=TmpTbl.NumCliente) AS SumTotal
FROM
  (SELECT
   NumCliente, Nome,
   EXISTS(SELECT NumCliente
          FROM CliZL
          WHERE NumCliente=C.NumCliente AND Zona='Açores' AND 
Local='Faial') AS InZone
   FROM
     Clientes C
  )AS TmpTbl
WHERE
  InZone



Comments Comments
Each SUM() subquery was generating an insensitive result set, thus incurring the buffer flush penalty for each row.


Resolution Resolution
Fixed Problem on 6/14/2009 in version 2.02 build 15


Products Affected Products Affected
ElevateDB Additional Software and Utilities
ElevateDB DAC Client-Server
ElevateDB DAC Client-Server with Source
ElevateDB DAC Standard
ElevateDB DAC Standard with Source
ElevateDB DAC Trial
ElevateDB LCL Standard with Source
ElevateDB VCL Client-Server
ElevateDB VCL Client-Server with Source
ElevateDB VCL Standard
ElevateDB VCL Standard with Source
ElevateDB VCL Trial

Image