On startup we query the next schedule for every PartitionKey which is not very nice when we have many partition keys. Introduce a new method Map<PartitionKey, Instant> getNextSchedules(...) that uses a lateral join to return the schedules of all partition keys at once and do that on startup as a performance improvement.
On startup we query the next schedule for every PartitionKey which is not very nice when we have many partition keys. Introduce a new method
Map<PartitionKey, Instant> getNextSchedules(...)that uses a lateral join to return the schedules of all partition keys at once and do that on startup as a performance improvement.