one table or separate into different tables for best mysql query performance? -
i learnt how develop simple php website mysql database. user can create post in 3 different categories. (columns in each of these tables same)
so know whether save posts in 1 table (9.000 results) or separate them 3 tables (3000 results each ) , use union retrieve found results in search result page?
this fundamental step database design. please advice!
use single table. standards of sql, 9000 rows not large table.
there numerous reasons why want 1 table. here few:
- you can have foreign key references single table.
- it easier maintain.
- performance better, because have fewer partially filled pages.
you want create appropriate indexes on table, table.
Comments
Post a Comment