I have a doubt regarding how to store data inside MYSQL tables.
Let’s say I write 10k posts, 400 words each.
Is it better to store each post (the 400 words) in one row?
Or to split it into, let’s say 10 rows (40 words each)?
Or to split into 100 rows (4 words each)?
Which structure will give me the best performance, less weight, better loading time, etc..?
What is more important – how many rows you have (1 or 10 or 100) or how much data is inside your rows (400 or 40 or 4)?
More rows can make it slower to query. In addition to this the complexity you will add by splitting posts up is not worth it. The amount of time it will take for new developers to work out what’s going on is increased and the more complex code is more likely to have errors in it, either now or in the future.
Put each post in a row, profile it and then change that if you find you are having performance problems.