Oleg Broytmann <phd <at> mail2.phd.pp.ru> writes:
> From time to time clear the cache:
>
> connection.cache.clear()
I tried the following example, but the memory used and the Windows handle count
remains unchanged till program termination.
--
from sqlobject import *
connection = connectionForURI( 'sqlite:/:memory:' )
sqlhub.processConnection = connection
class Item( SQLObject ):
title = StringCol()
Item.createTable()
for i in range( 100000 ):
item = Item( title = str( i ) )
connection.cache.clear()
import time
time.sleep( 10 )
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss