From dev-return-25572-archive-asf-public=cust-asf.ponee.io@atlas.apache.org Fri Aug 10 06:10:04 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 5A866180676 for ; Fri, 10 Aug 2018 06:10:04 +0200 (CEST) Received: (qmail 39689 invoked by uid 500); 10 Aug 2018 04:10:03 -0000 Mailing-List: contact dev-help@atlas.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@atlas.apache.org Delivered-To: mailing list dev@atlas.apache.org Received: (qmail 39678 invoked by uid 99); 10 Aug 2018 04:10:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Aug 2018 04:10:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id CEB841A009F for ; Fri, 10 Aug 2018 04:10:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.001 X-Spam-Level: X-Spam-Status: No, score=-109.001 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id y5QOhSSQw0cw for ; Fri, 10 Aug 2018 04:10:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 5222F5F11F for ; Fri, 10 Aug 2018 04:10: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 89DF8E070F for ; Fri, 10 Aug 2018 04:10: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 243B123F98 for ; Fri, 10 Aug 2018 04:10:00 +0000 (UTC) Date: Fri, 10 Aug 2018 04:10:00 +0000 (UTC) From: "Apoorv Naik (JIRA)" To: dev@atlas.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ATLAS-2816) Allow ignoring relationship in EntityGraphRetriever for FullTextMapperV2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ATLAS-2816?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1657= 5740#comment-16575740 ]=20 Apoorv Naik commented on ATLAS-2816: ------------------------------------ One suggestion, use the followReferences flag instead of hardcoding the ign= oreRelationship param. This would make is easier to toggle if certain deplo= yment scenario wants to use the relationship details to be captured in the = entityText. =C2=A0 HTH > Allow ignoring relationship in EntityGraphRetriever for FullTextMapperV2 > ------------------------------------------------------------------------ > > Key: ATLAS-2816 > URL: https://issues.apache.org/jira/browse/ATLAS-2816 > Project: Atlas > Issue Type: Bug > Affects Versions: 1.0.0 > Reporter: Chengbing Liu > Priority: Major > Attachments: ATLAS-2816.01.patch > > > We encountered a problem when using Hive bridge in production. One databa= se has 5000+ tables. Importing the first table costs only tens of milliseco= nds, and then it becomes slower with more tables. In the end, it costs 1~2 = seconds to import one table. > After investigation, we realized that it is not necessary for the {{FullT= extMapperV2}} to retrieve all the relationship of the database each time a = table is imported. The time complexity of importing a whole database actual= ly goes to O(n^2) (n is number of tables). > We propose to add a parameter to the constructor of {{EntityGraphRetrieve= r}}: {{ignoreRelationship}}. When set to true, {{mapVertexToAtlasEntity}} w= ill skip the {{mapRelationshipAttributes}} call. Since {{FullTextMapperV2}}= will not use relationship attributes of the entity, this can save plenty o= f time when importing entities with a large number of relations. -- This message was sent by Atlassian JIRA (v7.6.3#76005)