Consider a table with the following table structure ...
CREATE TABLE table1 ( id integer, name varchar(32), ts timestamp );
SELECT * FROM table1 WHERE id = xx and ts between '2010/04/01' and '2010/04/11'
Given this query, how would you represent the given data-set using Cassandra?
You can use the SQL Gateway to configure a TDS (SQL Server) remoting service and set up a linked server for Cassandra data.
Cassandra Query Language (CQL) is a query language for the Apache Cassandra database. The Cassandra Query Language (CQL) is the primary language for communicating with the Apache Cassandra™ database. The most basic way to interact with Apache Cassandra is using the CQL shell, cqlsh.
build an index either on id or ts (whichever is more selective), query on that, and filter the other part manually.
(this is basically what a sql database does under the hood, btw.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With