Quote:
Originally Posted by Eikinskjaldi
The join is the better option because it uses less overhead. Interesting you are ussing inno, is there a reason? do you ever backup your datatbase? did you purchase inno hotcopy?
run the query through explain, see what it looks like.
|
What if I will have 10000 stories and 10000 threads ? It will take a lot of memory to make a join of those 2 tables and most of the information will not be needed.
The user only sees 10 stories per page, so I will fetch those 10 stories then for each story I will fire a query to get the thread information corresponding for that story.
I changed my mind regarding the "user" table. I don't need this table any more.
This looks like the best trade-off for now. If you disagree, please comment.
About "hotcopy": I am sorry, but I never heard of it. Is this going to boost my DB performance ?
The reason for using innodb is because my host configure it like that.
Regards,
Razvan