Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
fix: change ES writes to use Bulk APIs (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsmayda committed Jul 29, 2021
1 parent d668712 commit 7eee06e
Show file tree
Hide file tree
Showing 5 changed files with 535 additions and 176 deletions.
15 changes: 15 additions & 0 deletions src/ddbToEs/ESBulkCommand.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/

export type OperationType = 'delete' | 'upsert-AVAILABLE' | 'upsert-DELETED';

export default interface ESBulkCommand {
bulkCommand: any[];
/**
* This will be a unique identifier or composite id i.e. `<id>_<vid>`
*/
id: string;
type: OperationType;
}
Loading

0 comments on commit 7eee06e

Please sign in to comment.