Skip to content

Commit

Permalink
add wait_for_completion,refresh to updateByQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
fly committed Sep 4, 2018
1 parent 54fc016 commit 649c791
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/fly/sync/es/Writer.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ public void updateByQuery(AbstractRelateAction relateAction)
River.Table table = dbFactory.getRiverDatabase().getTable(associate.calledTable.tableName);
Map<String, String> params = new HashMap<>();
params.put("conflicts", "proceed");
params.put("refresh", "false");
params.put("wait_for_completion", "false");

int offset = associate.findOffset(record.table);
// == 0 is a sync-table, not a relation
Expand Down

0 comments on commit 649c791

Please sign in to comment.