python - ListProperty vs StringListProperty on Google App Engine -


i want store lists of integers (user ids), should make them strings , use stringlistproperty, or use listproperty, i'm wondering more optimized, specific stringlistproperty of heterogeneous listproperty (when used integers).

i need add users list until reaches number, , create group instance users (in separate entity group).

stringlistproperty thin wrapper around listproperty. there's no meaningful difference other element type.

from the code itself:

class stringlistproperty(listproperty):   def __init__(self, verbose_name=none, default=none, **kwds):     super(stringlistproperty, self).__init__(basestring,                                              verbose_name=verbose_name,                                              default=default,                                              **kwds) 

i'd recommend storing integers in plain listproperty, since can query , sort them correctly, ie numerically, in datastore queries, can't if convert them strings.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -