Jump to content

A question of taxation


ijasont

Recommended Posts

I am creating a simple game using PHP. One of the games really just a string of radio buttons.

My question:

Is it LESS taxing for my server to store all the \"name\" Value\" data in a file or place variable that link to the Name and Value to the db?

 

in other words. I will not be changing this info much at all and the file will be accessed a LOT. Should I place the Name and Values in my db or leave them in the <form> as is?

 

Thanks for the help:

Jason

Link to comment
Share on other sites

If you mean lookup values, I\'m prejudiced towards keeping that type of stuff in the database. This is what is generally referred to as having a \"data driven\" design.

 

In general small tables like these should be cached by the database, and retrieval is as close to instantaneous as the database can be. There are many different things that can become a bottleneck in an application, and I\'ve found it\'s best to create the system first, then tune around the bottlenecks, rather than to assume you know what the bottlenecks will be and start making design decisions based around those assumptions.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.