Skip to content

Commit 7648016

Browse files
committed
feat: improve batch size for profile migration from 100 to 1000
1 parent f6037f9 commit 7648016

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tools/shell-commands/src/main/resources/META-INF/cxs/migration/migrate-3.1.0-00-fixProfileNbOfVisits.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ context.performMigrationStep("3.1.0-fix-profile-nbOfVisits", () -> {
5555
String profileId = hit._id
5656
profilesProcessed++
5757

58-
if (profilesProcessed % 100 == 0) {
58+
if (profilesProcessed % 10000 == 0) {
5959
context.printMessage("Processed ${profilesProcessed} profiles...")
6060
}
6161

tools/shell-commands/src/main/resources/requestBody/3.1.0/profile_scroll_query.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"size": 100,
2+
"size": 1000,
33
"query": {
44
"bool": {
55
"must": [

0 commit comments

Comments
 (0)