| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Christopher Thompson | Date: | August 21 2000 9:28pm |
| Subject: | RE: CHAR vs VARCHAR | ||
| View as plain text | |||
> >> The big difference is speed. CHARs are hella faster than > VARCHARS. By a > >> lot. CHARs take up a bit more disk space. It's disk space > vs. speed. We > >> choose speed for our applications. > > > > Am I incorrect in assuming that CHARs are faster only if there are no > > VARCHARs in the record? In fact, isn't that one of the silent > type changes? > > Yes, I am sorry. Its an all or nothing type thing. If you have any > VARCHARS the whole table will slow down... and it is a sizable amount > according to my experiments. > Given this, what is the reason to use VARCHARs instead of CHARs? Given that the trailing spaces are removed when the value is retreived, I can only see the case where you want to store strings with trailing spaces as an instance where you would want to use VARCHAR.
| Thread | ||
|---|---|---|
| • CHAR vs VARCHAR | Claude Cormier | 21 Aug |
| • Re: CHAR vs VARCHAR | Rob McMillin | 21 Aug |
| • Re: CHAR vs VARCHAR | Claude Cormier | 21 Aug |
| • RE: CHAR vs VARCHAR | Sander Pilon | 21 Aug |
| • Re: CHAR vs VARCHAR | Kris Dahl | 21 Aug |
| • Re: CHAR vs VARCHAR | Jan Dvorak | 21 Aug |
| • Re: CHAR vs VARCHAR | Kris Dahl | 22 Aug |
| • Re: CHAR vs VARCHAR | Ed Wang | 21 Aug |
| • Re: CHAR vs VARCHAR | Kris Dahl | 21 Aug |
| • RE: CHAR vs VARCHAR | Christopher Thompson | 21 Aug |
| • RE: CHAR vs VARCHAR | Dana Powers | 21 Aug |
| • Re: CHAR vs VARCHAR | Steve Ruby | 21 Aug |
| • Fastest way to select sets | Christopher Thompson | 21 Aug |
| • Re: Fastest way to select sets | Steve Ruby | 22 Aug |
| • Re: Fastest way to select sets | Tonu Samuel | 22 Aug |
| • Re: Fastest way to select sets | Tino Hendricks | 28 Aug |
| • Re: Fastest way to select sets | Tonu Samuel | 2 Sep |
| • Re: CHAR vs VARCHAR | Paul Schmidt | 22 Aug |
