简体   繁体   English

couchdb vs mysql速度

[英]couchdb vs mysql speed

What can you tell about speed of couchdb and mysql databases? 你能谈谈couchdb和mysql数据库的速度吗?

I mean, very simple requests like getting one row (or one document) by unique id and simple requests like getting the 20 ids/rows/documents with the biggest date (of course, using indexes and views etc - don't really know how it works in CouchDB but I'm pretty sure there is something. Please don't send me learn how CouchDB works: I'm going to learn it, but I need a perfomance comparison anyway). 我的意思是,非常简单的请求,比如通过唯一ID获取一行(或一个文档)和简单的请求,例如获取具有最大日期的20个ID /行/文档(当然,使用索引和视图等 - 不知道如何它可以在CouchDB中运行,但我很确定有一些东西。请不要让我了解CouchDB如何工作:我将学习它,但我还是需要进行性能比较)。

Thanks! 谢谢!


As I realized from the links in the first answer, while I have only one server for DB, it's a lot better to use MySQL? 正如我从第一个答案中的链接中意识到的那样,虽然我只有一台DB服务器,但使用MySQL要好得多吗?

我发现这篇文章与另一个关于MySQL与CouchDB性能的问题相关联,但我不知道它是否重要。

Firstly, note that CouchDB is not a relational SQL database like MySQL. 首先,请注意CouchDB不是像MySQL这样的关系型SQL数据库。 I am not sure whether the query you describe can be expressed in CouchDB (but I'm no expert on this). 我不确定您描述的查询是否可以在CouchDB中表达(但我不是这方面的专家)。

That being said, here are some links: 话虽如此,这里有一些链接:

One way that couchdb could facilitate a dramatic speed improvement, is with its replication. couchdb可以促进速度提升的一种方式是复制。 It can replicate across high latency connections, perhaps even down to a client site if the security infrastructure supports it. 它可以跨高延迟连接进行复制,如果安全基础设施支持它,甚至可以复制到客户端站点。 This way you could have multiple databases at multiple physical locations without killing yourself in complexity. 这样,您可以在多个物理位置拥有多个数据库,而不会在复杂性方面造成伤害

When I did some comparisons on my own, I found couch to be about half the speed of oracle for a scenario with high numbers of inserts 100k inserts while readers were reading. 当我自己进行一些比较时,我发现沙发速度大约是oracle速度的一半,因为读者正在阅读时有大量插入100k插入的情况。 This of course is not couch's strength, as the readers had to rebuild the views while inserts were occurring. 这当然不是沙发的力量,因为读者不得不在插入时重建视图。

I would recommend that you set up a test yourself. 我建议你自己设置一个测试。 Why ? 为什么? CouchDb and MySql are very different beasts, and how you would choose to organise data in each would be very dependent on your problem domain. CouchDb和MySql是非常不同的野兽,你如何选择组织每个数据将非常依赖于你的问题域。 Consequently how you query them will differ as well. 因此,您查询它们的方式也会有所不同。

I think that some dummy data in each and some benchmarking by yourself will be more worthwhile than looking at the results of some arbitrary test. 我认为每个中的一些虚拟数据和一些自己的基准测试比看一些任意测试的结果更有价值。 I realise this will take some time in itself, but I think it's the best way forward. 我意识到这本身需要一些时间,但我认为这是最好的前进方式。

Exactly. 究竟。 The main diference is that: Relational vs Non Relational. 主要区别在于:关系与非关系。 And it depends of what you need. 这取决于你需要什么。 There is a movement about this: http://en.wikipedia.org/wiki/NoSQL 有一个关于此的运动: http//en.wikipedia.org/wiki/NoSQL

And, another good no-relational db: 而且,另一个好的无关系数据库:

www.mongodb.org www.mongodb.org

我听过的最好的比喻之一是CouchDB不想成为法拉利,它希望成为本田,即不是最快,但最可靠。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM