[google-appengine] Re: Efficient way to store lists of smallish integers

2014-03-11 Thread GregF
I use a custom ArrayProperty: #-- # A lean integer list property # See https://developers.google.com/appengine/docs/python/ndb/subclassprop # ArrayProperty import logging class ArrayProperty(ndb.BlobProperty): def __init__(self,

[google-appengine] Re: Efficient way to store lists of smallish integers

2014-03-08 Thread Richard Watson
Depends on how efficient you need it to be. You could store multiple 3-digit numbers in a single 64-bit integer, e.g. 123 456 789 012 345 678. On Thursday, March 6, 2014 10:50:56 AM UTC+2, Pertti Kellomäki wrote: I need to store lists of smallish integers. The lists consist of a few tens of

[google-appengine] Re: Efficient way to store lists of smallish integers

2014-03-06 Thread timh
A repeated IntegerProperty is not that inefficient, and explicitly turn off the index if you don't need it. Alternately you options are a BlobProperty (pickle the list first) or as you say store it as json. T On Thursday, March 6, 2014 4:50:56 PM UTC+8, Pertti Kellomäki wrote: I need to

Re: [google-appengine] Re: Efficient way to store lists of smallish integers

2014-03-06 Thread Pertti Kellomäki
Thanks. Maybe I'm just being overly pessimistic about app engine's native storage efficiency. Pertti On Thu, Mar 6, 2014 at 11:18 AM, timh zutes...@gmail.com wrote: A repeated IntegerProperty is not that inefficient, and explicitly turn off the index if you don't need it. Alternately you