[Modeling-users] Lazy Relation Initialisation
Status: Abandoned
Brought to you by:
sbigaret
|
From: Yannick G. <yan...@sa...> - 2003-06-18 21:04:22
|
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,=20
As I understand (looking at my bandwidth monitor), to-many relations
are lazily retrieved.
ex:=20
myBooks =3D meAsAnAuthor.getBooks() # does not fetch anything=20
for book in myBooks: # fetch a record from the DB each loop
print book.getTitle()
Is there a way to have to fetch the complete meAsAnAuthor with all
it's books once to avoid the connection latency of a fetch for each
book ?
=2D --=20
Yannick Gingras
Byte Gardener, Savoir-faire Linux inc.
(514) 276-5468
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+8NPTrhy5Fqn/MRARAp7mAKCJNMRwCKA4GqArkzGshNnHht6zkgCcDupB
/G/gpGlgtvHZkLFHYfT1ijQ=3D
=3Dw/SO
=2D----END PGP SIGNATURE-----
|