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 4A45F200D0E for ; Tue, 26 Sep 2017 20:33:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 48C1A1609D7; Tue, 26 Sep 2017 18:33:04 +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 8FF9B1609C4 for ; Tue, 26 Sep 2017 20:33:03 +0200 (CEST) Received: (qmail 54526 invoked by uid 500); 26 Sep 2017 18:33:02 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 54515 invoked by uid 99); 26 Sep 2017 18:33:02 -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; Tue, 26 Sep 2017 18:33:02 +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 4399C1A1C24 for ; Tue, 26 Sep 2017 18:33:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id H7w1y-sx_eXt for ; Tue, 26 Sep 2017 18:33:01 +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 4D0AF5FDBC for ; Tue, 26 Sep 2017 18:33: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 BD2CDE0373 for ; Tue, 26 Sep 2017 18:33: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 0EF3524256 for ; Tue, 26 Sep 2017 18:33:00 +0000 (UTC) Date: Tue, 26 Sep 2017 18:33:00 +0000 (UTC) From: "xin jin (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CASSANDRA-13904) Performance improvement of Cassandra UDF/UDA MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 26 Sep 2017 18:33:04 -0000 xin jin created CASSANDRA-13904: ----------------------------------- Summary: Performance improvement of Cassandra UDF/UDA Key: CASSANDRA-13904 URL: https://issues.apache.org/jira/browse/CASSANDRA-13904 Project: Cassandra Issue Type: Improvement Components: CQL Reporter: xin jin Priority: Critical Fix For: 3.11.x Hi All, We have made a few experiments and found that running query with direct UDF= execution is ten time more faster than the async UDF execution. The in-lin= e comment: "Using async UDF execution is expensive (adds about 100us overhe= ad per invocation on a Core-i7 MBPr)=E2=80=9D https://insight.io/github.com= /apache/cassandra/blob/trunk/src/java/org/apache/cassandra/cql3/functions/U= DFunction.java?line=3D293 show that this is a known behavior. My questions= are as below: 1. What are the main pros and cons of these two methods? Can I find any doc= uments that discuss this? =20 2. Are there any plans to improve the performance of using async UDF? A sim= ple way come to my mind is to use some sort of batch method, e.g., replace = current row by row method with some rows by some rows. Are there any concer= ns on this? 3. How people solve this performance issue in general? It seems this perfor= mance issue is not an urgent or an important issue to solve because it is k= nown and it is still there. Therefore people must have some sort of good so= lution solving this issue.=20 I really appreciate your comments in advance. Best regards, Xin -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org For additional commands, e-mail: commits-help@cassandra.apache.org