You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Pranay akula <pr...@gmail.com> on 2017/07/06 04:50:22 UTC
Does select queries objects will be allocated in new_heap ??
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 ??
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 ??
Is there any document available correlating queries and heap objects.
Thanks
Pranay.
Re: Does select queries objects will be allocated in new_heap ??
Posted by Jeff Jirsa <jj...@apache.org>.
On 2017-07-05 21:50 (-0700), Pranay akula <pr...@gmail.com> 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