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

Inheritance Caching #13

Open
danthegoodman1 opened this issue Apr 10, 2022 · 0 comments
Open

Inheritance Caching #13

danthegoodman1 opened this issue Apr 10, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@danthegoodman1
Copy link
Collaborator

danthegoodman1 commented Apr 10, 2022

Could we do something like take a → b → c and make 2 things:

  1. For each arrow, make a record in a cache_relations table that points to this new cache relations
  2. Create a cached relation of a→c in the relations table

When ever we delete a relation (the arrow), we look up whether it existed in the cache_relations table. If so, we delete the cached relation in the relations table.

Would need to record all entites in the graph so that any change could be detected and purged the change.


OR if we are running in an environment where we can see and identify other nodes (kubernetes for example), we could use Raft and elect leaders. But at that rate why even use CRDB if we can just do KV locally then...

Maybe Group Cache? It's not strongly consistent but it is VERY close...

@danthegoodman1 danthegoodman1 added the enhancement New feature or request label Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant