# Query Complexity

> The degree of difficulty of answering queries when state is stored as an event history rather than current rows.

Record: `lexicon:query-complexity`
Kind: quality-attribute
Layer: [Execution Core](https://banes-lab.com/records/layer/execution-core.md)
Canonical: https://banes-lab.com/ontology/lexicon#lexicon-query-complexity

Listed in [Lexicon terms](https://banes-lab.com/api/records/lexicon.md), after [Operational Dependency](https://banes-lab.com/records/lexicon/operational-dependency.md) and before [Relay Complexity](https://banes-lab.com/records/lexicon/relay-complexity.md).

## Category

- [Event Messaging Async](https://banes-lab.com/records/lexicon-category/event-messaging-async.md)

## In tension with

- [Event Sourcing](https://banes-lab.com/records/architecture/event-sourcing.md)
- [Event Sourcing / Query Complexity](https://banes-lab.com/records/tension/event-sourcing-query-complexity.md)

## Linked from

- [Event / Messaging / Asynchronous Architecture](https://banes-lab.com/ontology/principles/architecture-category-event-messaging-asynchronous-architecture.md)
- [The resolutions](https://banes-lab.com/ontology/schema/the-resolutions.md)
