kallaspriit / Cassandra-PHP-Client-Library

Cassandra PHP-based client library for managing and querying your Cassandra cluster
http://cassandra-php-client-library.com
103 stars 25 forks source link

How to use Order preserve partition #28

Open bainsy24 opened 11 years ago

bainsy24 commented 11 years ago

Hello,

i have the following code below:

$eight = $cassandra->cf('properties')->getWhere(array(array('price', Cassandra::OP_LT, 500))); foreach ($eight as $key => $value) { echo "ID: " . $value['id']; echo "postcode: " . $value['postcode']; echo "Price: " . $value['price']; } However the only operator which works is OP_EQ...i have researched and apparently it has something to do with order preserve partitioning...I am new to cassandra and any help would be brilliant

Thanks