I’m a beginner with Datastore, and I’m having an indexing issue I was hoping y’all could help with. I’m using a google.cloud.nbd model called Program, and I want to check that contact_email
is not null and the value for property claimer_digest_email_frequency
is among a list of values. That Python code looks like this:
matching_programs_keys = Program.query(
Program.contact_email != None,
Program.claimer_digest_email_frequency.IN(possible_values),
).fetch(keys_only=True)
Even though I’ve indexed our properties in the project I’m using, I’m still running into an indexing error. Any thoughts? Have I created my index correctly for this query? Is something else going wrong?
Indexes available in our GCP project
Error encountered
Cannon Wilson is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.