Skip to content

Feature to add #5

@syaau

Description

@syaau
  • Eviction Policy
    Clients are not supposed to keep an entire database but just a part of it. Besides JS is single threaded, if we start building index for a huge database or perform a sort operation, it will block the entire UI thread. For these reasons, each scheme on a redux database should have limited number of records. A eviction policy method should perform this operation where the eviction may be based on various factors.
  • Aggregation
    Along with the database index, an aggregation method could be supplied that would calculate the aggregated values like (sum, count, etc).
  • Sorting
    The data should have a sort field, which makes keeps the allIds list sorted by this field.
  • Add helper methods (dispatch actions) to perform certain actions like rebuilding index, sorting dataset, etc.
  • Add data structure. [Reminder to self, this is partly implemented in HoneyGuide next repo]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions