Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Char vs Varchar in Index
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00843921
Message ID:
00843983
Views:
25
>Hi,
>
>We are putting together a database which will utilise 22 character UIDs as the primary key on most tables. Has anyone done any tests to see if there is a significant performance penalty for using varchar as the datatype for the primary and foreign keys rather than char?
>
>The data will be stored in Orcacle of MS SQL Server databases rather than VFP tables.
>
>TIA

Mike,
There is no perceptable difference. Varchar fields simply preserve tablespace usage because the trailing spaces are not stored.

The real performance difference will be seen because you are using 22 character index keys.

Regards.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform