Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Keyspace Name="Test">
- <ColumnFamily Name="Aho1" />
- <ColumnFamily Name="Aho2" />
- <ReplicaPlacementStrategy>org.apache.cassandra.locator.RackUnawareStrategy</ReplicaPlacementStrategy>
- <ReplicationFactor>1</ReplicationFactor>
- <EndPointSnitch>org.apache.cassandra.locator.EndPointSnitch</EndPointSnitch>
- </Keyspace>
- <ReplicaPlacementStrategy>org.apache.cassandra.locator.RackUnawareStrategy</ReplicaPlacementStrat\
- egy>
- <ReplicationFactor>1</ReplicationFactor>
- <EndPointSnitch>org.apache.cassandra.locator.EndPointSnitch</EndPointSnitch>
- </Keyspace>
- import jp.wota.scalamapper.storage._
- val aho1 = new StandardStorage("127.0.0.1", 9160, "Test", "Aho1")
- val aho2 = new StandardStorage("127.0.0.1", 9160, "Test", "Aho2")
- val rows = (1 to 1000000) map (_.toString)
- for(row <- rows) aho1.set(row, "a", "1")
- for(row <- rows) aho2.set(row, "LongNameKey", "1")
- drain
- irb -r rubygems -r active_support
- Dir.glob("Aho1-*").map{|i| File.size(i)}.sum
- Dir.glob("Aho2-*").map{|i| File.size(i)}.sum
- 256344054
- 286344054
- import jp.wota.scalamapper.storage._
- val aho1 = new StandardStorage("127.0.0.1", 9160, "Test", "Aho1")
- val aho2 = new StandardStorage("127.0.0.1", 9160, "Test", "Aho2")
- val rows = (1 to 1000000) map (_.toString)
- val keys1 = (0 to 9) map(_.toString)
- val keys2 = (0 to 9) map("LongNameKe" + _.toString)
- for(row <- rows; key <-keys1) aho1.set(row, key, "1")
- for(row <- rows; key <-keys2) aho2.set(row, key, "1")
- 418982686
- 922140428
Add Comment
Please, Sign In to add comment