Comparison: Caching data to an external file or retrieving from MySQL database?
Posted on 2005-04-06
When dealing with moderate amounts of information, such as script settings (roughly 50-75 settings), etc... which is more effecient: writing the data to an external file to be included from there-on-out, or quering the database to retrieve the information? I ask becuase I'd like to get my page query count as low as possible, and I could eliminate one more query if I just included the settiings from a file, but if it's better to query it, I'll do that. Any examples, documentation, anything?