-
-
Notifications
You must be signed in to change notification settings - Fork 39
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(pinia-orm): add optional caching for same get
requests
#272
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CodeDredd
changed the title
perf(pinia-orm): add caching for same
perf(pinia-orm): add optional caching for same Sep 15, 2022
get
requestsget
requests
Merged
CodeDredd
added a commit
that referenced
this pull request
Sep 15, 2022
β¦rsion (#343) * feat(pinia-orm): Adding `hidden` & `visbile` in model and `_meta` field (#240) * feat(pinia-orm): Adding `hidden` & `visbile` in fields - Also adding first global configuration * refactor: add hidden decorator * refactor(pinia-orm): change inter prop `useMutator` to `operation` * refactor(pinia-orm): finalize meta feature - Removed 'sanitize' since it was not used at all * docs(pinia-orm): add hidden, visible and meta to api * docs(pinia-orm): add description in guide * docs(nuxt): add new config options * docs: add hidden decorator * docs: add missing withMeta * test(pinia-orm): Add missing tests for better coverage (#257) * feat(pinia-orm): Add helper composables for collection (#259) * feat(pinia-orm): Add helper composable for collection * refactor(pinia-orm): add build * refactor(pinia-orm): fix tests and add sortby * docs(pinia-orm): add api docs for helpers * docs(pinia-orm): fix small error * refactor(pinia-orm): remove max out of query * test(pinia-orm): add missing coverage tests * docs(pinia-orm): update docs and readme * docs: add configuration to api & add missing icons (#266) * docs: update sponsors * perf(pinia-orm): add optional caching for same `get` requests (#272) * feat(pinia-orm): add caching for same get requests * feat(pinia-orm): add caching classes & improve config * refactor(pinia-orm): add tests & making caching false by default * refactor(pinia-orm): fix types * docs(pinia-orm): add cache * fix(pinia-orm): `(where)has` queries are not working with 1:1 relations (#342) * chore: update lock file * fix(playground): Remove vue-hako since it breaks with new vueuse version
CodeDredd
added a commit
that referenced
this pull request
Sep 15, 2022
* feat(pinia-orm): Adding `hidden` & `visbile` in model and `_meta` field (#240) * feat(pinia-orm): Adding `hidden` & `visbile` in fields - Also adding first global configuration * refactor: add hidden decorator * refactor(pinia-orm): change inter prop `useMutator` to `operation` * refactor(pinia-orm): finalize meta feature - Removed 'sanitize' since it was not used at all * docs(pinia-orm): add hidden, visible and meta to api * docs(pinia-orm): add description in guide * docs(nuxt): add new config options * docs: add hidden decorator * docs: add missing withMeta * test(pinia-orm): Add missing tests for better coverage (#257) * feat(pinia-orm): Add helper composables for collection (#259) * feat(pinia-orm): Add helper composable for collection * refactor(pinia-orm): add build * refactor(pinia-orm): fix tests and add sortby * docs(pinia-orm): add api docs for helpers * docs(pinia-orm): fix small error * refactor(pinia-orm): remove max out of query * test(pinia-orm): add missing coverage tests * docs(pinia-orm): update docs and readme * docs: add configuration to api & add missing icons (#266) * docs: update sponsors * perf(pinia-orm): add optional caching for same `get` requests (#272) * feat(pinia-orm): add caching for same get requests * feat(pinia-orm): add caching classes & improve config * refactor(pinia-orm): add tests & making caching false by default * refactor(pinia-orm): fix types * docs(pinia-orm): add cache * fix(pinia-orm): `(where)has` queries are not working with 1:1 relations (#342) * chore: update lock file * fix(playground): Remove `vue-hako` since it breaks with new vueuse version (#343) * feat(pinia-orm): Adding `hidden` & `visbile` in model and `_meta` field (#240) * feat(pinia-orm): Adding `hidden` & `visbile` in fields - Also adding first global configuration * refactor: add hidden decorator * refactor(pinia-orm): change inter prop `useMutator` to `operation` * refactor(pinia-orm): finalize meta feature - Removed 'sanitize' since it was not used at all * docs(pinia-orm): add hidden, visible and meta to api * docs(pinia-orm): add description in guide * docs(nuxt): add new config options * docs: add hidden decorator * docs: add missing withMeta * test(pinia-orm): Add missing tests for better coverage (#257) * feat(pinia-orm): Add helper composables for collection (#259) * feat(pinia-orm): Add helper composable for collection * refactor(pinia-orm): add build * refactor(pinia-orm): fix tests and add sortby * docs(pinia-orm): add api docs for helpers * docs(pinia-orm): fix small error * refactor(pinia-orm): remove max out of query * test(pinia-orm): add missing coverage tests * docs(pinia-orm): update docs and readme * docs: add configuration to api & add missing icons (#266) * docs: update sponsors * perf(pinia-orm): add optional caching for same `get` requests (#272) * feat(pinia-orm): add caching for same get requests * feat(pinia-orm): add caching classes & improve config * refactor(pinia-orm): add tests & making caching false by default * refactor(pinia-orm): fix types * docs(pinia-orm): add cache * fix(pinia-orm): `(where)has` queries are not working with 1:1 relations (#342) * chore: update lock file * fix(playground): Remove vue-hako since it breaks with new vueuse version * chore: update readme * chore: update readme
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
π Linked issue
vuex-orm/vuex-orm-next#116
β Type of change
π Description
Right now if you execute a
get
request (alsofind
, etc.) then this request is always making the whol script chain which makes it pretty slow in big storages or if you execute the same get request very often.This implements a simple caching storage like all other libaries have (vuex-orm-cache, vue-query, ....)
π Checklist