Skip to content

Commit a900dd6

Browse files
committed
update note
1 parent 1c5d814 commit a900dd6

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

db/thing.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,11 @@ class Thing(Base, AutoBaseMixin, ReleaseMixin, StatusHistoryMixin, PermissionMix
125125
If there are many location associations related to a thing, eagerly loading
126126
the location associations may overburden the API and DB and introduce
127127
performance issues. If this becomes an issue, active/current locations can
128-
be fetched in queries when retrieving things. Be careful, though, as this
129-
will need to be included everywhere where a thing record is needed, such as
130-
for GET /thing, GET /thing/{thing_id}, and GET /contact. See below for an
131-
example of a way to retrieve the active/current location in a query
128+
be fetched in queries when retrieving things. Be thorough if following this
129+
route as it will need to be included everywhere where a thing record is
130+
needed, such as for GET /thing, GET /thing/{thing_id}, and GET /contact. See
131+
below for an example of a way to retrieve the active/current location in a
132+
query:
132133
133134
from sqlalchemy.orm import aliased
134135
from sqlalchemy import select, func

0 commit comments

Comments
 (0)