Reputation: 821
I'm very new to no sql databases and to DynamoDb particularly. We're implementing the dot net application that will parse csv files and store its rows as separate records in AWS DynamoDb table. Each file can contain from 50 to 20000 rows.
In relational sql DB that we use the table would have such structure:
[dbo].[FileRecords]
Now I need to implement it in ASW DynamoDB. I've been investigating the DynamoDb documentation and sketched the following table structure:
Primary key
Partition_key | Sort_key | Data
FileId | Status_recordId | Json
So data will looks following:
File1 Processing_record1
File1 Processing_record2
File1 Error_record3
File1 Error_record4
File2 Processing_record1
File2 Processing_record2
....
File2 Processing_record5000
File2 Processing_record5001
File2 Processing_record5002
FileID is the partition key of primary key, and the Sork_key is composite which is concatenation of status+unique row identifier. Our DynamobDb mode is "On Demand"
Questions I would like someone to help me with:
File1_1 Processing_record1
File1_1 Processing_record2
File1_1 Error_record3
File1_1 Error_record4
File2_1 Processing_record1
File2_1 Processing_record1
....
File2_1 Processing_record5000
File2_2 Processing_record5001
File2_2 Processing_record5002
Thanks, Evgeny.
Upvotes: 1
Views: 472
Reputation: 1106
Upvotes: 0