1. Background
I need to insert 20 billion rows of data into SQL server, but the limit for Express SQL version is only 10 GB. So I tried AWS DynamoDB, which is a NoSQL database.
2. Prerequisites
- A DynamoDB table on AWS, which can be done on the website.
- aws_access_key_id and aws_secret_access_key, which are set up from your AWS account.
3. Examples
boto3 is the package to connect to DynamoDB, like the following:
import boto3
We need to specify 3 parameters, which are aws_access_key_id, aws_secret_access_key and region_name, like the following:
dynamodb = boto3.resource('dynamodb', aws_access_key_id='accessid',
aws_secret_access_key= 'accesskey', region_name='us-east-1'