Skip to content

Add support for change-based/ledger-style data storage #2

Description

@whorvath2

Enable a configurable write strategy that allows new data documents about an identifier to be treated as changes to the previous document(s), rather than treated as entire data objects themselves. I.e., on operations requesting the current data that's associated with an identifier, the earliest data file will be read in as a document, then each subsequent file's content will be added to the document in a find-and-replace-or-append fashion. On operations requesting all of the data, the contents of each file can be returned (as is presently the case.)

E.g.:
file 1: {"foo": "bar", "fizz": "buzz"}
file 2: {"fizz": "pop"}
file 3: {"first": "last"}
Call to get_all_data => {"foo": "bar", "fizz": "pop", "first": "last"}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions