Shwetha G S commented on ATLAS-1207:

The attached patch replaces DSL query with direct graph query

> Dataset exists query in lineage APIs takes longer
> -------------------------------------------------
>                 Key: ATLAS-1207
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1207
>             Project: Atlas
>          Issue Type: Bug
>            Reporter: Sharmadha Sainath
>            Assignee: Shwetha G S
>             Fix For: 0.8-incubating
>         Attachments: ATLAS-1207.patch
> Hive_column now extends DataSet. Lineage Service uses the DSL query Dataset 
> where __guid = <id> which maps to the gremlin query g.V().has(supertype, 
> Dataset).has(__guid, <id>). Since the first filter is on type which returns 
> many vertices, this query is slow. Supertypes is a list property and not sure 
> how adding combined index will work. This can be replaced with graph query 
> directly like 
> {code}
> titanGraph.query().has(Constants.GUID_PROPERTY_KEY, guid)
>                           .has(Constants.SUPER_TYPES_PROPERTY_KEY, 
> {code}
> Thanks [~ssainath] for helping to test this

This message was sent by Atlassian JIRA

Reply via email to