Have you thought about benchmarking this?





On Mon, Jul 19, 2010 at 10:51 AM, coltsith <[email protected]> wrote:
> Lets say I want to retrieve 4 objects. What would be faster:
>
>    1. for (int i = 0; i < 4; i++) {
>
>    persistenceManager.getObjectById(object1)
>
>    }
>
> or
>
>    2. Query = (select * from objects where id == 'id1' || id == 'id2'
> || id == 'id3' || id == 'id4')
>
> Thanks
>
> --
> 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.
>
>

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