Consider simple query:
SELECT * FROM `your_table` LIMIT 0, 10
Can I have 10 value coming from another settings table?
If yes, is it beneficial faster to do this, or rather have settings table in php, and set value 10 during query?
Consider simple query:
SELECT * FROM `your_table` LIMIT 0, 10
Can I have 10 value coming from another settings table?
If yes, is it beneficial faster to do this, or rather have settings table in php, and set value 10 during query?
Probably it depends on what SQL server do you use, but the standart SQL syntax would not let you have the limit value read from another "settings" table.
So better define it in the PHP code and use it when you build your SQL query.