Hi everyone)
I'm newbie in database optimization and I have some questions about it:
First of all, what is better for table that contains messages like posts or tweets or comments: author_id | message or author_fullname | message ? I know that first variant is better, but I don't know why it is better. While displaying the message to the user, you will show the authors name, not id, right? It means you'll need one more request to get the information about author like name, age, etc. So isn't it better to keep the information about author in messages table to avoid one more request?
How size of a table affects on speed? I thought that if table is well-sorted, retrieving data will be ok despite the size of table. Is it wrong belief?