fastcgipp-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fastcgipp-users] database query vs file read


From: ninti
Subject: [Fastcgipp-users] database query vs file read
Date: Mon, 18 Jan 2010 20:14:37 +1030

This is a slightly off-topic general question. I am building a web app using 
fastcgi++ (on Nginx+FastCGI) which at the moment builds a simple navigation 
menu 
(10 to 20 items) on each page access by querying an Sqlite database (using a 
3rd 
party library). 
 
I'm wondering if there would be any significant gains (or losses) in caching 
the 
menu in a file and reading it in from disk rather than doing a database query 
each request? 
 
I guess the question is whether, generally speaking, C++ is quicker reading 
small 
text files on disk vs querying a database? 
 
Thanks for any ideas 
 
Mike 
 
 
 
 
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]