On Tue, Mar 3, 2015 at 10:09 AM, Jeff Schnitzer <[email protected]> wrote:
> GAE/Java stores all integer numbers as 64 bit protobuf values. I presume
> all other
>
That's what is seen at the application-programming interface layer. What's
actually *stored* may take a different number of bytes, as per protobuf
"wire"-level layouts.
runtimes do the same, otherwise there would be compatibility problems when
> reading from the datastore.
>
Yes, the RPCs to/from the datastore are uniform and don't vary with the
application programming language (so, what you can store into, and retrieve
from, an "integer property", is uniformly a 64-bit signed integer value).
That does not necessarily mean it will take the backend exactly 8 bytes to
store it ("how many bytes are used" as it's stored).
Alex
> Jeff
>
> On Tue, Mar 3, 2015 at 6:56 AM, 'Alex Martelli' via Google App Engine <
> [email protected]> wrote:
>
>> In as much as protocol buffers are used in the underlying, #bytes depend
>> on the exact value of the integer -- see
>> https://developers.google.com/protocol-buffers/docs/encoding .
>>
>>
>> Alex
>>
>> On Mon, Mar 2, 2015 at 3:25 AM, Ashley Finney <[email protected]> wrote:
>>
>>> Hi all,
>>>
>>> If the size of int is machine dependant, how many bytes are used when
>>> int is specified as a datastore field?
>>> Will this change depending on the machine that stored the entity? Or
>>> are int fields stored as size independent type?
>>>
>>> Specifically I'm using Go if that matters.
>>>
>>> Many thanks,
>>> Ash.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google App Engine" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at http://groups.google.com/group/google-appengine.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/google-appengine/8972c160-c0c7-4a0a-8dc9-0e9972a49b2e%40googlegroups.com
>>> <https://groups.google.com/d/msgid/google-appengine/8972c160-c0c7-4a0a-8dc9-0e9972a49b2e%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/google-appengine.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/google-appengine/CAE46Be9CN3yGYKYfuz0LPU7wOZ%3Dyx4VOfPxyrXd4isM2wH%2BVpQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/google-appengine/CAE46Be9CN3yGYKYfuz0LPU7wOZ%3Dyx4VOfPxyrXd4isM2wH%2BVpQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/google-appengine.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/CADK-0uh-HKqmu7UDMAm0PdaB-ShmHSpFgr0fChVz8Gn0%2BQroig%40mail.gmail.com
> <https://groups.google.com/d/msgid/google-appengine/CADK-0uh-HKqmu7UDMAm0PdaB-ShmHSpFgr0fChVz8Gn0%2BQroig%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/CAE46Be92rTj%3DTeHKSFHPyUoLgWx8eJBzWhpe9bUHio1cbVxkrA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.