[CentralOH] Django Management Command Memory Usage

Kurtis Mullins kurtis.mullins at gmail.com
Mon Jun 4 17:50:08 CEST 2012


Places.objects.all() returns a Django Queryset object:
https://docs.djangoproject.com/en/dev/ref/models/querysets/#queryset-api

On Mon, Jun 4, 2012 at 11:44 AM, Mr Mark E Erbaugh <mark at microenh.com>wrote:

> 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()
>
>
>
> _______________________________________________
> CentralOH mailing list
> CentralOH at python.org
> http://mail.python.org/mailman/listinfo/centraloh
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/centraloh/attachments/20120604/2698eea6/attachment-0001.html>


More information about the CentralOH mailing list