You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, there are several "query"-like operations difficult to do in outstatic. Some examples:
"get all documents, sorted by their publishedAt value"
"get the first 5 documents in the posts collection, written by the user Jim"
"get all the documents, across all the collections"
It would be unreasonable in even a moderate site (20 pieces of content) to do an FS read on every file, YAML parse the frontmatter, and then perform operations on the merged set of frontmatter data.
Proposed Solution
This issue is tracking the work on a Metadata DB; a file updated on edit/delete and via SWR which contains the most recent copy of metadata from every piece of outstatic content's frontmatter.
The sync is unidirectional (files -> metadata db) and dirty data is acceptable, returning cached values
A new metadata DB results in a new deployment, which allows getStaticProps / getServerSideProps to refresh their queries
The text was updated successfully, but these errors were encountered:
Implements a first pass at metadata DB, allowing you to build and maintain metadata about your outstatic posts. Metadata can be created from the settings page, as well as on the individual edit/save of items in collections. Introduces a new query syntax to access and read metadata, while still maintaining the static site design outstatic excels at.
Resolves#71
Co-authored-by: Andre Vitorio <andre@vitorio.net>
Discussion: #53
Why
Right now, there are several "query"-like operations difficult to do in outstatic. Some examples:
publishedAt
value"posts
collection, written by the userJim
"It would be unreasonable in even a moderate site (20 pieces of content) to do an FS read on every file, YAML parse the frontmatter, and then perform operations on the merged set of frontmatter data.
Proposed Solution
This issue is tracking the work on a Metadata DB; a file updated on edit/delete and via SWR which contains the most recent copy of metadata from every piece of outstatic content's frontmatter.
The text was updated successfully, but these errors were encountered: