On Mon, Aug 20, 2012 at 12:27 PM, MB Software Solutions General Account <[email protected]> wrote: > On Fri, August 17, 2012 12:29 am, Bill Anderson wrote: >> Store the AddBS() function and the cClaimsTable reference to variables, >> then use those variables in the SELECT statement. >> >> You're evaluating each expression with every row. ---
No the From is evaluated only once for the engine to use to identify where the data is and how to JOIN if a join is used. The engine will then evaluate which index to use and this is where the evaluation of Index or Table, Seek or Scan, will be defined for the actual consumption of table data. > > > > I used TEXT/ENDTEXT and textmerged these all into my variable lcSQL (so > the SQL has the full paths built in already now) and then did > EXECSCRIPT(lcSQL) but I don't really know if I gained any noticeable speed > or not. > > Bill -- are you sure on this tip? Does the FROM line really evaluate for > EVERY row? > > Thanks, > --Mike > > > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/cajidmy+qmfd_izrqge_f9-afskiuyv4tx+vuxdodytksguj...@mail.gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

