Pocabana
Pocabana

Reputation: 5

How to design with DynamoDB

I need to design a specific schema using DynamoDB, but I'm stuck. I don't understand how it's working... What I need is to re-create this schema with 1 or 2 class in DynamoDB and without Index.

Is it possible? Thanks ! Bests !

my_schema

Upvotes: 0

Views: 104

Answers (1)

NoSQLKnowHow
NoSQLKnowHow

Reputation: 4845

One of the worst things I see is people taking an existing relational schema and shoehorn it into a NoSQL database. I say this as you need to be modeling for your application's access patterns, not for 3rd normal form. It takes a mindset shift for most people.

So to answer your question and help you solve your problem, you need to think about this problem a bit differently, start over to a point and gather more information about your workloads. Here are the initial questions I ask when I help people do schema design for NoSQL databases and ones you should be asking and trying to answer:

  1. What data does the application need and when in the application's workflow?
  2. What are the "hot paths" of your application that you need to optimize for?

For more information on this, and it covers these and other questions for you to plan this, I recommend you read these three pages from the DynamoDB docs:

  1. Relational Modeling
  2. Relational Modeling First Steps
  3. Relational Modeling Example

Upvotes: 1

Related Questions