Hi, I'm an old-school ETL dev who (until now) has only worked with relational dbs. I'm learning about nosql in its various forms, and my company has specifically mentioned dynamoDB (we are moving a lot of infrastructure to Amazon, for better or worse....) Anyway, my question is more of a general query about relation vs any sort of nosql, not anything specific to dynamoDB.
I get that there aren't really foreign keys, and no schema. That said, "child" data is being stored presumably. So my issue becomes: what happens when a piece of data changes value that happens to be used in various attributes (records)? I have several issues that spring to mind, but first since that probably doesn't make sense (likely due to me misusing terminology) I'll give an example.
If you store people's names in various places in the db, what happens when someone changes their name?
The example docs for dynamoDB mention key/value pairs, so I guess it might look like this:
(context of people messaging) - recipient:John Smith
(context of who bought something) - buyer:John Smith
and so on.
So: If John Smith changes his name, you'd have to look for his name in various (unknown) places in every record, replacing the value string with the new name?
Related: Obviously there can be more than one "John Smith". With only a name/value that contains the name, how can we ensure the right John Smith is targeted with our updates?
Do you have another key/value pair for ID everywhere there is a person (or any entity for that matter) to be able to handle this kind of "foreign key" functionality?
Apologies if I'm way off the reservation on this. I am finding that most of the learning material focuses mainly on "scale" and not on this kind of business use, and it's hard for me to learn new things when I immediately think of reasons it might not work ;-) Best I get the answers as the questions occur or they'll nag me
I get that there aren't really foreign keys, and no schema. That said, "child" data is being stored presumably. So my issue becomes: what happens when a piece of data changes value that happens to be used in various attributes (records)? I have several issues that spring to mind, but first since that probably doesn't make sense (likely due to me misusing terminology) I'll give an example.
If you store people's names in various places in the db, what happens when someone changes their name?
The example docs for dynamoDB mention key/value pairs, so I guess it might look like this:
(context of people messaging) - recipient:John Smith
(context of who bought something) - buyer:John Smith
and so on.
So: If John Smith changes his name, you'd have to look for his name in various (unknown) places in every record, replacing the value string with the new name?
Related: Obviously there can be more than one "John Smith". With only a name/value that contains the name, how can we ensure the right John Smith is targeted with our updates?
Do you have another key/value pair for ID everywhere there is a person (or any entity for that matter) to be able to handle this kind of "foreign key" functionality?
Apologies if I'm way off the reservation on this. I am finding that most of the learning material focuses mainly on "scale" and not on this kind of business use, and it's hard for me to learn new things when I immediately think of reasons it might not work ;-) Best I get the answers as the questions occur or they'll nag me