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