Welcome Guest, Not a member yet? Register   Sign In
constants or DB params ?
#1

[eluser]mariek[/eluser]
Hi all,

I have in my application some parameters I want to store in my DB, to manage them easily through a user interface. These are, for example, the number of days my demo is available, default user disk space, etc.
These params are not called very often, but still, I was wondering if it was a good idea to store them and call via the DB each time I need to know their value. I think it would be faster to put them in a config file as constants, and this config file would be generate once a day or at any change.

Do you think it's worth doing it ? What would you do ?

Thank you for your advises.
mariek
#2

[eluser]toopay[/eluser]
I'll save that stuff in my config, rather than consume my server memory ;-)
#3

[eluser]mariek[/eluser]
That's what I thought, but I'm too lazy to code it without taking opinions first Wink




Theme © iAndrew 2016 - Forum software by © MyBB