From: Vetlugin Y. <vy...@ch...> - 2006-03-20 13:52:38
|
Hi everyone,=20 I have a strange situation while using SQLObject. Example =2D----------------------------------------------------------------------- from sqlobject import * class SomeClass(SQLObject): =A0 =A0 a =3D IntCol() sqlhub.processConnection =3D \ =A0 =A0 =A0 =A0 connectionForURI('mysql://test:test@127.0.0.1:3306/test') SomeClass.createTable(ifNotExists=3DTrue) for i in range(100000): =A0 =A0 SomeClass(a=3D0) =2D----------------------------------------------------------------------- So, while running, this script takes more and more memory (even if it don`t= =20 need it). The questions are - what`s wrong with this script and how should = i=20 do it right? PS: =A0=A0=A0=A0SQLObject 0.7-bugfix=20 =A0 =A0 =A0 =A0=A0MySQL-python-1.2 =A0=A0=A0=A0=A0=A0=A0=A0python 2.4/2.3=20 |