Skip to main content
Efficient queries are essential for working with large datasets in Narrative. This section covers optimization techniques and patterns to help your queries run faster and use fewer resources.

Prerequisites

Before diving into optimization, you should have:

Optimization guides

Avoid OR in JOIN Clauses

Restructure OR conditions into single-key joins for dramatically better performance

Understanding JOIN Performance

Learn why certain JOIN patterns cause performance problems

NQL Functions Reference

Complete reference for NQL functions including UNNEST

Joining Datasets

Fundamentals of combining data from multiple datasets