Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
Exceeding the Size of a "TEXT"
Old 07-27-2006, 06:53 PM Exceeding the Size of a "TEXT"
Novice Talker

Posts: 8
Name: Steven Bao
Trades: 0
MySQL Question (is this a general question? I don't know.

Hi, I am worried about exceeding the maximum size of a TEXT data type. Should I be worried and use something like a MEDIUMTEXT or LONGTEXT?

The project background is that it is a project that aims to give others ability to create projects and manage them. Kinda vague, but whatever.

So should I have any worries about exceeding the variable size of a TEXT (normal) and use something like MEDIUMTEXT or LONGTEXT data types?

And what effect (other than bigger variables) will MEDIUMTEXT and LONGTEXT have on my server?

Thank you.
stevenbao is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-29-2006, 02:40 PM Re: Exceeding the Size of a "TEXT"
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
The size limit of a TEXT field is 64k characters and MEDIUMTEXT is 16Mb, so depending on the OS and code you are using will likely both be held as a string type and therefore should make no difference in your code and little difference to the server.

LONGTEXT on the other hand can hold up to 4Gb so will need to be handled as a BLOB (Binary Large OBject) rather than a string so will make a difference to your coding.

If you are seriously concerned about exceeding the 64K limit use the mediumtext option from the start rather than have to change field types on a live database when problems occur.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?

Last edited by chrishirst; 07-29-2006 at 02:46 PM.. Reason: hit enter too soon
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Exceeding the Size of a "TEXT"
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.30681 seconds with 12 queries