Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Cassandra High Availability
  • Table Of Contents Toc
Cassandra High Availability

Cassandra High Availability

By : Strickland
4.6 (14)
close
close
Cassandra High Availability

Cassandra High Availability

4.6 (14)
By: Strickland

Overview of this book

If you are a developer or DevOps engineer who understands the basics of Cassandra and are ready to take your knowledge to the next level, then this book is for you. An understanding of the essentials of Cassandra is needed.
Table of Contents (11 chapters)
close
close
10
Index

Multikey queries


You will recall from the previous chapter that Cassandra is most efficient when querying a range of columns on disk. All our examples assumed a replication factor of three with QUORUM reads and writes. We will follow the same conventions with the examples in this chapter.

With this in mind, let's make use of the authors schema we introduced in the previous chapter:

CREATE TABLE authors (
  name text,
  year int,
  title text,
  publisher text,
  isbn text,
  PRIMARY KEY (name, year, title)
);

Using this schema, let's say we want to retrieve a number of books from a list of known authors. Obviously, we can write a separate query for each author, but Cassandra also provides a familiar SQL-style syntax to specify multiple partition keys using the IN clause:

SELECT * FROM authors
WHERE name IN (
'Tom Clancy',
'Malcolm Gladwell',
'Dean Koontz'
);

The question is how will Cassandra fulfill this request? As we have discussed numerous times throughout this book, the system will hash...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Cassandra High Availability
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon