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
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]
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.
Along with the database index, an aggregation method could be supplied that would calculate the aggregated values like (sum, count, etc).
The data should have a sort field, which makes keeps the
allIdslist sorted by this field.dispatch actions) to perform certain actions like rebuilding index, sorting dataset, etc.