Code Monkey home page Code Monkey logo

go-ddb's People

Contributors

harlow avatar maccman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

go-ddb's Issues

updates to this module (go mod, aws sdk v2)

thanks for providing this useful module. We have created an updated version (go modules support, aws sdk v2, some configuration enhancements) to fit our use cases. Are you interested in a pull-request?

Does SegmentCount=N create N coroutines?

Hi I wanted to verify that SegmentCount=N creates 150 routines.

scanner := ddb.NewScanner(ddb.Config{
    TableName:     "ddb-table-name",
    TotalSegments: 150,   // calculate value: (table size GB / 2GB)
    SegmentOffset: 0, // optional param for controlling offset
    SegmentCount:  150, // optional param for controlling how many routines get created
})

I used the following AWS CLI command trying to utilize the parallel scan function but didn't realize that it would only return the results of the 1 partition.

aws dynamodb scan --table-name LargeTable --region us-east-1 --total-segments 150 --segment 0 --query "Items[*].[category1.N,category2.N,category3.N]" --output text

Does scanner go through all of the partitions?

Thank you!

Add checkpoint functionality

When scanning big tables a checkpoint can be used to store the last position of the scan.

  • store the last sequence number back to dynamo checkpoint table
  • update Reamde with instructions

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.