r/reactjs • u/swyx • Aug 01 '18
Beginner's Thread / Easy Question (August 2018)
Hello! It's August! Time for a new Beginner's thread! (July and June here)
Got questions about React or anything else in its ecosystem? Stuck making progress on your app? Ask away! We’re a friendly bunch. No question is too simple. You are guaranteed a response here!
Want Help on Code?
- Improve your chances by putting a minimal example on to either JSFiddle (https://jsfiddle.net/Luktwrdm/) or CodeSandbox (https://codesandbox.io/s/new). Describe what you want it to do, and things you've tried. Don't just post big blocks of code.
- Pay it forward! Answer questions even if there is already an answer - multiple perspectives can be very helpful to beginners. Also there's no quicker way to learn than being wrong on the Internet.
New to React?
Here are great, free resources!
26
Upvotes
View all comments
Show parent comment
3
u/swyx Aug 15 '18
What if you don’t know your data models when you start? As a rapidly iterating startup you have to do a lot of changes to your data as your product grows in complexity. In sql that means a lot of migrations. In nosql you just add a new field.
Obviously there’s problems with that too but it’s kinda like asking if FP or OO is better. Both work and have tradeoffs.
Having relational tables optimises for query speeds of large amounts of data, not speed of iteration. If you don’t have that much data you don’t see the benefit and still have the cost of keeping the relations up to date.