Re: Use of mgmt.setTTL to expire edges

Jerry He <jerr...@...>

JanusGraph's documentation [1] shows both ES and Solr have document index TTL.

But looking at the code, I only see Solr has it on:
    private static final IndexFeatures SOLR_FEATURES = new IndexFeatures.Builder()

The code to support sync of entry TTL to index document TTL is also in place for Solr (and for ES as well except the last mile).
We need to look into why it is missing there.




On Monday, July 3, 2017 at 8:41:50 AM UTC-7, k...@... wrote:

I am experimenting with using the mgmt.setTTL option to automatically expire edges after 7 days - which is working well and generating much less overhead then trying to execute a task that finds and drops the edges.  However this option does not drop the entries from external indexes in Elasticsearch. I imaging that this is because the setTTL is being passed directly to the storage backend to handle (Cassandra in my case) and so only happens there.

Is this working as expected? Are there plans to sync the deletions in Elasticsearch? Or should I plan to manually run a purge from Elasticsearch in line with the 7 day expiry in Cassandra?

Thanks for any of your views!


Join to automatically receive all group messages.