Create OR queries in the Google App Engine data model

I want to make this request: "Choose a name from Person where Address =" "OR age =" "". Is this possible in the GAE model. All things include AND closure, not OR. How can I do this using JDO / JPA, Objectify. thanks in advance

+4
source share
2 answers

There is no OR operation in the data store. You must make two separate queries and find the intersection in your own code.

http://code.google.com/appengine/docs/python/datastore/gqlreference.html

+5
source

I recommend anyone who is having difficulty with the GAE data model to watch this video. It explains how this works, then you will understand why there are limitations.

http://sites.google.com/site/io/under-the-covers-of-the-google-app-engine-datastore

0
source

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


All Articles