cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DENIZ <nilgree...@gmail.com>
Subject YNT: Storing PDF data on Cassandra db
Date Wed, 14 Jan 2015 08:18:52 GMT
Hi ,
I have checked http://cassandra.apache.org The latest release is 2.1.2 .Do you know when will
The 3.0 release be available?

Thanks in advance

-----Orijinal İleti-----
Kimden: "Jonathan Haddad" <jon@jonhaddad.com>
Gönderme tarihi: ‎13.‎1.‎2015 16:26
Kime: "user@cassandra.apache.org" <user@cassandra.apache.org>
Konu: Re: Storing PDF data on Cassandra db

For a new user, there's no point in learning Thrift if that user intends on upgrading past
the version that they start with.  Thrift is a deprecated protocol and there's no new functionality
going into it.  In 3.0 the sstable format is being upgraded to work primarily with native
CQL partitions / rows and have a translation layer to work with thrift for compatibility.



If you're simply storing k->v there's no reason (or advantage) to thrift over CQL.


CREATE TABLE pdf ( pdf_id uuid primary key, content blob );


will work just fine.  Adding additional fields as the system changes is convenient and works
with any tool that reads CQL and won't require custom deserialization or any other nonsense.
 


Jon


On Tue Jan 13 2015 at 6:14:10 AM Peter Lin <woolfel@gmail.com> wrote:



you want to store the raw bytes, so look at examples for saving raw bytes.


I generally recommend using Thrift if you're going to do a lot of read/write of binary data.
CQL is good for primitive types, and maps/lists of primitive types. I'm bias, but it's simpler
and easier to use thrift for storing file attachments.



On Tue, Jan 13, 2015 at 8:58 AM, DENIZ <nilgreen35@gmail.com> wrote:

Hi All,

I want to store PDF documents on Cassandra db.What is the best way to store this type of data
on Cassandra.How can I insert and select PDF file to the database.If possible can you explain
with sample CQL statements

Thanks in Advance
Nil
Mime
View raw message