3 ms·
Makes sense. I think especially for DBs that are mostly read-only, this seems like a really useful solution. In some way, this reminds me of the way some of th
by xg15 5y ago
Makes sense. I think especially for DBs that are mostly read-only, this seems like a really useful solution.
In some way, this reminds me of the way some of the old image boards were written: Instead of querying the DB and rendering HTML on each GET, the HTML was regenerated on POSTs and written to disk as static files. All GETs were handled like static assets.
This gave you high read performance, caching and partial reads for free, even for pages that normally would be dynamic.
(Of course the cost was bad write performance and severe restrictions on dynamic or user-dependent content)