[CentralOH] Django Management Command Memory Usage
Mr Mark E Erbaugh
mark at microenh.com
Mon Jun 4 17:44:01 CEST 2012
Jim,
Does Places.objects.all() return an iterator or a sequence?
Mark
On Jun 4, 2012, at 10:28 AM, jep200404 at columbus.rr.com wrote:
> def handle(self, *args, **options):
> for record in Places.objects.all():
> if record.x and record.y:
> record.point = (
> Point(float(record.x)/1000.,
> float(record.y)/1000.))
> else:
> record.point = None
> record.save()
> django.db.connection.close()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/centraloh/attachments/20120604/f0f77cda/attachment.html>
More information about the CentralOH
mailing list