Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

performance changes HUBDEV-2375 #160

Open
wants to merge 1 commit into
base: perf_improve_mediator2.1.5
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,9 @@ public void insertSMSRequestIds(String requestId, String senderAddress, Map<Stri
ps.addBatch();
}

gatewayRequestIds.clear();
queryString.setLength(0);

log.debug("sql query in insertSMSRequestIds : " + ps);

ps.executeBatch();
Expand Down Expand Up @@ -679,7 +682,7 @@ public void insertSMSRequestIds(String requestId, String senderAddress, Map<Stri
log.error("error in insertSMSRequestIds : ", e);
throw e;
} finally {

DbUtils.closeAllConnections(ps, con, null);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public boolean mediate(MessageContext messageContext) {

try {
new SMSMessagingService().insertSMSRequestIds(requestId, senderAddress, addressToOperatorRequestIdMap);
addressToOperatorRequestIdMap.clear();
} catch (BusinessException e) {
log.error("Error inserting request ids for send SMS operation", e);
return false;
Expand Down