# Repository Complexity

> The degree to which coordinating saves through a unit of work adds indirection to the persistence layer.

Record: `lexicon:repository-complexity`
Kind: quality-attribute
Layer: [Atomic Boundary](https://banes-lab.com/records/layer/atomic-boundary.md)
Canonical: https://banes-lab.com/ontology/lexicon#lexicon-repository-complexity

Listed in [Lexicon terms](https://banes-lab.com/api/records/lexicon.md), after [Coordinated Persistence](https://banes-lab.com/records/lexicon/coordinated-persistence.md) and before [Scattered Save Calls](https://banes-lab.com/records/lexicon/scattered-save-calls.md).

## Category

- [Transactions / State / Concurrency](https://banes-lab.com/records/lexicon-category/transactions-state-concurrency.md)

## In tension with

- [Unit of Work Pattern](https://banes-lab.com/records/architecture/unit-of-work-pattern.md)
- [Unit of Work Pattern / Repository Complexity](https://banes-lab.com/records/tension/repository-complexity-unit-of-work-pattern.md)

## Linked from

- [Transactions / State / Concurrency](https://banes-lab.com/ontology/principles/architecture-category-transactions-state-concurrency.md)
- [The resolutions](https://banes-lab.com/ontology/schema/the-resolutions.md)
