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

Invalidating db-cache for select vertices only #1388

Open
m-manseer opened this issue Dec 10, 2017 · 0 comments
Open

Invalidating db-cache for select vertices only #1388

m-manseer opened this issue Dec 10, 2017 · 0 comments

Comments

@m-manseer
Copy link

I would like to request an API for selectively invalidating vertices in the database-level cache described in 10.3 Database-Level Caching.

Use Case
When running multiple instances of Titan on different servers, one may update a certain vertex and notify other servers of the update by vertex ID. If another server acts upon the update by e.g. pushing a change event to clients, it prepares a JSON representation of the vertex to transmit. This JSON representation is likely to contain stale data from the db-cache.

Any way to circumvent the cache and directly fetch data from the storage backend would be great, without having to disable the cache altogether.

Example
APIs like these would be handy:

Vertex::invalidateCache()
TitanGraph::invalidateCache(Object... ids)

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

No branches or pull requests

1 participant