Skip to content

Time to Live(TTL) node support #4895

@damienburke

Description

@damienburke

Experience Report

What you wanted to do

I wanted to set a TTL on nodes. The data we are persisting in Dgraph has a very definite life span, so being able to configure a TTL per dgraph.type would be really useful.
I also feel that TTL is a fundamental requirement, that would be useful for a lot of the Big Data domains that Graph DBs are central to solving.

What you actually did

Nothing. If this feature is not natively supported, we would need to write some custom code to execute periodically to delete nodes via mutation.

Why that wasn't great, with examples

(have not attempted a workaround solution, yet. as project not at stage where this is needed)

Any external references to support your case

https://discuss.dgraph.io/t/time-to-live-for-nodes-etc-in-dgraph/6092
https://neo4j.com/docs/labs/apoc/current/graph-updates/ttl/

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureSomething completely new we should consider.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions