mirror of
https://github.com/simon987/sist2.git
synced 2025-12-16 00:39:04 +00:00
UI fix, disable thumbnail option, batch index size option
This commit is contained in:
@@ -9,7 +9,6 @@
|
||||
|
||||
#include "static_generated.c"
|
||||
|
||||
#define BULK_INDEX_SIZE 100
|
||||
|
||||
typedef struct es_indexer {
|
||||
int queued;
|
||||
@@ -173,7 +172,7 @@ void elastic_index_line(es_bulk_line_t *line) {
|
||||
|
||||
Indexer->queued += 1;
|
||||
|
||||
if (Indexer->queued >= BULK_INDEX_SIZE) {
|
||||
if (Indexer->queued >= IndexCtx.batch_size) {
|
||||
elastic_flush();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user