[google-appengine] Re: Faster than get_by_key_name

2011-09-22 Thread yamadaag
It's new for me to hear about EVENTUAL consistency of HRD.
But I can't switch to HRD right now, so I'll try to find some other
way to get entities faster.

Thanks for answers!


On Sep 21, 1:19 pm, stevep  wrote:
> I switched to EVENTUAL where ever possible, and realized significant
> gains virtually every time. Worth working hard to manage it IMHO.
>
> stevep
>
> On Sep 20, 5:58 pm, Stephen Johnson  wrote:
>
> > If you're using HRD and using STRONG consistency, you can increase the speed
> > of the get by key by using EVENTUAL consistency. Of course with the possible
> > ramifications that incur with using EVENTUAL consistency.
>
> > Stephen
>
> > On Tue, Sep 20, 2011 at 3:21 PM, Steve Sherrie 
> > wrote:
>
> > > get_by_key_name first computes a db.Key from the key_name and then fetches
> > > the entity by that key, so it's already the quickest method. There's no
> > > practical time cost in the computing of the key.
>
> > > Steve Sherrie
>
> > > On 11-09-20 06:16 PM, yamadaag wrote:
>
> > >> Hello.
>
> > >> I often use "get_by_key_name" to get entities from Datastore.
> > >> I'm looking for faster way to get entities, does anyone know?
>
> > > --
> > > 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+unsubscribe@**googlegroups.com > >  i...@googlegroups.com>
> > > .
> > > For more options, visit this group athttp://groups.google.com/**
> > > group/google-appengine?hl=en
> > > .

-- 
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.



[google-appengine] Re: Faster than get_by_key_name

2011-09-20 Thread stevep
I switched to EVENTUAL where ever possible, and realized significant
gains virtually every time. Worth working hard to manage it IMHO.

stevep

On Sep 20, 5:58 pm, Stephen Johnson  wrote:
> If you're using HRD and using STRONG consistency, you can increase the speed
> of the get by key by using EVENTUAL consistency. Of course with the possible
> ramifications that incur with using EVENTUAL consistency.
>
> Stephen
>
> On Tue, Sep 20, 2011 at 3:21 PM, Steve Sherrie wrote:
>
>
>
>
>
>
>
> > get_by_key_name first computes a db.Key from the key_name and then fetches
> > the entity by that key, so it's already the quickest method. There's no
> > practical time cost in the computing of the key.
>
> > Steve Sherrie
>
> > On 11-09-20 06:16 PM, yamadaag wrote:
>
> >> Hello.
>
> >> I often use "get_by_key_name" to get entities from Datastore.
> >> I'm looking for faster way to get entities, does anyone know?
>
> > --
> > 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+unsubscribe@**googlegroups.com > i...@googlegroups.com>
> > .
> > For more options, visit this group athttp://groups.google.com/**
> > group/google-appengine?hl=en
> > .

-- 
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.