0.0.4 • Published 7 years ago

dynamodb-simple-scan v0.0.4

Weekly downloads
14
License
ISC
Repository
github
Last release
7 years ago

Description

Objectif is simplify the scan function of the aws-sdk package.

Using the parallel requests to optimize the network activity durring the Scan processuses.

Install

You can install this package via NPM

$ npm i --save dynamodb-simple-scan

or by cloning this repository

git clone 

Usage

var SimpleScan = require('dynamodb-simple-scan')

var AWS = require('aws-sdk')
var DynamoDB = new AWS.DynamoDB({
    accessKeyId: 'XXXXXXXXX',
    secretAccessKey: 'XXXXXXXXX',
    region: 'XXXXXXXX'
})

SimpleScan(DynamoDB, {
    TableName: 'MyTable'
}, function(err, res) {
    //All table items
    console.log(res)  
})

Todo

  • After parallel scan check if last scan are good executed, else launch scan untill scan finished.