哪个数据库要与node.js一起使用? [英] Which database to use with node.js?

查看:302
本文介绍了哪个数据库要与node.js一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新的node.js所以请好好对我,并帮助我决定哪个数据库应该用于我的node.js项目?

i am new to node.js so please be kind to me and help me in deciding that which database should i use for my node.js project?

MYSQL

MONGO DB

/ p>

Thanks

推荐答案

正确答案是:这取决于。

The correct answer is: it depends.

编程语言节点具有用于数据库的各种适配器。 Ture,有些比别人更好,但是他们都在变化和发展如此之快,以至于这里的任何陈述很快就会过时。即使你选择一个数据库,你会发现至少两个或三个适配器具有不同的质量。

Like many other programming languages node has various adapters for databases. Ture, some are better than others, but they are all changing and evolving so fast that any statement here would be outdated soon. Even if you select one database, you will find at least two or three adapters with different qualities.

到底是什么是真的不适合Node ,但什么是一个很好的适合你的项目。试图将关系问题挤入到NoSQL存储中将不会有好处。

In the end it does not really matter what is a good fit for Node, but what is a good fit for your project. Trying to squeeze a relational problem into a NoSQL storage will do you no good.

节点社区为您提供了许多可能性。查看节点工具箱,找到CouchDB,MongoDB,Redis,数据库抽象层,MySQL,...的一些解决方案。总是你需要一点常识来选择正确的模块。查看提交历史,有多少维护者,活动,最后提交时间戳,问题队列等。你一定会找到一个你感觉舒服的数据库的解决方案。

The node community provides you with lots of possibilities. Take a look at the Node Toolbox to find some solutions for CouchDB, MongoDB, Redis, Database abstraction layers, MySQL, … As always you need a bit of common sense to choose the right module. Look at commit history, how many maintainers, activity, last commit timestamp, issue queue, etc. You will surely find a solution for a database that you are comfortable with.

我个人认为,当我不得不同时学习一种以上的技术时,它是相当压倒性的。所以如果你是新来的节点,我宁愿坚持你知道你的第一个项目的数据库。

I personally find it rather overwhelming when I have to learn more than one technology at once. So if you are new to node, I would rather stick to a database you know for your first project.

这篇关于哪个数据库要与node.js一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆