Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
About Currency data type?
Message
From
24/09/1999 21:42:31
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00266701
Message ID:
00268855
Views:
24
>>>Hi Dragan,
>>>
>>>Thanks for the heads up. I've been wondering how much of an increase in performance in queries could be gained by converting numeric values (where appropriate) to integer and currency types. Haven't done any testing yet, but I will. It would seem to me that using these data types could yield significant improvement, but that's a SWAG also.:-)
>>
>>How would one convert numeric to integer or currency within a query? Any difference between doing this with native data vice ODBC data?
>
>Hi Cindy,
>
>I'm afraid you misunderstood. I was speaking of converting the underlying table structures. My feeling is that by changing the type from numeric, you would eliminate the conversion of the underlying data (which is stored as character actually) and thus speed up any queries using aggregate functions. This could be significant with queries that had to SUM(), for example, a large number of rows into a smaller subset.

Thanks for explaining George. I will be using integer and currency every chance I get.

That is so totally weird that numerics are stored as characters, though I guess that's the same as what's in an ASCII file! Here's a weirdie for you: I retrieved data the other day from an Oracle RDB database (not "regular" Oracle) and the field was supposed to be numeric, but came across as character! I had to SELECT MyNumericField + 0.0 to get it to come across as numeric!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform