Skip to content

Commit e13355c

Browse files
committed
fix: remove commented out eager loads
1 parent 72d16f3 commit e13355c

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

db/thing.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ class Thing(
209209
cascade="all, delete-orphan",
210210
passive_deletes=True,
211211
order_by="LocationThingAssociation.effective_start.desc()",
212-
# lazy="joined",
213212
)
214213

215214
contact_associations = relationship(
@@ -256,23 +255,20 @@ class Thing(
256255
back_populates="thing",
257256
cascade="all, delete-orphan",
258257
passive_deletes=True,
259-
# lazy="joined",
260258
)
261259

262260
well_casing_materials: Mapped[List["WellCasingMaterial"]] = relationship(
263261
"WellCasingMaterial",
264262
back_populates="thing",
265263
cascade="all, delete-orphan",
266264
passive_deletes=True,
267-
# lazy="joined",
268265
)
269266

270267
links: Mapped[List["ThingIdLink"]] = relationship(
271268
"ThingIdLink",
272269
back_populates="thing",
273270
cascade="all, delete-orphan",
274271
passive_deletes=True,
275-
# lazy="joined",
276272
)
277273

278274
# One-To-Many: A Thing (well) can have multiple measuring points over time.
@@ -281,15 +277,13 @@ class Thing(
281277
back_populates="thing",
282278
cascade="all, delete-orphan",
283279
passive_deletes=True,
284-
# lazy="joined",
285280
)
286281

287282
monitoring_frequencies: Mapped[List["MonitoringFrequencyHistory"]] = relationship(
288283
"MonitoringFrequencyHistory",
289284
back_populates="thing",
290285
cascade="all, delete-orphan",
291286
passive_deletes=True,
292-
# lazy="joined",
293287
)
294288

295289
# One-To-Many: A Thing can be associated with many AquiferSystems via the ThingAquiferAssociation join table.
@@ -298,7 +292,6 @@ class Thing(
298292
back_populates="thing",
299293
cascade="all, delete-orphan",
300294
passive_deletes=True,
301-
# lazy="joined",
302295
)
303296

304297
# Many-To-Many: A Thing can penetrate many GeologicFormations.
@@ -308,7 +301,6 @@ class Thing(
308301
back_populates="thing",
309302
cascade="all, delete-orphan",
310303
passive_deletes=True,
311-
# lazy="joined",
312304
)
313305
)
314306

0 commit comments

Comments
 (0)