Re: [EXTERNAL] RE: SASI queries- cqlsh vs java driver

2019-02-27 Thread Peter Heitman
ility, extremely low >>> latency queries (on known access patterns), high volume/low latency writes, >>> easy scalability, etc. then you are going to have to rethink how you model >>> the data. >>> >>> >>> >>> >>> >>>

Re: [EXTERNAL] RE: SASI queries- cqlsh vs java driver

2019-02-27 Thread Jonathan Haddad
gt;> scalability, etc. then you are going to have to rethink how you model the >> data. >> >> >> >> >> >> Sean Durity >> >> >> >> *From:* Kenneth Brotman >> *Sent:* Thursday, February 07, 2019 7:01 AM >> *To:* us

Re: [EXTERNAL] RE: SASI queries- cqlsh vs java driver

2019-02-27 Thread Rahul Singh
, easy > scalability, etc. then you are going to have to rethink how you model the > data. > > > > > > Sean Durity > > > > *From:* Kenneth Brotman > *Sent:* Thursday, February 07, 2019 7:01 AM > *To:* user@cassandra.apache.org > *Subject:* [EXTERNAL] R

RE: [EXTERNAL] RE: SASI queries- cqlsh vs java driver

2019-02-07 Thread Durity, Sean R
] RE: SASI queries- cqlsh vs java driver Peter, Sounds like you may need to use a different architecture. Perhaps you need something like Presto or Kafka as a part of the solution. If the data from the legacy system is wrong for Cassandra it’s an ETL problem? You’d have to transform the data

RE: SASI queries- cqlsh vs java driver

2019-02-07 Thread Kenneth Brotman
that a proper data model for Cassandra can be used. From: Peter Heitman [mailto:pe...@heitman.us] Sent: Wednesday, February 06, 2019 10:05 PM To: user@cassandra.apache.org Subject: Re: SASI queries- cqlsh vs java driver Yes, I have read the material. The problem is that the application has a

Re: SASI queries- cqlsh vs java driver

2019-02-06 Thread Peter Heitman
ved=2ahUKEwi0n-nWzajgAhXnHzQIHf6jBJIQ6AEwAXoECAgQAQ#v=onepage&q=jeff%20carpenter%20chapter%205&f=false> > . > > > > Kenneth Brotman > > > > *From:* Peter Heitman [mailto:pe...@heitman.us] > *Sent:* Wednesday, February 06, 2019 6:33 PM > > > *To:*

RE: SASI queries- cqlsh vs java driver

2019-02-06 Thread Kenneth Brotman
itman.us] Sent: Wednesday, February 06, 2019 6:33 PM To: user@cassandra.apache.org Subject: Re: SASI queries- cqlsh vs java driver Yes, I "know" that allow filtering is a sign of a (possibly fatal) inefficient data model. I haven't figured out how to do it correctly yet On Thu,

Re: SASI queries- cqlsh vs java driver

2019-02-06 Thread Peter Heitman
se ALLOW FILTERING in the queries. That is not recommended. > > > > Kenneth Brotman > > > > *From:* Peter Heitman [mailto:pe...@heitman.us] > *Sent:* Wednesday, February 06, 2019 6:09 PM > *To:* user@cassandra.apache.org > *Subject:* Re: SASI queries- cqlsh vs java

RE: SASI queries- cqlsh vs java driver

2019-02-06 Thread Kenneth Brotman
seems like a lot. Kenneth Brotman From: Peter Heitman [mailto:pe...@heitman.us] Sent: Tuesday, February 05, 2019 6:59 PM To: user@cassandra.apache.org Subject: Re: SASI queries- cqlsh vs java driver The table and secondary indexes look generally like this. Note that I have changed the nam

Re: SASI queries- cqlsh vs java driver

2019-02-06 Thread Peter Heitman
> > Kenneth Brotman > > > > *From:* Peter Heitman [mailto:pe...@heitman.us] > *Sent:* Tuesday, February 05, 2019 6:59 PM > *To:* user@cassandra.apache.org > *Subject:* Re: SASI queries- cqlsh vs java driver > > > > The table and secondary indexes look generally lik

RE: SASI queries- cqlsh vs java driver

2019-02-06 Thread Kenneth Brotman
PM To: user@cassandra.apache.org Subject: Re: SASI queries- cqlsh vs java driver The table and secondary indexes look generally like this. Note that I have changed the names of many of the columns to be generic since they aren't important to the question as far as I know. I left the a

Re: SASI queries- cqlsh vs java driver

2019-02-05 Thread Peter Heitman
On Tue, Feb 5, 2019 at 3:33 PM Oleksandr Petrov wrote: > Could you post full table schema (names obfuscated, if required) with > index creation statements and queries? > > On Mon, Feb 4, 2019 at 10:04 AM Jacques-Henri Berthemet < > jacques-henri.berthe...@genesys.com> wrote: > &g

Re: SASI queries- cqlsh vs java driver

2019-02-05 Thread Oleksandr Petrov
;user@cassandra.apache.org" > *Date: *Monday 4 February 2019 at 07:17 > *To: *"user@cassandra.apache.org" > *Subject: *SASI queries- cqlsh vs java driver > > > > When I create a SASI index on a secondary column, from cqlsh I can execute > a query > >

Re: SASI queries- cqlsh vs java driver

2019-02-04 Thread Jacques-Henri Berthemet
: "user@cassandra.apache.org" Date: Monday 4 February 2019 at 07:17 To: "user@cassandra.apache.org" Subject: SASI queries- cqlsh vs java driver When I create a SASI index on a secondary column, from cqlsh I can execute a query SELECT blah FROM foo WHERE IN ('mytext')

SASI queries- cqlsh vs java driver

2019-02-03 Thread Peter Heitman
When I create a SASI index on a secondary column, from cqlsh I can execute a query SELECT blah FROM foo WHERE IN ('mytext') ALLOW FILTERING; but not from the java driver: SELECT blah FROM foo WHERE IN :val ALLOW FILTERING Here I get an exception com.datastax.driver.core.exceptions.InvalidQue