I'm new to Amazon DynamoDB
and perhaps my problem is stemming from my SQL knowledge.
I want to have a very simple Form
table. That table holds name
, date
, enquiry
. The idea behind this is to capture user submissions via various websites' enquiry forms.
When I setup the table, I was asked for an index, so a sensible choice for me was Client Name
. The Client Name
was going to be the name of the website which the forms were being sent from.
So I setup the table, created a vagrant machine, and got everything running with Amazon SDK.
However, when I started sending 2 forms to Amazon for the same client, they overwrote each other.
What I'm thinking is that the index needs to be unique to the form, however there isn't a way to auto increment them. Without the auto incrementation, it seems I need to query the database before a insert any data, it seems an odd way to do things.
How do I setup the indexes properly for my situation?