What I’m trying to do: Get a total count of orders marked as fulfilled between two dates.
I have run into quota issues and saw that, theoretically, I could use “analyze: true” to basically return the number of records that the query would normally return without the need for paging.
Am I incorrectly understanding how this parameter works? If not, here is an example of my query. I have tried rearranging all of the parameters for order but get the same results.
Hello @jfrye,
That field does not return the number of results that will be returned from our DB but analyzes the theoretical maximum that can be returned with the limits passed. It is useful when there are many edges where it may be harder to understand how many credits it would cost to run that query.
For instance, if you query a maximum of 100 orders, you will need 100 credits. However, if we only find 5, we will charge you 5. We still need you to have the theoretical maximum that the query could cost in case we find 100 orders that match the query parameters. This is the difference between the estimated complexity and the actual cost in the response.
So, returning to the question, the analysis field will return 100, not 5.