Hi,
I have the following ofy class

class Job {
  @Id
   Long id;
  @Index
  String tenantId;
  @Index
  long partyOrgId;
  @Index
  long seqId
}

ofy.query.filter("tenantId", tenantId).filter("partyOrgId",
partyOrgId).sort("-seqId").first().now();

The above query throws an composite needed index exception error

<datastore-index kind="Job" ancestor="false" source="manual">
        <property name="partyOrgId" direction="asc"/>
        <property name="tenantId" direction="asc"/>
        <property name="seqId" direction="desc"/>
</datastore-index>

I was thinking, that the query should work with the help of the zigzag
merge join without the need for the composite index.

Regards,
Rajesh
*www.VeersoftSolutions.com <http://www.VeersoftSolutions.com>*
*www.GainERP.com <https://www.gainerp.com>*
*Accounting/Inventory/Orders/Sales/Purchase on Google Cloud Platform and
Mobile*

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CA%2BS7ijZjJRA1rJS85mPmppykqVet3-_hG1F_x3E9hj2F2UKRUQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appengine]... Rajesh Gupta

Reply via email to