>From another discussion - a new instance per query:

http://groups.google.com/group/google-appengine-java/browse_thread/thread/e19b792042b2ff9b

== Keyur

On Apr 2, 3:24 am, George  Moschovitis <[email protected]>
wrote:
> Should we create a new instance per query?
> Or just use two instances (strong/eventual) for the whole app?
>
> -g.
>
> On Apr 2, 2:29 am, "Ikai L (Google)" <[email protected]> wrote:
>
> > That's correct. The cost of creating an instance is negligible, though. It's
> > not dissimilar to creating different MemcacheService instances with
> > different write policies.
>
> > On Thu, Apr 1, 2010 at 4:09 PM, keyurva <[email protected]> wrote:
> > > I use the low-level datastore API. At runtime, I want to use the new
> > > eventual consistency on occasions and strong consistency at others.
>
> > > I was looking at the Query class to set the consistency option but
> > > noticed that it is only available in DatastoreServiceConfig. Is it
> > > expected that one needs to use different DatastoreService instances
> > > for different read policies? Or am I missing something obvious?
>
> > > Thanks,
> > > Keyur
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google App Engine for Java" group.
> > > To post to this group, send email to
> > > [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected]<google-appengine-java%2B
> > >  [email protected]>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-appengine-java?hl=en.
>
> > --
> > Ikai Lan
> > Developer Programs Engineer, Google App 
> > Enginehttp://googleappengine.blogspot.com|http://twitter.com/app_engine
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" 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-java?hl=en.

Reply via email to