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
Accounting/Inventory/Orders/Sales/Purchase on Google Cloud Platform and Mobile