php - MySQL database performance -


i working on project php/laravel , mysql, have table has 20 columns, , in cases of columns empty... performance of application important me, , size of database not... want know impact of empty columns in application performance.

thanks , sorry bad engilsh

first of all, there huge difference between empty/blank database column , null value column. explained empty column in cases, there chance of low performance, because database needs more , more space accommodate empty values null value. more space means more hardware cost + difficult maintain + less performance.

so best way set column type null database ignores field, use less space , thereby high performance if have large number of records , columns.

note: mentioned, affect unless have huge load of data, won't affect if number of records comparatively less.


Comments

Popular posts from this blog

.net - Bulk insert via Dapper is slower than inserting rows one-by-one -

shared memory - gstreamer shmsrc and shmsink with h264 data -

java - is not an enclosing class / new Intent Cannot Resolve Constructor -