Skip to content

Commit

Permalink
Merge pull request #1213 from ashitsalesforce/master
Browse files Browse the repository at this point in the history
minor perf improvement for upload operations
  • Loading branch information
ashitsalesforce authored Aug 9, 2024
2 parents 3a9c33d + 663de4a commit 4729d12
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,13 @@ protected DAOLoadVisitor(Controller controller, ILoaderProgress monitor, DataWri

this.columnNames = ((DataReader)controller.getDao()).getColumnNames();

dynaArray = new ArrayList<DynaBean>();

List<DynaBean> dynaList = null;
try {
dynaList = new ArrayList<DynaBean>(((DataReader)controller.getDao()).getTotalRows());
} catch (DataAccessObjectException e) {
dynaList = new ArrayList<DynaBean>();
}
dynaArray = dynaList;
SforceDynaBean.registerConverters(getConfig());

this.batchSize = getConfig().getImportBatchSize();
Expand Down

0 comments on commit 4729d12

Please sign in to comment.