Are GAE types recommended?

I see that GAE provides several types, such as Email or PostalAddress, for entities . I read that they do not give any verification. So I'm wondering: what's the use of using them instead of storing data in a simple String field? Any reason I should use them?

EDIT: answer to this question question

+4
source share
2 answers

Currently, their only goal is that they easily convert to the gdata atom channels Google uses. These are probably the areas that were implemented within the framework on which GoogleApps is built and which were included in the AppEngine data model. Thus, if you want to create an application that interacts with GoogleApps, it is much easier.

I am also sure that the values ​​are "normalized" correctly for indexing. LinkProperty is most likely changed from www.stackoverflow.com to com.stackoverflow.www.

+1
source

I hope Google will answer this. Some assumptions:

  • Python docs talks about how these types of properties are represented in gdata . Can you create an instance of the Email property from the gdata feed and then set it to the data store object? Could your app for the app (someday) provide a gdata-style web service?
  • Google may have a heuristic regarding storage requirements of these types that help them optimize storage in the data warehouse.
  • Perhaps they will add functionality to these types in a later version.
  • Perhaps they like to type on a typewriter. A.
+2
source

Source: https://habr.com/ru/post/1338651/


All Articles