Skip to content
Discussion options

You must be logged in to vote

So I've got a handful of possible solutions:

  • Store each "item" as a set of version/diff documents collected by a view or range query, with a shared id prefix (or somesuch), compute current version as a reduction over history.
  • Store history/past versions as part of the document (and compact aggressively, since that'll go quadratic really quick, but storing one or two revisions of history is probably fine).
  • Store history/journal as a separate doc from the item with a shared id prefix with the item (same quadratic caveat).
  • Store history as a set of separate docs (view, etc) with a shared id prefix.

Are there any other broad categories of solution I'm missing? It seems like there must be a …

Replies: 5 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@SourceR85
Comment options

@SourceR85
Comment options

@andrewf
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@janl
Comment options

janl Apr 29, 2024
Collaborator

Answer selected by janl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants