On Mon, Jan 18, 2010 at 2:44 AM,
<address@hidden> wrote:
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