durusmail: durus-users: building a large BTree efficiently
building a large BTree efficiently
2005-10-14
2005-10-14
2005-10-14
2005-10-17
2005-10-17
2005-10-17
2005-10-17
2005-10-17
2005-10-19
2005-10-20
2005-10-20
2005-10-20
2005-10-20
2005-10-20
2005-10-26
2005-10-26
2005-10-26
building a large BTree efficiently
David Binger
2005-10-26
On Oct 26, 2005, at 12:05 PM, mario ruggier wrote:

> Can I force deletion of an item from the cache myself?
> I.e. for long loops on big containers, could I do something
> equivalent to, but without the havoc it causes:
>
>             if item._p_is_saved():
>                 del self._p_connection.cache[item._p_oid]

Sounds dangerous, but it might work.

You might not realize that the cache holds weak references.
If your program can avoid holding references to everything as it
runs, the python garbage collector will give you some space back.





reply