Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 02-26-2004, 04:58 AM   #1 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,694
redhead is on a distinguished road
[MySQL] blob vs text

Hello all,

I know I can find this info by searching the mysql site, but since I don't have the patience to look for it, I'm asking here. Plus others might benefit from it.

My concerns goes towards the MySQL storing of something declared as blob and something declared as text As to if operations performed on one thing would be slower than on the other.

MySQL claims the only difference in that blob is case-sensitive, where text is case-insensitive.

http://www.mysql.com/doc/en/BLOB.html
Quote:
The four TEXT types TINYTEXT, TEXT, MEDIUMTEXT, and LONGTEXT correspond to the four BLOB types and have the same maximum lengths and storage requirements. The only difference between BLOB and TEXT types is that sorting and comparison is performed in case-sensitive fashion for BLOB values and case-insensitive fashion for TEXT values. In other words, a TEXT is a case-insensitive BLOB. No case conversion takes place during storage or retrieval.
But performance on the two.. Is there something to gain by chosing case-insensitive? If you're not requiering any case sensitivity. Or is there faster access with case-sensitive, since I'm guessing insensitive means converting every letter to capital, given that most letters are in small printing, it might be faster not to convert them.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 03-29-2004, 06:46 AM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,446
sde is on a distinguished road
hey red, .. what did you find out about this?
__________________
Mike
sde is offline   Reply With Quote
Old 03-29-2004, 11:15 PM   #3 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,694
redhead is on a distinguished road
I havn't looked any further into it, I decided to go with text types all over the site, since that made it very easy to make everything searchable, not worrying about case sensitivity..
Since it's only during storage and retrieval the conversion takes place, I'm guessing text is the faster one.
But only slightly..
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding infinite text fields Mkers12 Java 8 08-17-2004 12:13 PM


All times are GMT -8. The time now is 11:02 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting