Default q.page_size() used by anvil?

Hi guys,

random question: I’m using q.page_size(X) relatively often in my datatable queries to optimise fetches.

I have just come across a case where I’m not doing that and I have an error “anvil.server.InternalError: Payload too large (17284677)”

Setting the pagesize to q.page_size(10) solves the issue.

I’m therefore wondering: How big is the default page size that anvil uses when nothing is specified?

Cheers,
David

It should default to 100. You can test it out by accessing an element at the 100th index and see if that causes a delay

3 Likes