Re: Maximum Row Limit

2015-08-24 Thread Andrew Tolbert
Hello Mangeet, According to CassandraLimitations http://wiki.apache.org/cassandra/CassandraLimitations the maximum cells per Partition key is 2 billion: - The maximum number of cells (rows x columns) in a single partition is 2 billion. Therefore the maximum number of rows per

Re: Authentication with Java driver

2017-02-07 Thread Andrew Tolbert
Hello, The API seems kind of not correct because credentials should be > usually set with a session but actually they are set with a cluster. > With the datastax driver, Session is what manages connection pools to each node. Cluster manages configuration and a separate connection ('control

Re: How to define blob column in Java?

2016-09-11 Thread Andrew Tolbert
Hi Alexandr, I am assuming you are referring to the @Table annotation in the mapping module in the Datastax Java Driver for Apache Cassandra (please correct me if I am wrong). You can achieve this with any of these three types using a custom codec

Re: Running Cassandra in Integration Tests

2016-10-06 Thread Andrew Tolbert
Hi Ali, cassandra-unit might be what you are looking for. It allows you to run an embedded cassandra instance along side your tests and has some nice integration with JUnit. Thanks, Andy On Thu, Oct 6, 2016 at 7:13 PM Ali Akhtar

Re: Re : Generic keystore when enabling SSL

2016-09-20 Thread Andrew Tolbert
e're using 3rd party signed certificates, and want to avoid > the hassle of managing 100's of certificates. > > thanks > Sai > -- [image: DataStaxLogo copy3.png] <http://www.datastax.com/> Andrew Tolbert Software Engineer in Test | (612)-222-6271 | andrew.tolb...@datastax.com &l

Re: Deadlock in callbacks to async operations (Java)

2016-11-12 Thread Andrew Tolbert
> > Will the above example work if instead of session.execute, it was doing > session.executeAsync()? > It will work as executeAsync will not block waiting on behavior in a I/O thread (that may also happen to be the calling thread), so it is not susceptible to deadlock. To be extra safe, you

Re: Consistency when adding data to collections concurrently?

2016-11-12 Thread Andrew Tolbert
? WHERE id = ?") > void addLabel(Label label, String id); > > Will that work? > > On Sat, Nov 12, 2016 at 8:38 PM, Andrew Tolbert < > andrew.tolb...@datastax.com> wrote: > > You can do it in a SimpleStatement assuming you provide the CQL exactly as > you pro

Re: Consistency when adding data to collections concurrently?

2016-11-12 Thread Andrew Tolbert
You can do it in a SimpleStatement assuming you provide the CQL exactly as you provided, but in a PreparedStatement it will not work because cql prohibits provide bind values in collection literals. For it to work you could provide a List of UDT values in a bound prepared statement, i.e.:

Re: NamingStrategy for the Java Driver for camelCase / snake_case conversion?

2016-10-10 Thread Andrew Tolbert
ow does that work - do I just create a pojo for the UDT, and use > @Column on the fields, and it will work if I define a field in the table > mapping class as being of that pojo type? > > On Tue, Oct 11, 2016 at 8:57 AM, Andrew Tolbert < > andrew.tolb...@datastax.com> wrot

Re: Being asked to use frozen for UDT in 3.9

2016-10-10 Thread Andrew Tolbert
Is the column you are using that has the UDT type is the or is part of the primary key? If that is the case it still needs to be frozen (the same goes for list, set, tuple as part of primary key). This is the error I get when I try that: InvalidRequest: Error from server: code=2200 [Invalid

Re: Being asked to use frozen for UDT in 3.9

2016-10-10 Thread Andrew Tolbert
ed to define a column (not primary or > cluster key) as being of that type, but it doesn't let me do that unless i > set it as frozen. Docs indicate otherwise though > > On Tue, Oct 11, 2016 at 9:09 AM, Andrew Tolbert < > andrew.tolb...@datastax.com> wrote: > > I

Re: NamingStrategy for the Java Driver for camelCase / snake_case conversion?

2016-10-10 Thread Andrew Tolbert
Hi Ali, As far as I know this hasn't changed. Either the field name on the class has to match the name of the column or you have to use the @Column with the name attribute to set the column name being mapped by that field. Thanks, Andy On Mon, Oct 10, 2016 at 8:03 PM Ali Akhtar

Re: Being asked to use frozen for UDT in 3.9

2016-10-10 Thread Andrew Tolbert
Y KEY, > this_doesnt_work test > ) WITH bloom_filter_fp_chance = 0.01 > > > On Mon, Oct 10, 2016 at 9:25 PM Ali Akhtar <ali.rac...@gmail.com> wrote: > >> CREATE TYPE test ( >> foo text, >> bar text >> ); >> >> CREATE TABLE test_table

Re: NamingStrategy for the Java Driver for camelCase / snake_case conversion?

2016-10-10 Thread Andrew Tolbert
at 10:30 PM Ali Akhtar <ali.rac...@gmail.com> wrote: > Please fix this. > > > > On Tue, Oct 11, 2016 at 8:28 AM, Andrew Tolbert < > andrew.tolb...@datastax.com> wrote: > > Hi Ali, > > As far as I know this hasn't changed. Either the field name on the cl

Re: Being asked to use frozen for UDT in 3.9

2016-10-10 Thread Andrew Tolbert
xt, > this_doesnt_work test, > PRIMARY KEY (id) > ); > > On Tue, Oct 11, 2016 at 9:23 AM, Andrew Tolbert < > andrew.tolb...@datastax.com> wrote: > > Can you please share an example where it doesn't work? > > Thanks, > Andy > > On Mon, Oct 10, 2016 at 11:

Re: Does Java driver v3.1.x degrade cluster connect/close performance?

2017-03-06 Thread Andrew Tolbert
Hi Satoshi, This question would be better for the 'DataStax Java Driver for Apache Cassandra mailing list ', but I do have a few thoughts about what you are observing: Between java-driver 2.1 and 3.0 the driver

Re: Does Java driver v3.1.x degrade cluster connect/close performance?

2017-03-06 Thread Andrew Tolbert
99.9% <= 8.03 milliseconds Similary when using a local C* node, initialization times are pretty similar. I'd be interested to see if running the same test <https://gist.github.com/tolbertam/e6ac8b71a7703a6fc4561356767a1501> in your environment creates different results. Th

Re: Does Java driver v3.1.x degrade cluster connect/close performance?

2017-03-07 Thread Andrew Tolbert
> I'd be interested to see if running the same test in your environment > creates different results. > I'll run the test in my test environment and share the result. Thank you > again. > > Regards, > Satoshi > > On Tue, Mar 7, 2017 at 12:38 AM, Andrew Tolbert < >