On Thu, Aug 18, 2011 at 10:58 PM, thstart <thst...@gmail.com> wrote:

>
> I think Master/Slave is a lot faster in my case up to 10 times faster. I
> tested it with only read, no write operations,
> no transactions, nothing special for example I have a heavy use of this
> expression:
>
>             e = MyList.get_profile(email)
>                 my_keys = e.my_keys
>                 my_members = db.get(my_keys)
>
>                 for member in my_members:
>                         member.<property>, etc. <-- do something with the
> property
>

Try this:

            e = MyList.get_profile(email)
                 my_keys = e.my_keys
                my_members = db.get(my_keys, config=db.create_config(
read_policy=db.EVENTUAL_CONSISTENCY))

                for member in my_members:
                        member.<property>, etc. <-- do something with the
property


It's a relatively new option:


http://code.google.com/intl/en/appengine/docs/python/datastore/functions.html#create_config

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