yuuvis® RAD Q&A

0 votes
by (2.3k points)

in the respective case there are more than 1000 items in the inbox of a user and the customer insists that this in and of itself is fine. Since the inboxservice does not provide more than 1000 items per call that is a problem. how do i increase the amount delivered by the inbox service?

1 Answer

0 votes
by (2.3k points)

if your inbox service only returns X elements (usually 1000) but there are more. you can increase the page size the service requests from the server.

if you are calling the inbox like


and it states that it returns only 1000 items even though it also states that there are more and in the return the value for size is 1000 that indicates that the pagin is in your way. I'll request paging to be implemented in the inbox but for the time beeing we need to increase the page size.

to achieve that we need to alter the inbox-prod.yml to include these two lines and restart the inbox service:

spring.data.web.pageable.max-page-size: 2000
spring.data.rest.max-page-size: 2000

after that the request should gather more items

BUT: if you increase that number this will eventually have a performance impact. So the much prefered course of action is to question if an inbox with so many items is maybe an indicator of bad design choices.