Different results using summarize vs filtering
Hi team (it's me, again),
I'm seeing that, at least in the playground, there is a difference of results when using summaries vs using filtering query (I'll add examples). To make it short, summaries are only returning 20 results, whereas it should be returning more (22, in our current data set).
Is there a limit of the number of results provided by a summarize call? It is returning only 20 results.
I would like you guys to tell me that there is something very wrong in our code. Like we need to call summarize with something different.
Note to Kostas: The workspace and the table and the branch are the same as yesterday š
Thanks!
6 Replies
Displays (with our current case 22 results).
But using summaries:
(Apologies, i was hitting the 2k character limit)
Hey @Eusebio Trigo try this for summarize:
It just adds the
pagination.size
parameter. By default summarize returns up to 20 results, but can be adjusted up to 1000: https://xata.io/docs/sdk/summarize#page
Let me know if the numbers align with this?Thanks! I'll try right now. Doing more tests on other sides. This is why the constraint violation from yesterday.
RTFM > The default setting for size , if not specified in the request, is 20 results. We allow you to set this between 1 and 1000.
š
I see, sorry this ended up requiring extended troubleshooting but I'm glad we probably got to the bottom of it. Let me know how it goes though.
Don't be sorry. This was on us. And we are getting there! We got to the why.
Just tested it in the playground, it displays the 22 iscodes, so i'm happy. Summarize > query and filter
Like a charm! Thank you!
That's great news! Thanks for circling back