Skip to content

flylight/dynamodb-duplicate-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dynamo DB Duplicate Finder

Description

This is a simple example of how to deal with Dynamo DB Tables and looking for duplicated records using Global Secondary Index.

Feel free to reuse this approach in your code.

Example of usage :

    String region = eu-central-1;
    String tableName = testTable;
    String secondaryIndex = testColumn;

    DuplicateFinder duplicateFinder = new DuplicateFinder(region, tableName);
    duplicateFinder.startSearchOfDuplicates(secondaryIndex);

Build

This project can be used as embedded or stand alone solution.

To build project just use Maven command : mvn clean install. After this just go into target folder and execute in terminal:

java -jar DuplicateFinder.jar eu-central-1 testTable testColumn

Notice

Amazon Dynamo DB client uses credential provider that waiting your AWS_ACCESS_KEY and AWS_SECRET_ACCESS_KEY to be present in Environment or System variables.

Enjoy!

About

Find duplicated records in AWS Dynamo DB by Secondary Index column

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages