I am storing the data for my app in Google's NDB, but am confused as to what architecture to use. The app data is mostly text based, but has some non-text properties like DateTimeProperty
, FloatProperty
and one or two BooleanProperty
's.
I could store each property correctly (e.g. a datetime
is stored as a DateTimeProperty
), or I could already package all the data up as a JSON object and store it as a JsonProperty
.
Storing everything as a JsonProperty
gives the benefit of taking up less space (there's a compress
flag that causes the content to be gzipped), but taking this approach makes it harder to search the database with query()
.
Which approach is better to take?