I honestly don't understand your objection.  It seems tautologically
obvious that reading an entity should be a 'read' operation.  I'd be pissed
if it was anything else.

Small operations are like a grab bag of little things that don't amount to
much but need to be represented with a cost anyways.  Each call to the
allocator, each key read in a keys-only query, each step in count() query.

Jeff

On Mon, Feb 13, 2012 at 11:49 PM, James Gilliam <[email protected]>wrote:

> I have tried multiple times to find out EXACTLY what function uses the
> small datastore operation.  I have asked in this group for the info.
> I usually get referred to the billing page that explains that small
> datastore operations are cheaper which was the reason I was asking the
> question.  I notice this thread has a link to the billing page .. a
> fine page indeed ... but good luck finding what datastore function is
> used for small datastore operation.
>
> The gigantic disappointment is that reading an entity using its id is
> not a small datastore operation ... I would think it should be ...
> instead it is the regular kind of nasty read which is actually two
> read operations.
>
> Thus, there is no such think as a single read operation.
>
> It seems mostly pointless to allocate keys without putting values in
> the entity, but there you go.
>
> Thanks
>
> ps. Time to send me the link to the billing page ... Key allocation
> (per key)
>
>
> On Feb 10, 3:10 am, Brian Quinlan <[email protected]> wrote:
> > On Fri, Feb 10, 2012 at 9:03 PM, poke <[email protected]>
> wrote:
> > > thanks .
> > > finally pm.getObjectById() is  Entity Get ?
> >
> > Yes, you are loading the contents of a datastore entity.
> >
> > Cheers,
> > Brian
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > > On Feb 10, 4:05 pm, Brian Quinlan <[email protected]> wrote:
> > >> On Fri, Feb 10, 2012 at 7:53 PM, poke <[email protected]>
> wrote:
> > >> > Few days ago , i change my code to access by key (not by query) .
> But
> > >> > in Billing report  "Small Datastore Operations " still equal zero
> and
> > >> > "Datastore Reads " same as using query - billing not go to down.
> >
> > >> > JDO pm.getObjectById() method still count as Datastore Reads
> >
> > >> Gets still cost a read operation. See:
> http://code.google.com/appengine/docs/billing.html
> >
> > >> Entity Get (per entity): 1 Read
> > >> Query: 1 Read + 1 Read per entity returned
> >
> > >> Cheers,
> > >> Brian
> >
> > >> > --
> > >> > 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 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 [email protected]
> .
> > > To unsubscribe from this group, send email to
> [email protected].
> > > 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 [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