Thanks agian. 

A lite side questions. Any pointers how to do it the other way around? That is 
instead of storing a ReferanceProperty on Label, storing the Lable keys in a 
ListProperty on Item. Can't figure out how to do it in just 2 quires.

..fredrik



On 8 jun 2010, at 14.22, djidjadji wrote:

> If your Item object only has a name property you can put this name in
> place of the ReferenceProperty.
> Or give the Item a key_name that is equal to the name. Then you can
> get the name with
> 
> Label.item.get_value_for_datastore(label).name()
> 
> This saves you the fetching of the Item objects.
> 
> 2010/6/8 Fredrik Bonander <[email protected]>:
>> 2. The page renders really fast, but usage is about 2345cpu_ms
>> 2112api_cpu_ms when I knock it up to 30 items and 120 labels. Is any thing
>> else one could do? I could use memcache but this will be used at a page
>> where it's displayed only after an update.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/google-appengine?hl=en.
> 

--
Fredrik Bonander
[email protected]
+46 70 943 5441

- the infinite power of the creative mind - 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to