Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 24D35200CA7 for ; Wed, 14 Jun 2017 16:04:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 237C5160BDB; Wed, 14 Jun 2017 14:04:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6A48D160BC0 for ; Wed, 14 Jun 2017 16:04:07 +0200 (CEST) Received: (qmail 79505 invoked by uid 500); 14 Jun 2017 14:04:05 -0000 Mailing-List: contact dev-help@atlas.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@atlas.incubator.apache.org Delivered-To: mailing list dev@atlas.incubator.apache.org Received: (qmail 79488 invoked by uid 99); 14 Jun 2017 14:04:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jun 2017 14:04:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 8E939CFA4C for ; Wed, 14 Jun 2017 14:04:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.011 X-Spam-Level: X-Spam-Status: No, score=-100.011 tagged_above=-999 required=6.31 tests=[SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id qGtAUwRQMH7Q for ; Wed, 14 Jun 2017 14:04:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id BFCDB5FCC1 for ; Wed, 14 Jun 2017 14:04:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id D4CCFE0D54 for ; Wed, 14 Jun 2017 14:04:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 154A921E0F for ; Wed, 14 Jun 2017 14:04:00 +0000 (UTC) Date: Wed, 14 Jun 2017 14:04:00 +0000 (UTC) From: "Christian R (JIRA)" To: dev@atlas.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ATLAS-1868) Highly inefficient DSL-queries MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 14 Jun 2017 14:04:08 -0000 [ https://issues.apache.org/jira/browse/ATLAS-1868?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1604= 9209#comment-16049209 ]=20 Christian R commented on ATLAS-1868: ------------------------------------ Hi Graham,=20 thank you for looking into this and I am glad you are able to reproduce it.= =20 The only think I have thought of so far is to leverage the solr/elastic ind= ex to see if we can detect parts of the graph that have very few entries an= d base the query around that. I suspect not, but it was my first thought (i= used to work with search, you see...) (I want to sneak in a question here that I couldn't find any discussion on;= was it a deliberate choice to remove the titan id from gremlin search resu= lts in v 0.8 and above? I get out/inVertex in the edge results, but the ver= tices no longer contain 'id'. At least, not when running on berkeley/elasti= c locally. I am trying to verify on hdp sandbox 2.6 now. Given my perf issu= es with DSL we are using gremlin quite heavily on v 0.7 now. ) > Highly inefficient DSL-queries > ------------------------------ > > Key: ATLAS-1868 > URL: https://issues.apache.org/jira/browse/ATLAS-1868 > Project: Atlas > Issue Type: Bug > Components: atlas-core > Affects Versions: 0.7-incubating > Environment: linux, hbase + solr configuration. > Reporter: Christian R > Labels: dsl, gremlin > > The DSL query 'mytype where property.id =3D "id1"' appears to be rewritte= n as a gremlin query that resembles: > g.V.has(typename, 'mytype'=C2=A8).as(x).out('property').has('id', 'id1').= back('x') > On our system this query takes 6-7 minutes. The query > g.V.has('id', 'id1').in('property').has('typename', 'mytype') > takes 350 milliseconds. > Our graph: > g.V.count() =3D 1359151 > We have atlas 0.7 installed. I've compiled the latest 0.9 code and looked= at the generated gremlin query as reported in the logs for the same DSL-qu= ery, and I think 0.9 has the same performance issues. Unfortunately I don't= have a big graph on a 0.9 installation to test performance.=20 -- This message was sent by Atlassian JIRA (v6.4.14#64029)