I think the question is stupid, but I did not find the answer in the materiel. For example, there is a table id (key) | name (string) | country (?) | city (?)
Here is the question. I have to choose by several parameters, for example, sometimes by country and city, sometimes one thing. What is better to use in columns country and city - numerical data (indices from other tables) or string names of these countries and cities? 100% I will have 2 more tables with cities and countries:
id (key) | country (string)
id (key) | city (string)
But there will definitely be no queries with JOIN, since data for cities and countries will be on the client side as well.
Those. what gets out faster
[SQL] SELECT * FROM table WHERE country = 421 AND city = 547 [/ SQL], if id (key) | name (string) | country (number) | city (number) - and then the numbers must somehow index?
or
[SQL] SELECT * FROM table WHERE country = "Germany" AND city = "Berlin" [/ SQL], if id (key) | name (string) | country (string) | city (string)