Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why Email, Username, PostalCode, etc as entities in GAE Datastore

I have seen the in GAE datastore there are so many entity which at the end are Strings, at least apparently.

List of GAE Java Datastore Entities

I'd like to know the underneath reason for that? indexing? semantic search?

like image 826
Jordi P.S. Avatar asked Dec 09 '22 01:12

Jordi P.S.


1 Answers

It's quite clear to me -- the question is what were we (Google App Engine designers) thinking when we added those "semantic" property types.

I wasn't on the team then, but I think we were enamored with automatically generating XML from entities using the ATOM schema. I don't think this is very popular or useful in practice. You're free to ignore these -- their validation is all trivial (must not be empty).

In NDB (a new Python client for the datastore) I decided not to support these semantic property types or XML generation and so far only one person requested it: http://code.google.com/p/appengine-ndb-experiment/issues/detail?id=96

like image 157
Guido van Rossum Avatar answered Dec 11 '22 15:12

Guido van Rossum