Description
Hi,
I’m using the db-scheduler UI extension and have developed a Ktor plugin for Kotlin based on this library. I haven’t tried the Spring Boot version yet.
In my Kotlin application, I utilize TaskLogic. During load testing with the showData option enabled, I observed that simply refreshing or accessing the /db-scheduler page causes memory usage to peak. I believe this is because db-scheduler eagerly populates a list through a consumer instead of exposing a Flux, as seen in Caching.java (Lines 48-53). Whereas pageSize should be considered before executing the query or limiting the Flux before it is collected.
For example, with 10k scheduled tasks each containing 150KB of data, the UI attempts to retrieve 150MB of data on every refresh and mouse hover unless showData is disabled. Even when showData is turned off, the UI still fetches task names and dates for all 10k items, effectively ignoring the pageSize setting.
Have you encountered this issue before, or is there a configuration option available to modify this behavior?
Thanks!