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 66A7F200CCB for ; Thu, 6 Jul 2017 07:19:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 64D6B1655CC; Thu, 6 Jul 2017 05:19:11 +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 AB9621655C9 for ; Thu, 6 Jul 2017 07:19:10 +0200 (CEST) Received: (qmail 31359 invoked by uid 500); 6 Jul 2017 05:19:09 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 31350 invoked by uid 99); 6 Jul 2017 05:19:09 -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; Thu, 06 Jul 2017 05:19:09 +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 A46FDD279E for ; Thu, 6 Jul 2017 05:19:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.01 X-Spam-Level: X-Spam-Status: No, score=-0.01 tagged_above=-999 required=6.31 tests=[FROM_MISSPACED=0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] 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 Pr4lrgMOe6mL for ; Thu, 6 Jul 2017 05:19:08 +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 163B15FC4D for ; Thu, 6 Jul 2017 05:19:08 +0000 (UTC) Received: from localhost (cust-asf.ponee.io [163.172.22.183]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 2EC55E0059 for ; Thu, 6 Jul 2017 05:19:07 +0000 (UTC) MIME-Version: 1.0 Message-ID: Subject: Re: Does select queries objects will be allocated in new_heap ?? References: From: "Jeff Jirsa" In-Reply-To: Content-Type: text/plain; charset="iso-8859-1" x-ponymail-sender: cb367aa5aed1991b197e48bcdd89864c2a894a70 Date: Thu, 06 Jul 2017 05:19:06 -0000 x-ponymail-agent: PonyMail Composer/0.2 To: X-Mailer: LuaSocket 3.0-rc1 archived-at: Thu, 06 Jul 2017 05:19:11 -0000 On 2017-07-05 21:50 (-0700), Pranay akula wrote: > Hai, > > I have a small doubt i am not much familiar with java, so when a select or > insert query is executed against a node does the output of that query will > be stored in heap ?? > SELECT will create a number of short-lived objects on the heap, yes, but it's not like the memtable - there is not a read-side memtable. Most of the objects are transient and should be collected before being promoted to old gen. There are some exceptions - the key and partition caches are counterexamples. > For insert query the output will stored in Memtables will is part on > new_heap right ?? does select and other queries also use the new_heap or > just writes ?? > Just writes. > Is there any document available correlating queries and heap objects. > Very much version dependent, there are some great videos around about the read path - Tyler's is probably as authoritative as you'll find https://www.youtube.com/watch?v=HuDJBTPdaOA --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@cassandra.apache.org For additional commands, e-mail: user-help@cassandra.apache.org