Jump to content
MakeWebGames

Recommended Posts

Posted

It is certainly important to use correctly the index (as well as the right DB engine), however I would personally first think about my own code and for example avoid 100 queries within a loop and replace it with a single query (if possible). That has too a major impact.

Posted

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.

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