Skip to content

Commit cd3458e

Browse files
fix: update async re-indexing to happen when size >= 100MB
1 parent b4e0dac commit cd3458e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/reindexer/handlers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func reindexConfigResponse(req *http.Request, w http.ResponseWriter, sourceIndex
115115
// By default, wait_for_completion depends on size of index
116116
param := req.URL.Query().Get("wait_for_completion")
117117
if param == "" {
118-
// Get the size of currentIndex, if that is > IndexStoreSize (5MB - 5000000 Bytes) then do async re-indexing.
118+
// Get the size of currentIndex, if that is > IndexStoreSize (100MB - 100000000 Bytes) then do async re-indexing.
119119
size, err := getIndexSize(req.Context(), sourceIndex)
120120
if err != nil {
121121
log.Errorln(logTag, ":", err)

plugins/reindexer/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var CurrentlyReIndexingProcess = make(map[string][]string)
3434
var CurrentlyReIndexingProcessMutex = sync.RWMutex{}
3535

3636
// IndexStoreSize to decide whether to use async or sync re-indexing
37-
const IndexStoreSize = int64(5000000)
37+
const IndexStoreSize = int64(100000000)
3838

3939
// reindexedName calculates from the name the number of times an index has been
4040
// reindexed to generate the successive name for the index. For example: for an

0 commit comments

Comments
 (0)