cubicweb-fastimport #4835633 Memory leak [done]
After a few thousands lines imported, and despite calling cnx.clear(), the memory consumption jumps to several gigabytes.
The responsible is session.user that has its relation_cache filled with all the imported entities (because it owns them).
Workaround, add "cnx.user._cw_related_cache.clear()" after each call to the FlushController.
|closed by||#ea8f2de8e39e Avoid a memory leak|
|patch||Entities: do not update the rel cache for cnx.user [applied]Entities: fix a potential NameError [rejected]Avoid a memory leak [applied]|