You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.
I'm running the following query using v1.0.a.5 on cassandra 1.0.3
$handle = new ColumnFamily($conn, 'transactions');
$handle->return_format = ColumnFamiliy::ARRAY_FORMAT;
$indexExpr = new IndexExpression('userID', 39);
$indexClause = new IndexClause(array($indexExpr), '', 5000);
$rows = $handle->get_indexed_slices($IndexClause);
$rows should return only ~250 results for that specific userID, instead it returns 5000 records (the count value for the index clause).
It basically duplicates the valid 250 rows until it fills the 5000 limit.
I came to that conclusion by digging into IndexedColumnFamilyIterator and writing the $current_buffer to file during a request
and then checking the primary keys for all those records on a first pass, then checking the serialized footprint for each row on a second pass.
As I said, only ~250 records are unique.
Is there something wrong with my query? Is it phpcassa or a cassandra bug?
Thank you very much!
The text was updated successfully, but these errors were encountered:
I'm running the following query using v1.0.a.5 on cassandra 1.0.3
$handle = new ColumnFamily($conn, 'transactions');
$handle->return_format = ColumnFamiliy::ARRAY_FORMAT;
$indexExpr = new IndexExpression('userID', 39);
$indexClause = new IndexClause(array($indexExpr), '', 5000);
$rows = $handle->get_indexed_slices($IndexClause);
$rows should return only ~250 results for that specific userID, instead it returns 5000 records (the count value for the index clause).
It basically duplicates the valid 250 rows until it fills the 5000 limit.
I came to that conclusion by digging into IndexedColumnFamilyIterator and writing the $current_buffer to file during a request
and then checking the primary keys for all those records on a first pass, then checking the serialized footprint for each row on a second pass.
As I said, only ~250 records are unique.
Is there something wrong with my query? Is it phpcassa or a cassandra bug?
Thank you very much!
The text was updated successfully, but these errors were encountered: