diff --git a/Database-System.md b/Database-System.md index 9acece2..2ab9f3c 100644 --- a/Database-System.md +++ b/Database-System.md @@ -19,6 +19,8 @@ The document URIs are hierarchical and that's how the database is organized. Exa * `blog/entries/172` - the blog post with ID #172 * `blog/index` - an index (high level summary) of all existing blog posts +For a simple personal homepage site, this database model is sufficient. If you need data to be available in a way that doesn't fit the document-based structure (in what MongoDB would call a View), you make a new JSON document that pre-caches the data when it changes (i.e. `blog/index` is a high level cache of basic blog entry details, like their subject, creation date, author ID, etc. -- but not their contents, comment counts, avatars, or other details) + # Example DB Structure ```