问题描述
了解了 NoSQL 提供的一些优势(可扩展性、可用性等)后,我仍然不清楚为什么网站要使用非关系型数据库.我可以得到一些帮助吗,最好是一个例子?
Having understood some of the advantages that NoSQL offers (scalability, availability, etc.), I am still not clear why a website would want to use a non-relational database.Can I get some help on this, preferably with an example?
推荐答案
更好的性能
NoSQL 数据库有时具有更好的性能,尽管这取决于具体情况并且存在争议.
NoSQL databases sometimes have better performance, although this depends on the situation and is disputed.
适应性
您可以在不停机的情况下添加和删除列".在大多数 SQL 服务器中,这需要很长时间,并且会占用大量负载.
You can add and remove "columns" without downtime. In most SQL servers, this takes a long time and takes up a load of load.
应用设计
将数据存储与逻辑分离是可取的.如果您在 SQL 查询中加入和选择事物,则您将业务逻辑与存储混合在一起.
It is desirable to separate the data storage from the logic. If you join and select things in SQL queries, you are mixing business logic with storage.
这篇关于为什么我们要使用 NoSQL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!