Jump to content
MakeWebGames

Guide to Database Performance


Recommended Posts

I was discussing mysql recently.

A common error with creating mysql tables is the use of INT where people immediatly just opt for int(11) when the value is never going to reach that amount for a very very long time.

So you have mediumint which is a much better option or use tinyint where appropriate.

Same applies with varchar where people just go for varchar(255) when they should think about what they really need varchar(64) will that suffice?

The actual overhead is small and people may think...ah is it worth bothering about. But if you build a game and it becomes a success any small overhead then becomes a very big overhead.

Link to comment
Share on other sites

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.   Paste as plain text instead

  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...