phpcassa
phpcassa copied to clipboard
batch_insert and CompositeType
What is the syntax to batch_insert into a Composite RowKey?
On regular Insert the key is array of values. No problem there.
I've tried: serialize( array(1,2)) as KEY
CF CompisiteType (LongInt,LongInt)
It does insert into '0' RowKey.
What are you using for your $column_family->insert_format
? Here's an example of batch_insert using ARRAY_FORMAT: https://github.com/thobbs/phpcassa/blob/master/examples/alternate_formats.php#L57
Insert format is ARRAY_FORMAT. I'm using 1.0.a.5 version
Thank you for the refrence.
I'll give it another try. It seems pretty straight forward. Don't know why I had issues.
Example shows batch_insert() on a NON-Composite RowKey type. No Help. I have this figured out.
I can't figure out how to batch insert into a CompositeType RowKey (LongType,IntegerType).
I've tried to make the key:
- KEY = '12334:123'
- KEY = array(12334,123)
- KEY = '12334,123'
- KEY = serialize( array(12334,123) ) .... all with no luck.
I don't know why my text is bold.