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 8D022200C2A for ; Wed, 15 Feb 2017 00:31:46 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 8BA25160B6D; Tue, 14 Feb 2017 23:31:46 +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 DDCEE160B5F for ; Wed, 15 Feb 2017 00:31:45 +0100 (CET) Received: (qmail 55450 invoked by uid 500); 14 Feb 2017 23:31:45 -0000 Mailing-List: contact issues-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.apache.org Delivered-To: mailing list issues@nifi.apache.org Received: (qmail 55430 invoked by uid 99); 14 Feb 2017 23:31:45 -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; Tue, 14 Feb 2017 23:31:45 +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 7DD73C04F1 for ; Tue, 14 Feb 2017 23:31:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.198 X-Spam-Level: X-Spam-Status: No, score=-1.198 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 6ZkLIqN8CdNL for ; Tue, 14 Feb 2017 23:31:43 +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 BF5215FBAE for ; Tue, 14 Feb 2017 23:31:42 +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 0550AE0740 for ; Tue, 14 Feb 2017 23:31:42 +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 B1F8E2411F for ; Tue, 14 Feb 2017 23:31:41 +0000 (UTC) Date: Tue, 14 Feb 2017 23:31:41 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@nifi.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (NIFI-3268) Add AUTO_INCREMENT column in GenerateTableFetch to benefit index MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 14 Feb 2017 23:31:46 -0000 [ https://issues.apache.org/jira/browse/NIFI-3268?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D15866= 922#comment-15866922 ]=20 ASF GitHub Bot commented on NIFI-3268: -------------------------------------- Github user qfdk commented on a diff in the pull request: https://github.com/apache/nifi/pull/1376#discussion_r101170880 =20 --- Diff: nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processor= s/src/main/java/org/apache/nifi/processors/standard/GenerateTableFetch.java= --- @@ -87,6 +87,18 @@ .addValidator(StandardValidators.NON_NEGATIVE_INTEGER_VALI= DATOR) .build(); =20 + public static final PropertyDescriptor AUTO_INCREMENT_KEY =3D new = PropertyDescriptor.Builder() + .name("gen-table-fetch-partition-index") + .displayName("AUTO_INCREMENT(index) column name") + .description("The column has AUTO_INCREMENT attribute and = index." + + "If there is a column with AUTO_INCREMENT proper= ty and index in the database, we can use index instead of using OFFSET." + + "The value must start by 1") + .defaultValue("null") + .addValidator(StandardValidators.NON_EMPTY_VALIDATOR) + .required(true) --- End diff -- =20 I agree with you. I will change it =F0=9F=91=8D=20 > Add AUTO_INCREMENT column in GenerateTableFetch to benefit index > ---------------------------------------------------------------- > > Key: NIFI-3268 > URL: https://issues.apache.org/jira/browse/NIFI-3268 > Project: Apache NiFi > Issue Type: Improvement > Components: Core Framework > Affects Versions: 1.1.1 > Environment: - ubuntu 16.04 > - java version "1.8.0_111" > - Java(TM) SE Runtime Environment (build 1.8.0_111-b14) > - Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode) > Reporter: qfdk > Labels: easyfix > Fix For: 1.2.0 > > > I added AUTO_INCREMENT column in GenerateTableFetch to benefit index col= umn > By default this processor uses OFFSET, i have problems with large data. = somme column has index so we could use index to speed up query time. > I posted question here : > https://community.hortonworks.com/questions/72586/how-can-i-use-an-array-= with-putelasticsearch.html > If you indexed un column (id), you could use this sql > ``` > select xxx > From xxxxx > where 200000=3D>id > order by id > limit 200000 > ``` > =E2=80=9COFFSET is bad for skipping previous rows.=E2=80=9D [Online]. Ava= ilable: http://Use-The-Index-Luke.com/sql/partial-results/fetch-next-page. = [Accessed: 27-Dec-2016]. > Thank you in advance -- This message was sent by Atlassian JIRA (v6.3.15#6346)