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

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -