Thinking about size of various MySQL types

Friday, February 22, 2008, 4:32 PM
Thoughts by John (Article #187)

When designing a user-driven system, anticipating the type of storage types needed in MySQL to accommodate the project can be challenging. Of course, MySQL never helps anyone's cause by making sure their online manual is, ahem, not for beginners. Or intermediates. Or even low-level advanced skill folks.

But, the part of the manual that handle data types is surprisingly coherent if you have an intermediate level of skill with MySQL (that pretty much describes me).

Advertisements


I was fishing around because I'm debating the merits of the TEXT, MEDIUMTEXT and LONGTEXT functions. I really wish MySQL had an in-between function. TEXT allows a 64 kb string. If you go up just one level, you get a friggin 16 Mb string! And the next? Bigger than my first hard drive.

The project I'm doing will allow a large number of folks to convert a lot of data into a huge number of text fields. Since the general upload default size for my server is 8 Mb (I've upped it to 16 Mb), I figure a MEDIUMTEXT is just pushing things. Also, it will be free registration, and you have to eventually consider how much free space you're going to give away on a fairly small server.

But, it is an issue we all have to deal with. There are going to be folks who want more than a 64 kb block of data in those database fields. Should I give it to them?

Well, if I had Google's cash, sure, I would. Not with my cash, though.

Which is why I wish MySQL had something a bit more in-between. I know I can shoehorn this into the MEDIUMTEXT fields, but 90% of the fun of MySQL is letting it do the work for you.


Mail article to a friend

© 2010 Pro Content and Design. All rights reserved.


Tools

Check Google PageRank


Recent articles

  1. To Microsoft's credit
  2. Tracking expiring and dropping domain names
  3. GoDaddy finally cleans up its checkout process
  4. Back to basics: clean up your link names
  5. What the internet will look like in hell
  6. Early release of expired domains is rare
  7. The PageRank experiment first results
  8. Fixing the FH_DATE_PAST_20XX bug
  9. Dear Fedex: enough notices
  10. An experiment in PageRank

Welcome!

Wonder where to start with your web design business?

This blog follows along with my efforts to build and grow a website design business, Pro Content and Design.

The goal of this blog is to fill in blanks that may be empty as you get your business rolling.

This blog, particularly the source code section, is not intended for beginners. If you are not comfortable with databases, Ajax, DOM objects and other advanced methods, I strongly suggest you go take a look over at W3 Schools before even reading -- let alone tinkering with -- any of the code here.

I hope this blog has some value to web designers as they attempt to get their businesses going.

Good luck, and happy reading.

Thank you,
John Crawford
Pro Content and Design

Books


I highly recommend Art of the Start if you have no idea where to start with marketing.

Links

Coding
W3 Schools
IBM's Mastering Ajax Series

Graphic Design
Worth 1000
Stock.XCHNG
Urban Fonts

Website Software
Apache Web Server
SquirrelMail
PHP/Zend

Website Design Issues
Non-Standard Character Guide
Google Trends
Search Engine Optimization Analyzer

Business
Guy Kawasaki's Blog
Seth Godin's Blog
Freakonomics

Computers
NewEgg

My Main Website
Pro Content and Design

Websites I have built
PunxsyPage: local free classifieds website

Farm N Land: low-cost real estate listing website

Groundhog Festival: for the local summer festival

Weather Discovery Center

My Webapps
TV Stations Transmitter Database

Google PageRank Checker