Skip to content

Conversation

@joshreed104
Copy link
Contributor

Checklist

  • Bugfix
  • New feature
  • Refactor

Related Issue

Cache was not being invalidated after add mutations.
Cache could not be selectively queried for fields.

Solution

Allow developer to tell Obsidian which mutations affect which tables, then use that to invalidate only cache entries that are affected when a mutation happens.
Pull fields from initial GraphQL query and use those to pull data from referenced objects in Redis cache.

joshreed104 and others added 13 commits December 23, 2022 11:14
…utations to a given table.

Co-authored-by: Jonathan Fangon <jmfangon@icloud.com>
Co-authored-by: Liam Johnson <liamd@live.com>
Co-authored-by: Derek Okuno <okunoderek@gmail.com>
Co-authored-by: Liam Jeon <liamjeon@gmail.com>
Co-authored-by: Josh Reed <joshreed104@gmail.com>
…rying

Implemented selective querying from cache and cache invalidation on m…
added ability to invalidate only relevant cache on a mutation
Co-authored-by: Jonathan Fangon <jmfangon@icloud.com>
Co-authored-by: Liam Johnson <liamd@live.com>
Co-authored-by: Derek Okuno <okunoderek@gmail.com>
Co-authored-by: Liam Jeon <liamjeon@gmail.com>
Added comments, cleaned consolelogs and refactored
Co-authored-by: Josh Reed <joshreed104@gmail.com>
Co-authored-by: Jonathan Fangon <jmfangon@icloud.com>
Co-authored-by: Liam Johnson <liamd@live.com>
Co-authored-by: Derek Okuno <okunoderek@gmail.com>
Co-authored-by: Liam Jeon <liamjeon@gmail.com>
Updated readme. Deleted some console logs and added comments.
Co-authored-by: Josh Reed <joshreed104@gmail.com>
Co-authored-by: Jonathan Fangon <jmfangon@icloud.com>
Co-authored-by: Liam Johnson <liamd@live.com>
Co-authored-by: Derek Okuno <okunoderek@gmail.com>
Co-authored-by: Liam Jeon <liamjeon@gmail.com>
Cleaned up some console logs and comments.
@liamdimitri liamdimitri merged commit bcd054c into open-source-labs:master Jan 4, 2023
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.

5 participants