Jump to content

Smallest Storage Type


Guest

Recommended Posts

I have a database of millions of 11 digit and 12 digit number its just numbers no other characters spcae and performance are very very big issues. I want find out the best storage type to hold them but I cant quite figure it out.

 

I have been using

Cheat Sheet to tell how many digits the variables hold

http://www.ilovejackdaniels.com/mysql_cheat_sheet.png

 

and this to tell me how much space each type takes up

http://dev.mysql.com/doc/refman/5.0/en/storage-requirements.html

 

I think that a float will require the least amount of space but am not sure. Can someone tell me for sure what the best variable is in explanation please.

Link to comment
Share on other sites

I was thinking that but on mysql.com it says that a ig int is 8 bytes and floats are only 4 thats why I have floats but im not sure if thats the way it works and want some kind of explanation as to why something is the smallest.

Link to comment
Share on other sites

I was thinking that but on mysql.com it says that a ig int is 8 bytes and floats are only 4 thats why I have floats but im not sure if thats the way it works and want some kind of explanation as to why something is the smallest.

You still want BIGINT.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.