Skip to content

Commit 41a41e2

Browse files
author
Michael Cuthbert
authored
Merge pull request #82 from osmlab/lower-batch-size
lower batch limit
2 parents ab1477c + 2f5b540 commit 41a41e2

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
@@ -35,7 +35,7 @@
3535
@RequiredArgsConstructor
3636
public class ChallengeBatch
3737
{
38-
private static final int MAXIMUM_BATCH_SIZE = 5000;
38+
private static final int MAXIMUM_BATCH_SIZE = 500;
3939
private final Logger logger = LoggerFactory.getLogger(ChallengeBatch.class);
4040
private final ObjectMapper mapper = ObjectMapperSingleton.getMapper();
4141
private final IMapRouletteConnection connection;
@@ -143,8 +143,8 @@ private boolean uploadBatchTasks(final long challengeId, final List<Task> data)
143143
{
144144
final var uniqueTasks = new ArrayList<Task>(data.size());
145145
uniqueTasks.addAll(data);
146-
// MAXIMUM batch size is 5000, so if greater than 5000, we need to make multiple
147-
// requests in groups of 5000
146+
// MAXIMUM batch size is 500, so if greater than 500, we need to make multiple
147+
// requests in groups of 500
148148
var succeeded = true;
149149
var startIndex = 0;
150150
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)