New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

dynamodb-batch-insert

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dynamodb-batch-insert

inserts a batch of records into dynamodb

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

This is used to insert a batch of items into a dynamo db table with retries to get around the throughput limitations.

The code was copied as is from: https://stackoverflow.com/a/49169600/431522.

Here is an example of how to use it:

const batchInsert = require('dynamodb-batch-insert');
...
await batchInsert({
  tableName: 'People',
  list: [{ name: 'Hendrik' }, { name: 'Stewart' }],
  chunkSize: 10, // adjust to provisioned throughput. Max 25 (batchWrite dynamodb limit)
  msDelayBetweenChunks: 1000,
  documentClient,
});
...

Keywords

dynamodb

FAQs

Package last updated on 27 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts