[baseten-users] BXDatabaseContext, batch processing and memory usage question
Jianhua Meng
jh_meng at mac.com
Tue Aug 18 03:33:35 EEST 2009
Hi Tuukka,
We have a need to support batch processing via a BXDatabaseContext
object. With a given job, there might be a need to fetch a lot of
objects from the underlying database. At some point, "too many
objects" may reside in a database context. To avoid potential memory
hogging, I'm thinking about periodically perform some house keeping
against a database context to get rid of objects that are no longer
needed. What's the best way to go about that? Is there an easy way to
purge a database context of all existing objects or selected objects?
Thanks for your tips.
Regards,
Jianhua Meng
More information about the baseten-users
mailing list