Questions tagged [phpcassa]

phpcassa is a PHP client library (port of pycassa) for Apache Cassandra

phpcassa is a PHP client library for Apache Cassandra.

  • Compatible with Cassandra 0.7, 0.8, 1.0, and 1.1
  • Optional C extension for improved performance

phpcassa is compatible with PHP 5.3+

phpcassa is open source under the MIT license.

95 questions
23
votes
1 answer

play framework 2 performance issues on virtual machine

I have recently implemented a very tiny Cassandra web application on both PHP and play frameworks to compare these technologies. I'm running these tests on a virtual machine that has ubuntu-server in it. In both PHP and play framework applications,…
aacanakin
  • 2,844
  • 4
  • 25
  • 42
6
votes
2 answers

Selective get in cassandra faster than normal get?

I'd like to know if this: $column_family->get('row_key', $columns=array('name1', 'name2')); Is faster then the more flexible get i now use: $column_family->get('row_key'); Method 1 is harder to implement of course but will it give less…
Writecoder
  • 613
  • 2
  • 8
  • 27
6
votes
3 answers

Cassandra (CQL) select statement with 'where' is not working

I am using Cassandra last few days. I am using PHPCassa library for that. When I am trying to use the following code, Its not working correctly. require_once('phpcassa/connection.php'); require_once "phpcassa/columnfamily.php"; // Create new…
phpqa.in
  • 589
  • 3
  • 8
  • 16
6
votes
1 answer

Snowflake key algorithm in PHP using PHPCassa

Possible Duplicate: how to have 64 bit integer on PHP? Is it possible to use a 64-bit Long integer as a key in Cassandra using PHPCassa? For example, $pool = new ConnectionPool('main', array("127.0.0.1")); $table = new ColumnFamily($pool,…
user1359680
  • 144
  • 5
5
votes
1 answer

phpcassa connection pools

I've got a data access class that sets up three phpcassa connection pools on instantiation like this: try { $this->cache = new ConnectionPool( BSCACHE_KEYSPACE, explode(',', BSCACHE_SERVERS), null, null, null, null, null, array( …
codemonkey
  • 2,661
  • 2
  • 24
  • 34
5
votes
1 answer

Single Keyspace or Multiple Keyspace in cassandra datamodel

Which one is best for managing data by using single keyspace or Multiple Keyspace , Suppose one application having more number of clients. Each client will send large set of data and we are storing data in time series column If i go for individual…
kannadhasan
  • 339
  • 4
  • 17
5
votes
2 answers

Cassandra convert UUID to string and back

If i use UUID1 for my column names and then retrieve them with php how can i convert that UUID to readable string so i could insert that string to the HTML and then later on use it to select that same column by converting that string back to UUID?…
Linas
  • 4,380
  • 17
  • 69
  • 117
4
votes
1 answer

Getting value from a key type TimeUUID in Cassandra-PHP

I'm new in cassandra and I wanna get the values from a column family, where the key is a TimeUUIDType. I'm using PHP with PHPCassa, and I can insert(set) correctly in the column family, generating uuid with the function: $key =…
Rodrigo Gauzmanf
  • 2,517
  • 1
  • 23
  • 26
4
votes
1 answer

UUID cassandra sorting?

Lets say i have an user column family with unique keyname + preset for specific client I can select them by secondary indexes etc like: (birthday example from…
Writecoder
  • 613
  • 2
  • 8
  • 27
4
votes
1 answer

Migrating cassandra and phpcassa

i'm trying to migrate my old version from cassandra 1.2.8 to cassandra 2.1, i use phpcassa 0.8, when i migrated cassandra everything worked fine, exept that i was not able to use: $columnFamily->get($key); I can perfectly write and do…
Miton Leon
  • 274
  • 1
  • 5
  • 15
4
votes
1 answer

Cassandra performance

I have read all these articles about how fast cassandra can be, for example single row read can take about 5ms. So far i didn't care to much about my website speeds, but as the site grew bigger some pages started to require quite a few queries, for…
Linas
  • 4,380
  • 17
  • 69
  • 117
4
votes
2 answers

How to get all column names of a row in cassandra using phpcassa?

I want to get all column names of a row in cassandra , how can I do it in phpcassa? If phpcassa does not support it, does any other language, libs can do it? In my case, column names are short, but rows are long(around 1000+),data are big(around…
oupfevph
  • 103
  • 3
3
votes
2 answers

Multiget query to cassandra with phpcassa

I am firing the multiget query with 330 keys and 750 columns per row. Its dying somewhere in the phpcassa code.The worst thing is, its not throwing any exception. Script is getting terminated abruptly.Is there any setting I should do ? Its working…
MANISH ZOPE
  • 1,181
  • 1
  • 11
  • 28
3
votes
4 answers

PHP client that supports .7 Cassandra?

I looked into Cassandra Wrapper, but the download from a blog that claimed to update the client was missing files. Anyone gotten PHPcassa or another client to work with .7 beta of Cassandra?
user375566
3
votes
1 answer

Cassandra hangs on arbitrary commands

We're hosting Cassandra 2.0.2 cluster on AWS. We've recently started upgrading from normal to SSD drives, by bootstrapping new and decommissioning old nodes. It went fairly well, aside from two nodes hanging forever on decommission. Now, after the…
user2750477
  • 91
  • 1
  • 9
1
2 3 4 5 6 7