Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
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
titanGraph.query().has(Constants.GUID_PROPERTY_KEY, guid) .has(Constants.SUPER_TYPES_PROPERTY_KEY, AtlasClient.DATA_SET_SUPER_TYPE)
Thanks ssainath for helping to test this