且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

哪个 noSQL 数据库最适合大量插入/写入?

更新时间:2023-11-23 14:46:52

Apache Cassandra 写得很好操作,这要归功于其独特的持久性模型.有人声称它的写入速度比读取速度快 20 倍,但我相信这真的取决于您的使用情况.

他们的常见问题解答各种 博客 帖子.

当然,如果您有大量数据的经典"数据库配置文件.如果您的数据很小,或者被临时使用和/或作为缓存层,那么当然选择 Redis,它具有最快的读取和写入吞吐量,因为它是基于内存的(最终具有磁盘持久性).>

Which nosql system is better equipped for handling high volume inserts out of the box? Preferably, running on 1 physical machine (many instances allowed).

Has anyone done any benchmarks? (googling did not help)

Note: I understand that choosing noSQL database depends on what kind of data needs to be stored (document:MongoDB, graph:Neo4j, etc.).

Apache Cassandra is great in write operations, thanks to its unique persistence model. Some claim that it writes about 20 times faster than it reads but I believe it's really dependent on your usage profile.

Read about it in their FAQ and in various blog posts.

That is, of course, if you have "classical" DB profile of large amounts of data. If your data is small, or is used temporarily and/or as a cache layer, then of course opt for Redis which has the fastest throughput both for reads and for writes, since it's memory-based (with eventual disk persistence).