TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How to Automate Database Migrations in MongoDB Using Nodejs

1 pointsby banna2over 6 years ago

1 comment

stephenrover 6 years ago
This is why I can’t take mongodb or nodejs seriously.<p>First off: you need two separate third party packages to achieve `mkdir -p` and `rm -rf`? How is that not a giant red flag for anyone reading this?<p>Secondly: this is exactly why I don’t buy the “having to define a schema slows down dev, so we can’t use sql”.<p>You clearly <i>do</i> have a schema, it’s just that it exists almost solely in your application code (i <i>hope</i> you at least have indexes in the db?). But now because your schema is changing rapidly you need a way to update the schemaless documents to meet... the new schema.<p>So now you’re back writing more fucking javascript to update the schema of your documents that are “schemaless” because your schema changes so often.<p>Did I miss anything?
评论 #18207580 未加载