Branch: refs/heads/working
  Home:   https://github.com/dabodev/dabo
  Commit: ffd550564ad3d387d7a52a05dfe041ad5bdbdbe7
      
https://github.com/dabodev/dabo/commit/ffd550564ad3d387d7a52a05dfe041ad5bdbdbe7
  Author: Paul McNett <[email protected]>
  Date:   2013-02-17 (Sun, 17 Feb 2013)

  Changed paths:
    M dabo/biz/dBizobj.py

  Log Message:
  -----------
  Add biz.clear() which removes all data.

This removes all cursors from the bizobj and all children. It is
intended to be used during batch-adding of new records, to keep
RAM usage constant.

Prior to this, RAM usage of my bulk-importer quickly grew to over
1.5 Gb and performance slowed to a crawl, and I had to kill the
process. After adding biz.clear(), RAM usage quickly grew to about
150 Mb and stayed around there for the duration of the bulk import,
and performance didn't degrade over time.





--- StripMime Report -- processed MIME parts ---
multipart/mixed
  text/plain (text body -- kept)
---

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to