Hey guys,
I am making an online game and one of the issues I have is this: Obviously I have a lot of variables per user, however probably half are needed on most pages, and then the rest are only needed on select pages. On the load of every page where any variables are needed I am connecting to the database and getting the latest results to display for the user.
When I connect it is connecting to a big table and not using most variables there very often. So my question is, would it be better to have a few smaller tables and connect to several small ones per page, or leave it as one big one?
Or to put it another way, are more resources used connecting to a bigger table, or are more resources used connecting to multiple tables?
I am making an online game and one of the issues I have is this: Obviously I have a lot of variables per user, however probably half are needed on most pages, and then the rest are only needed on select pages. On the load of every page where any variables are needed I am connecting to the database and getting the latest results to display for the user.
When I connect it is connecting to a big table and not using most variables there very often. So my question is, would it be better to have a few smaller tables and connect to several small ones per page, or leave it as one big one?
Or to put it another way, are more resources used connecting to a bigger table, or are more resources used connecting to multiple tables?
Comment