I can't reproduce with this, there is too much unspecified.  (What is
a Document?  How do I get one?)

Attached is a short program that successfully does 100k supercolumn
inserts against a default configuration.  Can you create a program
like this for me to run?  (Java is fine; Python is just more concise.)

-Jonathan

On Thu, May 28, 2009 at 11:03 AM, Alexandre Linares <[email protected]> wrote:
> Jonathan, sorry for the lengthy emails! Hope this one's more readable.
>
> So I'm fairly convinced it's not a Cassandra-side configuration problem; at
> least not one that entails tweaking the object count threshold or the
> memtable size.
>
> Given the client code at http://pastie.org/492753 :
>
from thrift.transport import TTransport
from thrift.transport import TSocket
from thrift.transport import THttpClient
from thrift.protocol import TBinaryProtocol

from cassandra import Cassandra
from cassandra.ttypes import batch_mutation_t, batch_mutation_super_t, superColumn_t, column_t, NotFoundException, InvalidRequestException


socket = TSocket.TSocket('localhost', 9160)
transport = TTransport.TBufferedTransport(socket)
protocol = TBinaryProtocol.TBinaryProtocol(transport)
client = Cassandra.Client(protocol)
transport.open()


for i in xrange(100000):
    doc_id = str(i)
    columns = [column_t('header', 'x'*1024, 0)]
    cfmap = {'Super1': [superColumn_t(doc_id, columns)]}
    client.batch_insert_superColumn(batch_mutation_t('Table1', doc_id, cfmap), True)
    print i

Reply via email to