[
https://issues.apache.org/jira/browse/FINERACT-2066?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Adam Saghy resolved FINERACT-2066.
----------------------------------
Resolution: Fixed
> Adding a fine-tuning capability on the send async job
> -----------------------------------------------------
>
> Key: FINERACT-2066
> URL: https://issues.apache.org/jira/browse/FINERACT-2066
> Project: Apache Fineract
> Issue Type: Improvement
> Reporter: Norbert Táskai
> Priority: Major
> Fix For: 1.10.1
>
>
> The send async job updates the events as {{SENT}} with below code snippet -
>
> {{List<List<Long>> partitions = Lists.partition(eventIds, 5_000);
> partitions.forEach(partitionedEventIds -> \{
> measure(() -> {
> repository.markEventsSent(partitionedEventIds, sentAt);
> }, timeTaken -> \{
> log.debug("Took {}ms to update {} events",
> timeTaken.toMillis(), partitionedEventIds.size());
> });
> });}}
> We are thinking if
> # the size of 5000 could be configurable?
> # also parallelize the partitions while updating the status?
> This will help fine tune the events throughput with increased USPI4 traffic.
> {panel}
> {panel}
> {panel}
> *Acceptance Criteria*
> * Configuration can be defined (in environment config)
> * Limit in config should be 25K as a postgresql limitation
> {panel}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)