holochain-open-dev / holochain-open-dev/ecosystem

As a developer, I want a simple interface for creating & querying date-based indexes by range

Open
#22 1 comment 0 reactions 0 assignees View on GitHub
user story
Dominant language
No language data
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

The base implementation would create a configurable sharded `Path` structure based on some input timestamp for a paired entry (perhaps provided as a two-element tuple i.e. `(DateTime, EntryData)`).

Temporal sharding granularity could be defined by an established crate or some other enum for year / month / day / hour / min / sec, where the interval determines how "deep" to shard the path based on components of the input date. Smaller intervals would probably include all parent intervals as `Path.parent()`s up the tree, to allow browsing the contribution graph in a temporally ordered manner.

This gives us a resultant period-based API, where we can ask eg. "show me all the entries of this type **created yesterday**". Note the "yesterday" afforded by a "day" sharding granularity, other configurations would make other query sizes possible.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.