purbeast0
No Lifer
I just have a question about which is more efficient.
Say for a webpage, on the front page, you have news combined from all consoles. So basically all ps2, ps3, xbox, etc, news is posted on the front page in order of the time.
However on the side menu you also have a way to browse news by consoles, so if you click on PS2 on the side, it will go to the page listing only ps2 news, ordered by time.
Now my question is about setting up the tables in the db ...
For this type of deal, would it be more efficient to have 1 giant table that just has ALL of the news articles in it, and when you see the home page, it just gets the latest 30 or so and posts them, and then when you click on the PS2 link on the side, it then selects only the PS2 articles from this huge table?
Or is it more efficient to have a table for each console (PS2 table, xbox table, etc), and then on the main front page, do a JOIN and select from that to display the main page, and then when they click on the PS2 or XBOX link on the side, it will just order them by time?
If you are to eventually have a HHUUGGEE database, which one of these is more efficient in the long run?
I've just heard before that JOIN's are pretty intensive and I didn't know if it was such a good thing to use on every homepage load.
Say for a webpage, on the front page, you have news combined from all consoles. So basically all ps2, ps3, xbox, etc, news is posted on the front page in order of the time.
However on the side menu you also have a way to browse news by consoles, so if you click on PS2 on the side, it will go to the page listing only ps2 news, ordered by time.
Now my question is about setting up the tables in the db ...
For this type of deal, would it be more efficient to have 1 giant table that just has ALL of the news articles in it, and when you see the home page, it just gets the latest 30 or so and posts them, and then when you click on the PS2 link on the side, it then selects only the PS2 articles from this huge table?
Or is it more efficient to have a table for each console (PS2 table, xbox table, etc), and then on the main front page, do a JOIN and select from that to display the main page, and then when they click on the PS2 or XBOX link on the side, it will just order them by time?
If you are to eventually have a HHUUGGEE database, which one of these is more efficient in the long run?
I've just heard before that JOIN's are pretty intensive and I didn't know if it was such a good thing to use on every homepage load.