Skip to content

Commit

Permalink
[ALS-0000] Quick fix to time series. Use different batch size
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Sikina authored and Luke-Sikina committed Jan 14, 2024
1 parent 6da2a0f commit 4eca259
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ private void addDataForConcepts(Collection<String> pathList, Set<String> exporte
dataEntries.add(entryData);
}
//batch exports so we don't take double memory (valuesForKeys + dataEntries could be a lot of data points)
if(dataEntries.size() >= ID_BATCH_SIZE) {
if(dataEntries.size() >= (ID_BATCH_SIZE > 0 ? 10 : ID_BATCH_SIZE)) {
result.stream.appendResults(dataEntries);
dataEntries = new ArrayList<String[]>();
}
Expand Down

0 comments on commit 4eca259

Please sign in to comment.