summaryrefslogtreecommitdiff
path: root/examples/large_collection/__init__.py
blob: 4098cd53a4d9bcb2254c9ba674e362a4fbfb3d90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
"""Large collection example.

Illustrates the options to use with
:func:`~sqlalchemy.orm.relationship()` when the list of related
objects is very large, including:

* "dynamic" relationships which query slices of data as accessed
* how to use ON DELETE CASCADE in conjunction with
  ``passive_deletes=True`` to greatly improve the performance of
  related collection deletion.

"""