Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于数据库的选择,NoSQL or RDBMS #4

Open
guoxiangke opened this issue May 30, 2020 · 0 comments
Open

关于数据库的选择,NoSQL or RDBMS #4

guoxiangke opened this issue May 30, 2020 · 0 comments

Comments

@guoxiangke
Copy link

guoxiangke commented May 30, 2020

当初我在数据库和ORM选择,纠结到底是mongodb还是其他
最后选择的这个: Sequelize is a promise-based Node.js ORM for Postgres, MySQL, MariaDB, SQLite and Microsoft SQL Server. It features solid transaction support, relations, eager and lazy loading, read replication and more.
开发时,使用 简便的SQLite,以后有需要很容易扩展或切换其他关系型数据库。

我看到现在咱们是用关系表,并没有设计mongodb的强项。
image
图片来源:https://www.cnblogs.com/clsn/p/8214194.html#auto-id-14 1.3.5 MongoDB的优势

至于Nosql类型的配置,一般我放在了配置文件中,动态变化的配置部分,有2个选项,redis或rocksdb,这个rocksdb时我从wechaty里发现他们用的/依赖的,而且非常强大,据说是 TiDB的根,无服务器文件存储,有点像SQLite,但是是key-value的。
可以参考:
image

@guoxiangke guoxiangke changed the title 关于数据库的选择,nosql 关于数据库的选择,NoSQL or RDBMS May 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant