App Engine NDB query with multiple inequalities? -


the 2 answers on here involve restructuring database accommodate limitation, unsure how in case.

i have list of thousands of contacts, each many many properties. i'm making page has ability filter on multiple properties @ once.

for example: age < 15, date added > 15 days ago, location == santa cruz, etc. potentially ton of inequality filters required. how 1 achieve in gae?

according the docs (for python),

limitations: datastore enforces restrictions on queries. violating these cause raise exceptions. for example, combining many filters, using inequalities multiple properties, or combining inequality sort order on different property disallowed. filters referencing multiple properties require secondary indexes configured.

if check in few months, may change. gae keeps changing pretty quickly.

for now, though, you'll have make multiple queries , combine them in code.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -