Re: SQL Select: Very Fast in VFP8, Very Slow in VFP9
- From: "David" <David.Aman@xxxxxxxxx>
- Date: 18 Apr 2005 18:27:13 -0700
Thanks to everyone who replied. This is what I did. The LEFT OUTER
JOIN for the two tables contained the following JOIN condition:
-
ALLTRIM(slavefile.ssn) + ;
LEFT(slavefile.lname,4) + ;
LEFT(slavefile.fname,4) = ;
ALLTRIM(eog04all.ssn) + ;
LEFT(eog04all.lname,4) + ;
LEFT(eog04all.fname,4)
-
Since the slavefile.ssn and the eog04all.ssn fields were the same size
(containing social security numbers, 9 characters in length), the
ALLTRIM functions were superfluous.
-
The new JOIN condition is --
-
slavefile.ssn + ;
LEFT(slavefile.lname,4) + ;
LEFT(slavefile.fname,4) = ;
eog04all.ssn + ;
LEFT(eog04all.lname,4) + ;
LEFT(eog04all.fname,4)
-
When I removed the ALLTRIM functions, the SQL Select statement in VFP9
suddenly ran AT LEAST as fast as it ran in VFP8!
-
Does this mean that in VFP9, SQL Select statements containing the
ALLTRIM function cannot be optimized and should be avoided?
-
Thanks again.
David
.
- Follow-Ups:
- Re: SQL Select: Very Fast in VFP8, Very Slow in VFP9
- From: David Frankenbach
- Re: SQL Select: Very Fast in VFP8, Very Slow in VFP9
- From: Bernhard Sander
- Re: SQL Select: Very Fast in VFP8, Very Slow in VFP9
- From: Fred Taylor
- Re: SQL Select: Very Fast in VFP8, Very Slow in VFP9
- References:
- SQL Select: Very Fast in VFP8, Very Slow in VFP9
- From: David
- Re: SQL Select: Very Fast in VFP8, Very Slow in VFP9
- From: David
- Re: SQL Select: Very Fast in VFP8, Very Slow in VFP9
- From: Sergey Berezniker
- Re: SQL Select: Very Fast in VFP8, Very Slow in VFP9
- From: David
- Re: SQL Select: Very Fast in VFP8, Very Slow in VFP9
- From: David Frankenbach
- Re: SQL Select: Very Fast in VFP8, Very Slow in VFP9
- From: David
- Re: SQL Select: Very Fast in VFP8, Very Slow in VFP9
- From: David Frankenbach
- SQL Select: Very Fast in VFP8, Very Slow in VFP9
- Prev by Date: Re: Need some help or idea
- Next by Date: Re: SQL Select: Very Fast in VFP8, Very Slow in VFP9
- Previous by thread: Re: SQL Select: Very Fast in VFP8, Very Slow in VFP9
- Next by thread: Re: SQL Select: Very Fast in VFP8, Very Slow in VFP9
- Index(es):
Relevant Pages
|