Skip to content

Commit 53b5eef

Browse files
committed
lower batch limit
1 parent 2d7d20c commit 53b5eef

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/java/org/maproulette/client/batch/ChallengeBatch.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
@RequiredArgsConstructor
3535
public class ChallengeBatch
3636
{
37-
private static final int MAXIMUM_BATCH_SIZE = 5000;
37+
private static final int MAXIMUM_BATCH_SIZE = 500;
3838
private final Logger logger = LoggerFactory.getLogger(ChallengeBatch.class);
3939
private final ObjectMapper mapper = new ObjectMapper();
4040
private final IMapRouletteConnection connection;
@@ -140,8 +140,8 @@ private boolean uploadBatchTasks(final long challengeId, final List<Task> data)
140140
{
141141
final var uniqueTasks = new ArrayList<Task>(data.size());
142142
uniqueTasks.addAll(data);
143-
// MAXIMUM batch size is 5000, so if greater than 5000, we need to make multiple
144-
// requests in groups of 5000
143+
// MAXIMUM batch size is 500, so if greater than 500, we need to make multiple
144+
// requests in groups of 500
145145
var succeeded = true;
146146
var startIndex = 0;
147147
int endIndex;

src/main/java/org/maproulette/client/connection/MapRouletteConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
@Getter
2121
public class MapRouletteConfiguration implements Serializable
2222
{
23-
private static final int DEFAULT_BATCH_SIZE = 5000;
23+
private static final int DEFAULT_BATCH_SIZE = 500;
2424
private static final int API_KEY_INDEX = 3;
2525
private static final int NUMBER_OF_COMPONENTS = 4;
2626
private static final int PORT_INDEX = 1;

0 commit comments

Comments
 (0)