[odb-users] Problem with object loading view

Boris Kolpackov boris at codesynthesis.com
Fri Feb 12 10:52:20 EST 2016


Hi Marcel,

Marcel Nehring <mne at qosmotec.com> writes:

> Is this a bug in ODB or am I not allowed to use ODB like this?

I guess it is a bug/unsupported feature. The problem is with the
recursive use of the view. There is currently no support for this
and adding it won't be trivial.

One possible way to resolve it would be to move the callback to
the view itself (it should be ok to re-use the view in its own
post_load).

Alternatively, you could use lazy pointers and only load "one
level deep" at a time.

Boris



More information about the odb-users mailing list