Link to home
Create AccountLog in
Avatar of Rohit Bajaj
Rohit BajajFlag for India

asked on

performance implication of using mediumtext over text in mysql

hi,
i have a mysql table with a column of type text. i want to change the type to mediumtext to support large amount of data.
what are the performance implications of the same.
will the queries be slow ?

thanks
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Rohit Bajaj

ASKER

i read that text and mediumtext are both stored separately and not in the table only a pointer to that is stored in table...

how can i verify this on my own...
because when i do select from table
i see the whole text only in the ouput and not any pointer
You can't easily verify it on your own.  It is supposed to act like single field.  The pointer is an internal function for the MySQL server, not for the user.
ok. where exactly does mysql stores the text data...and what exactly happens when we query the table. how does it retrieve the data for text type columns or mediumtext type columns
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Thx for the grade and points.