How Azure Data Explorer works

Azure Data Explorer provides unparalleled performance for ingesting and querying telemetry, logs, events, traces, and time series data. It features optimized storage formats, indexes, and uses advanced data statistics for efficient query planning and just-in-time compiled query execution.

Storage vs. compute

Azure Data Explorer separates storage and compute resources. Persistent data resides in Azure Blob Storage, while compute resources may store temporary data or act as a cache for persistent storage.

This separation provides the following advantages:

  • Independent scale out of storage and compute resources.
  • Accessibility to identical data across multiple compute clusters.
  • SKU optimization. For more information, see Select a SKU for your cluster.

Data storage

Azure Data Explorer partitions all ingested data into extents, or data shards, which are horizontal slices of the target table. An extent can start as small as a single record. As data accumulates in the table, Azure Data Explorer automatically merges extents until they grow to encompass millions of records. Each extent is encoded and indexed independently of other extents. This functionality contributes to linear scale in ingestion throughput.

Extents are spread evenly across cluster nodes, where they're cached both on the local SSD and in memory. This distribution enhances the capacity to prepare and execute highly distributed and parallel queries.

For more information on data storage, see Extents overview.

Note

Azure Data Explorer also retains essential metadata such as table schemas and policy objects. For a list of policies, see Policies overview.

Data cache

Azure Data Explorer has a multi-hierarchy data cache system to ensure that the most relevant data is cached as closely as possible to the CPU. The cache system depends on the immutability of extents, and works entirely with compressed data. In order to improve query performance, data remains compressed even in RAM and is only decompressed when required for a query.

For more information on caching, see Cache policy.

Text indexing

Azure Data Explorer is designed to efficiently index free-text (string) and JSON-like (dynamic) columns as data is ingested. The indexes maintain a level of granularity that enables evaluation of parts of the query based on the index without scanning the data.

Continuous background optimization of extents through merging improves compression and indexing, ensuring efficient storage and low query latency. Once extents reach a certain size, only the indexes are merged to enhance query performance without compromising efficiency.

For more information on extent and index merging, see Merge policy.

Row store

Azure Data Explorer offers an intermediate storage solution called row store. Row store allows for the efficient intake of small portions of data and ensures this data is immediately available for query. When you enable streaming ingestion on your cluster, data is initially ingested to row store and then moved to column store extents.

For more information, see Batching vs. streaming ingestion.

Column compression

Azure Data Explorer maintains data in a compressed state, reducing the amount of memory required to store and process data. This behavior results in faster query performance and more efficient use of system resources.

Azure Data Explorer avoids vertical compression, which involves sorting data to improve compression, due to its high CPU cost in free-text or semi-structured data scenarios. Instead, you can specify the preferred data sort order for scenarios with dominant query patterns. This trade-off prioritizes quick data availability for queries.

For more information on specifying data sort order, see Row order policy.

Distributed data query

Azure Data Explorer uses distributed data query technology intended for fast ad hoc analytics on large unstructured data sets. Key features of this technology include:

  • Query-generated temporary data is stored in aggregated RAM
  • Relevant extents are marked on a query plan, providing snapshot isolation
  • Fast and efficient queries are prioritized with short default timeouts
  • Native support for cross-cluster queries that minimizes inter-cluster data exchange
  • Queries are just-in-time compiled into highly efficient machine code, using data statistics from all extents and tailored to column encoding specifics

Note

Azure Data Explorer is designed to work with the Kusto Query Language (KQL), custom-built for Azure Data Explorer. Additionally, T-SQL is supported.