ArangoDB: AQL, Graph Traversal and ArangoSearch

Documents, graphs and a real search engine behind one query language - where the cluster topology decides whether traversal is fast.

Taught by Noshad Alam 7 lessons 1 hr 12 min Published 30 Nov 2026

ArangoDB is the most capable multi-model database in this programme and the one whose **deployment topology matters most to whether it performs**. One engine holds document collections, edge collections and inverted-index search views; one language, **AQL**, queries all three in a single statement, so a query can filter documents, traverse a graph three hops deep, rank the results with BM25 and aggregate them without leaving the database or writing a join. For a knowledge graph with a search front end - entities, relationships and text, queried together - that combination is genuinely hard to assemble from separate components, and this is the engine that offers it whole.

Overview

**Four things about it deserve to be stated at the start rather than discovered.**

**Graph traversal in a sharded cluster is a different performance proposition from traversal on a single server.** Each hop may need a network round trip to whichever DB-Server holds the next vertex, so a traversal that takes four milliseconds on one node can take hundreds across three. The answers exist - **SmartGraphs**, which co-locate a vertex with its edges by shard key, and **OneShard databases**, which keep a whole database on one DB-Server - and both are Enterprise features. **So "we will shard it later" is not a safe plan for a graph workload**, and the topology decision belongs at design time with a measurement behind it.

**ArangoSearch views are eventually consistent by default.** A document you just inserted is not immediately searchable, because the view commits on an interval. That is the right default for throughput and it is also the single most common source of "the test passes locally and fails in CI", in both directions.

**A large transaction can stop being atomic without telling you.** Intermediate commits, which exist so that very large transactions do not exhaust memory, break the transaction into pieces that are individually durable - which means a failure halfway leaves half the work applied. It is a setting, it is sometimes on, and it is worth knowing before you rely on a multi-document transaction.

**And the licence changed.** Recent ArangoDB versions ship the Community Edition under a source-available licence rather than a permissive open-source one, with terms that differ by version. **That is a procurement and legal question, not a technical footnote**, and the only correct engineering response is to read the licence for the exact version you intend to deploy and have it reviewed before you commit. This course flags where it matters and does not pretend to advise on it.

None of that is a reason not to use ArangoDB. It is what using it well requires knowing.

Seven modules, about 80 hours. The capstone is a knowledge graph and document search service with AQL traversal and recovery tests.

Introduction

This course assumes the programme's shared foundations and is the most comfortable if you have done a document database and a graph database already - it does both, and judging what you are being given here is much easier when you know what each normally costs. The MongoDB course's modelling instincts and the Neo4j course's traversal instincts both transfer directly.

For a sandbox you need **two deployments, and that is not optional here**: a **single server** in Docker, and a **three-DB-Server cluster** with coordinators and an agency, which `docker compose` or the starter tool will give you. **Most of this course's most important measurements are the difference between the two**, and a course done only on a single server will teach you the wrong thing about graph performance.

You also need a **knowledge graph dataset generator**, written in Module 1 and used throughout: entities of several types, typed relationships between them with properties, documents with substantial text attached to entities, and a configurable scale and graph density. The capstone is built on it, and the search and traversal work both need the text and the density to be realistic.

One habit from the start: **run every graph query on both deployments and record both numbers.** The single-server number tells you whether your query is well written. The cluster number tells you whether it will work in production. They are different questions and only measuring one of them is how teams get surprised late.

What you will be able to do

  • Explain collections, documents, edges, and the document key and identifier scheme
  • Write AQL for filtering, joins, aggregation, and nested data
  • Use UPSERT correctly, including the uniqueness requirement it depends on
  • Apply JSON Schema validation and explain what it does not retroactively check
  • Design a graph model and choose between named graphs and anonymous traversals
  • Write traversals with direction, depth bounds and PRUNE
  • Explain single-document atomicity, the limits of larger transactions, and what intermediate commits do to it
  • Build ArangoSearch views with analyzers and explain their consistency model
  • Rank results with BM25 and combine search with traversal in one query
  • Design persistent and inverted indexes from evidence, reading EXPLAIN and PROFILE to find full collection scans
  • Use query memory limits and runtime limits as protection
  • Explain the coordinator, DB-Server and agency architecture
  • Choose shard keys and a replication factor, and explain write concern
  • Measure traversal cost on a single server against a sharded cluster
  • Explain what SmartGraphs and OneShard solve and when you need them
  • Perform backup and restore, and explain consistency by edition
  • Perform a failover drill and measure RPO and RTO
  • Apply database and collection permissions, and state what they cannot express
  • Plan a rolling upgrade in the correct order
  • Produce a cluster sizing and cost checklist, including the licence question

What each level covers

5 levels · 7 lessons

  1. Beginner - Foundations

    Collections, documents, edges and AQL; then modelling, traversal and the UPSERT trap.

    2 lessons 20 min of reading

    Start with Collections, Documents, Edges, arangosh and AQL Basics →
  2. Intermediate - Application Behaviour

    Transactions and their honest limits, then ArangoSearch - a real search engine with an eventual-consistency default.

    1 lesson 11 min of reading

    Start with Transactions, Isolation, ArangoSearch and Analyzers →
  3. Advanced - Performance and Reliability

    Indexes, plans, pruning and memory limits; then the cluster architecture that decides whether traversal is fast.

    2 lessons 20 min of reading

    Start with Persistent Indexes, Inverted Indexes, EXPLAIN, Pruning and Memory Limits →
  4. Expert - Security and Production Architecture

    Users and permissions and what they cannot express, monitoring, rolling upgrades, and the sizing and licence checklist.

    1 lesson 12 min of reading

    Start with Users, Permissions, TLS, Monitoring, Rolling Upgrades and Sizing →
  5. Capstone

    One knowledge graph and search service, defended on topology measurement, atomicity and a verified recovery.

    1 lesson 9 min of reading

    Start with Capstone - Knowledge Graph and Document Search Service →

Guides and articles

Longer reading about this subject, written alongside the course.

Course guide How to work through this course Why to build the cluster on day one, the four things to get right, the experiments that matter, and what to skip. 5 min read

Before you start

  • Docker, with ArangoDB 3.12 or later as a single server and as a three-DB-Server cluster
  • arangosh, and a driver for Node.js, Python or Java
  • A knowledge graph dataset generator you write, with text and configurable density
  • The programme's shared foundations; document and graph courses help

Common questions

What does the ArangoDB: AQL, Graph Traversal and ArangoSearch course cover?
It is 5 levels and 7 lessons: Beginner - Foundations; Intermediate - Application Behaviour; Advanced - Performance and Reliability; Expert - Security and Production Architecture; Capstone. Each level ends with a quiz, and the last one is an exam over the whole course.
How long does it take?
About 72 minutes of reading and exercises - roughly 1.2 hours. It is self-paced with no cohort and no start date, so you can leave and come back and the site remembers where you were.
What do I need to know first?
Docker, with ArangoDB 3.12 or later as a single server and as a three-DB-Server cluster. arangosh, and a driver for Node.js, Python or Java. A knowledge graph dataset generator you write, with text and configurable density. The programme's shared foundations; document and graph courses help.
Is it free?
Yes. Every lesson, example and quiz in this course is free to read, and you do not need an account to read them. Signing in only adds progress tracking and quiz results.
What will I be able to do afterwards?
Explain collections, documents, edges, and the document key and identifier scheme. Write AQL for filtering, joins, aggregation, and nested data. Use UPSERT correctly, including the uniqueness requirement it depends on. Apply JSON Schema validation and explain what it does not retroactively check. Design a graph model and choose between named graphs and anonymous traversals. Write traversals with direction, depth bounds and PRUNE. Explain single-document atomicity, the limits of larger transactions, and what intermediate commits do to it. Build ArangoSearch views with analyzers and explain their consistency model. Rank results with BM25 and combine search with traversal in one query. Design persistent and inverted indexes from evidence, reading EXPLAIN and PROFILE to find full collection scans. Use query memory limits and runtime limits as protection. Explain the coordinator, DB-Server and agency architecture. Choose shard keys and a replication factor, and explain write concern. Measure traversal cost on a single server against a sharded cluster. Explain what SmartGraphs and OneShard solve and when you need them. Perform backup and restore, and explain consistency by edition. Perform a failover drill and measure RPO and RTO. Apply database and collection permissions, and state what they cannot express. Plan a rolling upgrade in the correct order. Produce a cluster sizing and cost checklist, including the licence question.