My application name: ctms-medms-test.
I've some strange thing with CPU usage.

I'am using Django and Appenginepatch.


I've simple view:
def list_city(request):
  queryset = ctms_City.all()
  return object_list(request,queryset,template_name="ctms/
city_list.html", paginate_by=500)


And simple template that look like:
  {% for record in object_list %} {{ record.name }} {% endfor %}


Model:
class ctms_City(db.Model):
  name = db.StringProperty(u"Город",required=True)

  def __unicode__(self):
    return self.name


OK, there ~100 records in ctms_City. And i've got CPU usage ~4000ms-
cpu! And CPU usage in proprotion to the number of recrods.
I've tried to remove reference to object_list in template (so, no
fetched from DB data are displayed), but CPU-usage has not changed.
So, i can say, that django-templates is not a cause.

So, what is this?
Is it OK?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to