Skip to content

Invalidating db-cache for select vertices only #1388

@m-manseer

Description

@m-manseer

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions