Hello ! How one can make a query on typesense host...
# community-help
g
Hello ! How one can make a query on typesense hosted to change the per page and get 100k records ? I just need the ids.
f
The maximum number of results per page is
250
👍 1
e
I think it returns 250 max per page, unless something changed recently
g
Yes but I need more 🙂
e
It'd be nice if it was configurable
I get the reasons for it, but always good to have an override
f
Can you give me your cluster's ID? We can override it for you.
e
That's a huge benefit for hosted! Very good to know 👍
f
On self-hosted, you can use the
max-per-page
startup param:
🚀 1
g
hey great
I know it could be not effective
but we just need this for the following issue : https://typesense-community.slack.com/archives/C01P749MET0/p1748283329121419 Basically returning 100k records (30k is fine) per page, and only the ids would allow to clusterize client side
gfixplsrk0ab8w65p
f
You us to increase it to 100k?
g
50k will be ok
I guess I can then simply use
select
to return few fields and limit the bandwidth
Copy code
client.collections('books').documents().search({
	query: 'harry potter',
	select: 'title,author',
})
f
Just changed it. For the changes to take effect, you'll need to initiate a rolling restart of your cluster. Go to your Cluster's configuration page, hit the Modify button, and schedule an update with no changes. When the restart is complete, the maximum number of results fetched per page will be 50k.
g
ok testing !
thanks
🙌 1
rebooting in progress
in progress 🔄
hmm
image.png
one node is keep
unhealthy
f
It will have to reindex the whole dataset before completing
g
ok, still failing...
ok, now it's
node 2
, is there a particular order ?
f
It was part of the rotational restart. It should be fine now
g
yes it is
f
And it should be returning 50k documents as well
g
it works !
thanks
🙌 1
@Fanis Tharropoulos could you please do the same for the following instance:
9wzbvihlrd2e0tg8p
thanks
f
I just initiated the restart
g
thanks