Skip to content

Glossary: PostgreSQL for Developers

relationship

Also written: relationship()

An ORM attribute that follows a foreign key for you: order.items is the list of an order's OrderItem objects. SQLAlchemy runs a query when you first read it.

Where the book teaches it

Related terms

N+1 problemselectinload