Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

CONSISTENCY

Get or set the consistency level for subsequent CQL statements.

Syntax

CONSISTENCY
CONSISTENCY <level>

Levels

ANY, ONE, TWO, THREE, QUORUM, ALL, LOCAL_QUORUM, EACH_QUORUM, LOCAL_ONE

Usage

cqlsh> CONSISTENCY
Current consistency level is ONE.

cqlsh> CONSISTENCY QUORUM
Consistency level set to QUORUM.

Notes

  • The default consistency level is ONE.
  • Can be set at startup with --consistency-level.
  • For lightweight transactions, see SERIAL CONSISTENCY.