Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perf cache #18

Merged
merged 23 commits into from
Oct 6, 2019
Merged

Perf cache #18

merged 23 commits into from
Oct 6, 2019

Conversation

morrys
Copy link
Owner

@morrys morrys commented Oct 6, 2019

  • Improved

    • wora/redux: modified the redux library to natively manage persistence and reduce the size of the bundle
    • wora/cache-persist
      • possibility of using any storage synchronously with the read and write performance that you have with javascript objects (queue debounce merge and the invocations of multiSet and multiRemove)
      • use react-native-community/async-storage and eliminate the dependency from the AsyncStorage of react-native
      • compatibility with storage created for redux
      • fix typo
      • improved handling of the disablePersist
      • manage set, remove. delete through queue
      • test with jest
      • wora/cache-persist V2.0.0 #11 (comment)
    • wora/relay-store
      • updated wora/cache-persist dependency
      • moved the creation of the recordsource out of the store
      • eslint
    • wora/apollo-cache
      • updated wora/ cache-persist dependency
      • eslint
  • wora/offline-first

    • updated wora/cache-persist dependency
    • eslint
  • wora/relay-offline

    • updated wora/cache-persist dependency
    • updated wora/offline-first dependency
    • updated wora/relay-store dependency
  • wora/apollo-offline

    • updated wora/cache-persist dependency
    • updated wora/offline-first dependency
    • updated wora/apollo-cache dependency
  • Breaking Change

    • wora/cache-persist

      • changed types
      • set, remove, delete, purge & replace methods are no longer of the promise, now they are all synchronous
    • modified the parameters of the subscribe and notify functions

    • wora/relay-store

before

import { Store } from '@wora/relay-store';
const defaultTTL: number = 10 * 60 * 1000, 
const persistOptions: CacheOptions = {}; 
const persistOptionsRecords: CacheOptions = {}; 
const store = new Store(defaultTTL, persistOptions, persistOptionsRecords);

after

import { RecordSource, Store } from '@wora/relay-store';
import { CacheOptions } from "@wora/cache-persist";
const persistOptions: CacheOptions = {
    defaultTTL
}; 
const persistOptionsRecords: CacheOptions = {}; 
const recordSource = new RecordSource(persistOptionsRecords);
const store = new Store(recordSource, persistOptions);
  • wora/relay-offline
    • modified EnvironmentIDB.create signature

morrys and others added 23 commits August 31, 2019 10:37
…ation), fix(avoid multiple restore), breaking(notify inverted the parameters)
…urge, refactor layers: add mutateKey mutateValue
…the creation of the recordsource out of the store, new version
@morrys morrys merged commit bc7aed7 into master Oct 6, 2019
@morrys morrys deleted the perf-cache branch March 18, 2020 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant