Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Arrays vs Table Buffering?
Message
From
16/09/2004 10:28:58
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00942500
Message ID:
00942907
Views:
20
Hi,

I am with Craig and Tamar here, with one possible exeption.

Doing time series, it sometimes pays off to have denormalized data,
since record movement on the disk is minimized.

If you have such denormalization and access the fields
via loops and name expressions like
for lnMonth = 1 to 120
  replace ("nPrz" + Padl(lnMonth, 3,"0")) with ;
      lnNewPrice/eval("TableUsedPr.nPrc" + Padl(lnMonth,3,"0"))
endfor
it is nearly always faster to at least scatter each record into a single array for processing, if you have arranged your record structure(s) accordingly.

HTH

thomas
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform