GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   stupid mysql question (https://gfy.com/showthread.php?t=436131)

mrthumbs 02-23-2005 09:44 PM

stupid mysql question
 
What happens with my database performance if i define a field as TEXT
although 90% of the entries will be used for small messages (for which varchar would be most suitable) ?

Adultnet 02-23-2005 09:51 PM

The performance will be all good but they will decrease with the data since text take more memory. Not some thing that you should feel. :)

mrthumbs 02-23-2005 09:54 PM

Quote:

Originally Posted by Adultnet
The performance will be all good but they will decrease with the data since text take more memory. Not some thing that you should feel. :)


Ok.. but lets say.. i store 10.000 records with the word "hello" in a text field
and i store 10.000 records with the word "hello" in a varchar field on some other database.. no problem there?

The only issue i can think of is that for example a varcahr(4) reserves actual
4 bytes of memory while a 4 character text field has a default of 64 bytes or something.. whether you use it or use less.. That would kill performance in the long run.

grumpy 02-23-2005 11:58 PM

It doesn take memory space it takes diskspace


All times are GMT -7. The time now is 01:03 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123