Reducing memory size and increasing speed in MySQL :

Reducing memory size and increasing speed in MySQL :

1. Use smallest datatypeWhen creating a new column in database table, we can use the smallest datatype that will hold the information expect to store. Most of the time, using INT is overkill as MEDIUMINT, SMALLINT, or TINYINT have enough range. Using a smaller datatype saves reduce the space and increases the speed.

When creating a new column in database table, we can use the smallest datatype that will hold the information expect to store. Most of the time, using INT is overkill as MEDIUMINT, SMALLINT, or TINYINT have enough range. Using a smaller datatype saves reduce the space and increases the speed.2. Declaring columns using NOT NULLWe can declare all of database columns NOT NULL unless we specifically need to store NULL values. Note - NULL is not the same as 0 or the empty string. NOT NULL reduces space and increases the speed.

We can declare all of database columns NOT NULL unless we specifically need to store NULL values. Note - NULL is not the same as 0 or the empty string. NOT NULL reduces space and increases the speed.

Leave a Reply

You must be logged in to post a comment.


All material @ copyrighted by chrisranjana.com. If you want to link to this article you are welcome to do so. Unauthorized publication is strictly prohibited. This developer tutorial website contains articles by Php programmers , Software developers, Mysql programmers and asp c# programmers. This website also contains ajax tutorials and advanced mysql sql stored procedures and functions tutorials and sample codes.