Hi there,
Let's say I run a website giving the oportunity to users to put content online (some comments for ex...) and that I run this website under several languages / countries (locale). In addition, I don't need the comments to be accessible from a locale to another.
I'd like to know what the best database design between the following 2:
Create 1 table per locale:
commentsenGB (id, txt)
commentsfrFR (id, txt)
etc...
Put all comments in the same comments table, but keep trace of the locale / language:
comments (id, txt, id_lang)
I am pretty sure best db-design is 2) but I was considering that, in that case, the table of comments is shared between all the locales and, as a result, the number of entries will increase exponentially (nb_of_locales x quicker!) and the query time accessing the table will suffer, no? Or is:
SELECT * FROM comments WHERE id_lang = engb
The exact same query (in term of execution time) as:
SELECT * FROM commentsenGB
Thanks!