TRACING

The TRACING command is a toggle that allows the tracing functionality to be turned on:

TRACING ONNow Tracing is enabledTRACINGTracing is currently enabled. Use TRACING OFF to disable

Tracing is useful in that it can show why particular queries may be running slowly. A tracing report allows you to view things about a query, such as the following:

  • Nodes contacted
  • Number of SSTables read
  • Number of tombstones encountered
  • How long the query took to run

Tracing will be covered in more detail in Chapter 5, Performance Tuning.

Get Mastering Apache Cassandra 3.x - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.