Performance Question: DB Query versus PHP Script Interpretation
Posted on 2004-07-30
I wonder what has the better performance:
scenario 1) store constants (internationalized strings) in a DB and use PHP / SQL to retrieve them
scenario 2) genearate a large php file holding the values in ready to use PHP constants / array.
In other words: is there a performance gain using a "in-php-database" or does interpreting that php file defeat the object.
which has the better performance (response, server-load)?