Skip to Content
Cassandra: The Definitive Guide, (Revised) Third Edition, 3a edizione
book

Cassandra: The Definitive Guide, (Revised) Third Edition, 3a edizione

by Jeff Carpenter, Eben Hewitt
April 2025
Intermediate to advanced
432 pages
13h 18m
Italian
O'Reilly Media, Inc.
Content preview from Cassandra: The Definitive Guide, (Revised) Third Edition, 3a edizione

Capitolo 9. Scrittura e lettura dei dati

Questo lavoro è stato tradotto utilizzando l'AI. Siamo lieti di ricevere il tuo feedback e i tuoi commenti: translation-feedback@oreilly.com

Ora che hai capito il modello dei dati e come utilizzare un semplice client, approfondiamo i diversi tipi di query che puoi eseguire su Cassandra per scrivere e leggere dati. Daremo anche un'occhiata dietro le quinte per vedere come Cassandra gestisce le tue query. La comprensione di questi dettagli ti aiuterà a progettare query che funzionino bene e che forniscano il comportamento di cui hai bisogno.

Come nel capitolo precedente, abbiamo incluso degli esempi di codice che utilizzano il DataStax Java Driver per illustrare il funzionamento pratico di questi concetti.

Scrittura

Iniziamo a notare alcune proprietà di base della scrittura di dati su Cassandra. Innanzitutto, la scrittura dei dati è molto veloce in Cassandra, perché il suo design non richiede l'esecuzione di letture o ricerche su disco. Le memtables e le SSTables evitano a Cassandra di dover eseguire queste operazioni in scrittura, che rallentano molti database. Tutte le scritture su disco in Cassandra sono solo append.

Grazie al log di commit del database e al design hinted handoff, il database è sempre scrivibile e all'interno di una riga le scritture sono sempre atomiche.

Livelli di coerenza della scrittura

I livelli di coerenza regolabili di Cassandra ti permettono di specificare nelle tue query quanta coerenza desideri per le scritture. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

IBM Cloud Object Storage System Product Guide

IBM Cloud Object Storage System Product Guide

Alexander Gavrin, Bradley Leonard, Hao Jia, Johan Verstrepen, Jussi Lehtinen, Lars Lauber, Patrik Jelinko, Raj Shah, Steven Pratt, Vasfi Gucer
IBM Cloud Object Storage Concepts and Architecture System Edition

IBM Cloud Object Storage Concepts and Architecture System Edition

Bradley Leonard, Hao Jia, Johan Verstrepen, Jussi Lehtinen, Lars Lauber, Patrik Jelinko, Vasfi Gucer

Publisher Resources

ISBN: 9798341644755