<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>DataStax Support Forums &#187; Tag: read - Recent Posts</title>
		<link>http://www.datastax.com/support-forums/tags/read</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Tue, 21 May 2013 20:38:49 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.3</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.datastax.com/support-forums/search.php</link>
		</textInput>
		<atom:link href="http://www.datastax.com/support-forums/rss/tags/read" rel="self" type="application/rss+xml" />

		<item>
			<title>Anonymous on "Cassandra Read &#38; Write Performance Matrix"</title>
			<link>http://www.datastax.com/support-forums/topic/cassandra-read-write-performance-matrix#post-2241</link>
			<pubDate>Wed, 20 Jun 2012 13:03:05 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">2241@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;I am doing a comparison test between Cassandra and MS SQL. I have only one table/column family with 10 columns in it. I am trying to calculate the transaction per second Cassandra and MS SQL execute. While writing the data Cassandra process 5000 - 7000 transactions per second and MS SQL 70 - 90 transactions per second.&#60;/p&#62;
&#60;p&#62;While reading the data Cassandra only process 500 - 700 transactions per second and MS SQL 3000 - 6000 transactions per second which is unexpected for me. I was expecting Cassandra to be faster than MS SQL both in case of reading and writing.&#60;/p&#62;
&#60;p&#62;In case of Cassandra, I have 3 nodes cluster running remotly and MS SQL also running remotly.  You can find the code below. I am using the same code for MS SQL and Cassandra&#60;/p&#62;
&#60;p&#62;for(int i=0;i&#38;lt;BenchmarkConfig.insertData;i++)&#60;/p&#62;
&#60;p&#62;{&#60;/p&#62;
&#60;p&#62;orderId = Generate Radom ID;&#60;/p&#62;
&#60;p&#62;rs = statement.executeQuery(&#34;Select * From ABC where KEY = &#34;+orderId);&#60;/p&#62;
&#60;p&#62;}&#60;/p&#62;
&#60;p&#62;Can you please help me out why reading is that much slow in Cassandra ? To save the time to investigate I am using Random Partitioner for equal distribution and incase of reading, I have not specified any consistency level by default which is 1.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>albertnices on "stress tool can&#039;t read"</title>
			<link>http://www.datastax.com/support-forums/topic/stress-tool-cant-read#post-1408</link>
			<pubDate>Wed, 21 Mar 2012 10:02:25 +0000</pubDate>
			<dc:creator>albertnices</dc:creator>
			<guid isPermaLink="false">1408@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;If you have lots of problem from stress just take meditation 5-10 min after that you feel very well.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "stress tool can&#039;t read"</title>
			<link>http://www.datastax.com/support-forums/topic/stress-tool-cant-read#post-1323</link>
			<pubDate>Wed, 07 Mar 2012 13:45:15 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1323@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Did you try -o read -n 100000?  The issue isn't that you were trying to read with a different n, it's that you were trying to read with an n which has a different order of magnitude.  When trying to read -n 1, see that it was trying to read key 0?  That key doesn't exist from a -n 100000 insert, since it will have only inserted keys 000000-099999.&#60;/p&#62;
&#60;p&#62;To explain it more generally and without so many confusing sets of zeroes...&#60;br /&#62;
If you go into Data Explorer in OpsCenter, or simply do a list CF in cassandra-cli, you'll see that each key generated by a -o insert -n x will have the same number of digits as x does.  This is the problem you're running into when trying to -o read -n y.  If y doesn't have the same number of digits as x, the read will fail as it's trying to access keys that don't exist.&#60;/p&#62;
&#60;p&#62;In general, you'll want to only use the stress -o read with the same -n you used during the insert.  The farthest you can deviate from this would be to -o insert -n 9999 and then -o read -n 1000 (And similar 9...9-&#38;gt;100...0 patterns), since they have the same number of digits they will both be accessing the same keys.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "stress tool can&#039;t read"</title>
			<link>http://www.datastax.com/support-forums/topic/stress-tool-cant-read#post-1319</link>
			<pubDate>Wed, 07 Mar 2012 09:54:57 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1319@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Well I did not know that but even with a&#60;br /&#62;
stress -d 127.0.0.1 -o read -n 1 it does not work:&#60;/p&#62;
&#60;p&#62;total,interval_op_rate,interval_key_rate,avg_latency,elapsed_time&#60;br /&#62;
Operation [0] retried 10 times - error reading key 0&#60;/p&#62;
&#60;p&#62;0,0,0,NaN,0&#60;br /&#62;
END&#60;/p&#62;
&#60;p&#62;I'm sure data are in the DB.&#60;/p&#62;
&#60;p&#62;thx
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "stress tool can&#039;t read"</title>
			<link>http://www.datastax.com/support-forums/topic/stress-tool-cant-read#post-1304</link>
			<pubDate>Tue, 06 Mar 2012 13:43:42 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1304@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;stress -d 127.0.0.1 -n 100000&#60;br /&#62;
will write rows with key values 000000-099999, when you then do&#60;br /&#62;
stress -d 127.0.0.1 -o read&#60;br /&#62;
without a -n, it is defaulting to -n 1000000, which will try to read keys 0000000-0999999 (notice the extra digit).  Switch your stress read to:&#60;br /&#62;
stress -d 127.0.0.1 -o read -n 100000&#60;br /&#62;
and see if that works for you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "stress tool can&#039;t read"</title>
			<link>http://www.datastax.com/support-forums/topic/stress-tool-cant-read#post-1302</link>
			<pubDate>Tue, 06 Mar 2012 08:33:34 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1302@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Hello I have a problem with the stress tool.&#60;br /&#62;
I've played this:&#60;br /&#62;
stress -d 127.0.0.1 -n 100000&#60;br /&#62;
no problem&#60;br /&#62;
then I do stress -d 127.0.0.1 -o read&#60;br /&#62;
and here I have many error messages like this one:&#60;br /&#62;
Operation [15] retried 10 times - error reading key 0526289&#60;br /&#62;
and at the end:&#60;br /&#62;
0,0,0,NaN,2&#60;/p&#62;
&#60;p&#62;I'm running cassandra 1.0.8 under debian suqeeze and java 1.6.&#60;/p&#62;
&#60;p&#62;Does it should work?&#60;/p&#62;
&#60;p&#62;thx
&#60;/p&#62;</description>
		</item>
		<item>
			<title>thobbs on "Cassandra Read &#38; Write Performance Matrix"</title>
			<link>http://www.datastax.com/support-forums/topic/cassandra-read-write-performance-matrix#post-1094</link>
			<pubDate>Tue, 07 Feb 2012 17:39:28 +0000</pubDate>
			<dc:creator>thobbs</dc:creator>
			<guid isPermaLink="false">1094@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;What client are you using to do the read?  What are you reading (one row, all 100 rows)?  How are you measuring how long it takes?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "Cassandra Read &#38; Write Performance Matrix"</title>
			<link>http://www.datastax.com/support-forums/topic/cassandra-read-write-performance-matrix#post-1092</link>
			<pubDate>Tue, 07 Feb 2012 11:43:41 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1092@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;hi all,&#60;/p&#62;
&#60;p&#62;i am new to Cassandra&#60;br /&#62;
currently i am configured Cassandra 0.8.6 with single node in a unix server.&#60;br /&#62;
setting Cassandra JVM memory 512 and max 1024 and remaining as usual default settings.&#60;/p&#62;
&#60;p&#62;i had inserted some sample data with 3 columns around 100 rows.&#60;br /&#62;
i checked that it takes around 2900 milliseconds for reading.&#60;/p&#62;
&#60;p&#62;can any one tell what should be the read and write time with a single node cluster that Cassandra Specs says.&#60;br /&#62;
As in other RDBMS idle read and write should not take more than 50 milli seconds.&#60;/p&#62;
&#60;p&#62;what are the things in need to cross check to improve my Cassandra Performance?&#60;/p&#62;
&#60;p&#62;we are currently evaluating Cassandra for our data storage.&#60;/p&#62;
&#60;p&#62;Thanks in advance
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
