Return-Path: X-Original-To: apmail-cassandra-dev-archive@www.apache.org Delivered-To: apmail-cassandra-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2E53F9241 for ; Fri, 13 Jan 2012 16:54:09 +0000 (UTC) Received: (qmail 76749 invoked by uid 500); 13 Jan 2012 16:54:08 -0000 Delivered-To: apmail-cassandra-dev-archive@cassandra.apache.org Received: (qmail 76583 invoked by uid 500); 13 Jan 2012 16:54:07 -0000 Mailing-List: contact dev-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list dev@cassandra.apache.org Received: (qmail 76567 invoked by uid 99); 13 Jan 2012 16:54:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jan 2012 16:54:06 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jakers@gmail.com designates 209.85.210.44 as permitted sender) Received: from [209.85.210.44] (HELO mail-pz0-f44.google.com) (209.85.210.44) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jan 2012 16:54:00 +0000 Received: by dadq14 with SMTP id q14so535263dad.31 for ; Fri, 13 Jan 2012 08:53:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=yexM8B1uFJFUwPmJJ5MseoUukVxjZKyv8vS0nufVaMM=; b=J5++zSt2qQ95XbG8pBWw9iCdD3epql+cwt+5TdL3T9Wh23nC+uimbjBGMRRNmp/Row U1vfMQeTiFq8njKYrehzRv058p4n7kTaXzG6ZyuzzHhVpcOi3sORO70a5jTGKAHULG6+ ivDA22WkWJuvvidHGxxoix+JKmqV4vGcGOtfg= Received: by 10.68.72.73 with SMTP id b9mr3040932pbv.67.1326473619207; Fri, 13 Jan 2012 08:53:39 -0800 (PST) MIME-Version: 1.0 Received: by 10.142.12.6 with HTTP; Fri, 13 Jan 2012 08:53:18 -0800 (PST) In-Reply-To: References: From: Jake Luciani Date: Fri, 13 Jan 2012 11:53:18 -0500 Message-ID: Subject: Re: Prepared Statement support (CASSANDRA-2475) To: dev@cassandra.apache.org Content-Type: multipart/alternative; boundary=f46d040f9b98e0753a04b66bb4ca X-Virus-Checked: Checked by ClamAV on apache.org --f46d040f9b98e0753a04b66bb4ca Content-Type: text/plain; charset=ISO-8859-1 Not to mention in the case of CFS we deal only in binary blobs. I'd rather see us add a hex hack for JS and PHP rather then cater to them. -Jake On Fri, Jan 13, 2012 at 11:42 AM, Sylvain Lebresne wrote: > I think CQL has a problem, it doesn't deal with binary correctly. > I have very successfully used C* to store big amounts of small > pictures and CQL just cannot handle that efficiently. > > I've looked quickly but I didn't see anywhere in the tests on > CASSANDRA-3634 biggish column values tested (say in the order of 2-3 > digits of KB). I'm willing to bet that with that, the difference is > not 10%, because there is the time to serialize/deserialize to string, > but also the exploded size of binary represented as hex strings. > > I think prepared statement are a very good candidate to solve that > 'handling binary correctly' problem, but only if we use binary for it. > To me that is *very* big argument against Strings. Sure we could add > yet another feature (or some hack) to handle binary, but why bother > when prepared statement with binary gives us that *and* we get 10% > faster writes even for small values. > > -- > Sylvain > > > On Fri, Jan 13, 2012 at 5:01 PM, Jonathan Ellis wrote: > > On Fri, Jan 13, 2012 at 9:45 AM, Tyler Hobbs wrote: > >> On Fri, Jan 13, 2012 at 8:11 AM, Gary Dusbabek > wrote: > >> > >>> > >>> Not all languages Javascript make it easy to do binary. > >> > >> > >> PHP also goes in this boat, which leads me to agree with Gary. > > > > I don't get it. Don't you already have the binary encoding done for > > the PHPCassa? > > > > -- > > Jonathan Ellis > > Project Chair, Apache Cassandra > > co-founder of DataStax, the source for professional Cassandra support > > http://www.datastax.com > -- http://twitter.com/tjake --f46d040f9b98e0753a04b66bb4ca--