GAE/Java stores all integer numbers as 64 bit protobuf values. I presume
all other runtimes do the same, otherwise there would be compatibility
problems when reading from the datastore.

Jeff

On Tue, Mar 3, 2015 at 6:56 AM, 'Alex Martelli' via Google App Engine <
google-appengine@googlegroups.com> 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 <2dea...@gmail.com> 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 google-appengine+unsubscr...@googlegroups.com.
>> To post to this group, send email to google-appengine@googlegroups.com.
>> 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 google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> 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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to