not specified in MongoDB and the MD5 value of 1–100,000,000 is treated as a normal field insert;c) in MySQL with 1–100,000,000 MD5 value of primary KEY, the data is inserted;d) primary KEY is not specifiedin MySQL and the MD5 value of 1–100,000,000 is considered a normal field insert.4. Analyze the insertion performance
this method, we can see from the test results that the overall Write Performance is higher than that of MySQL and handlersocket, which is a trade-off, it depends on whether the specific business can accept such high performance in exchange for data reliability, some businesses may be acceptable, such as feed.
2. CPU usageFrom the query results, we can see that
of data is about 1 K.
Remember that the method of this test is to generate 100 million data in memory before performing the insert operation. Fortunately, the memory of the test machine is large enough to save so much data.
3. Insert data into the database in the following four modes, and when each 1000 data is inserted, the time of the moment is written to a fixed file:
A) specify _ID as the MD5 value of 1–100,000,000 in M
Tags: des io ar using SP on problem CTI ADHardware and Software EnvironmentMySQL version: 5.1.50, driver version: 5.1.6 (the latest 5.1.13 has a lot of assorted problems)MongoDB version: 1.6.2, driver version: 2.1Operating system: Windows XP SP3 (This effect should not be small)Cpu:intel Core2 E6550 2.33GMemory: 2G (Enough)MySQL startup parameters: Bin\mysqld--no-defaults--console--character-set-server=utf8
31075.847
Storage size (GB)
Database type
Mysql
Mongodb
Tokumx
Couchbase
10 million
19
4.2
8.5
11.2
Conclusion:1. Insert ops for all NoSQL databases read stronger than MySQL, where Couchbase is the strongest, then
Tags: BSP sel logs performance. So in the DES image configuration Server configuration:Cpu:1 Core Memory: 2048 MB (I/O optimized) network bandwidth: 1M CentOS 7.0 MongoDB 3.2MySQL 5.6 Server table Data volume 1,184,545 MongoDB data is imported by MySQL, ensure the data consistent experiment prepared to execute the s
Statement: The article is mainly from the "MongoDB Real Combat" a book, the main want to learn MongoDB knowledge through the book, deepen understanding, so write in their blog, as recorded in the last chapter, there will be a collection of MongoDB database application Java EE Web application.1, MongostatThis tool provides a quick view of statistics for a set of r
Comparison table of operations between MongoDB and MySQL and comparison table of mongodb
Comparison tables and differences between MongoDB and MySQL
MySQL and MongoDB are both open
MongoDB Performance Analysis method:explain ()To demonstrate the effect, let's start by creating a record with 2 million documents. (My own computer took about 15 minutes to insert the completed.) If you want to plug in more documents It's okay, just be patient and wait. )1 for (var i=0;i) {2 db.person.insert ({"Name": "Ryan" +i, "age": i}); 3 }After MongoDB
Chapter III index operations and performance testing
The importance of indexes under big data is not much to say.The following test used a MongoDB client tool Robomongo, you can choose to download on the Internet. Inserting test dataInsert 1 million test data first for (var i=1;i1000000; i++) { var person={name: "Jack" +i,age:i,address:["Henan", "Wuhan"],course:[{name: "Shuxue", Score:i },{Name: "Wu
the memory, the IO pressure is very high.
2) When the data volume is large, if the service is not properly shut down, it takes a considerable amount of time for Mongodb to start and fix the database. The-dur exited in 1.8 seems to be able to solve this problem, after a simple test, we have not significantly affected the insertion and query performance when we enable dur.
3) When Sharding is used,
Preface:to better use MongoDB, you need to monitor some of the underlying usage of mongodb, such as flush number, number of connections, memory usage, index operation, slave delay, and so on, which can be done by configuring cacti to monitor MongoDB. 1, Import Template in cacti interfaceOn the computer locally, download this tgz package: http://
also in reverse order ), and the performance of 10 records is returned after the Skip100 records. The impact of Skip and Order on the performance is measured.
7) query the performance of 100 records (that is, KB) (no sorting and no conditions). This test is to test the performance impact of query results of large data
performance. There is no bottleneck in MongoDB read performance in the test due to data volume, or YCSB bottlenecks.7. Conclusion1.Mongodb reading performance is very high, suitable for rereading the scene.2. By adding shards, you can greatly increase the write
Tags: 2.4 cer first network password definition capability parameter securityMongoDB's library-level lock MongoDB is currently the most popular NoSQL database, with its natural document-type data structures, flexible data patterns, and easy-to-use horizontal scaling capabilities that have been favored by many developers. But gold is no can't pure perfect, MongoDB is not without its weaknesses, such as its l
Tags: Lucene style blog Color http intHubbledotnet starting from 1.2.3 version in the official code to support and MongoDB docking, MongoDB is a 10gen company developed No-sql database, its read and write performance than traditional relational database is much faster, and can be very convenient distributed deployment. Hubbledotnet also provides No-sql solutions
I recently started to study MySQL and MongoDB and found that there is not much information in this area. Especially when it comes to ideasArticle, Too few.
Some articles on comparative testing are basically blind tests. The testing methods are tested on the horse, and the conclusion is basically that nosql has no value.
Let me borrow the sentence from Russell Smith: It's not
High Performance MySQL Reading Notes-query performance optimization, high performance mysql
For high-performance database operations, it is not enough to design the optimal database table structure and build the best index. You al
ArticleDirectory
The first problem: the key-value database may have a lot of keys. That's right, but it's a big mistake for MongoDB.
The second question: Is findone ({_ ID: XXX}) Faster?
Third question: Use update in detail
In the previous article, we tried to find out the effect of true or false. Some of them are slogans. Now we start to practice them, and they are attributed to pragmatism. Scenario
Before we start, we should f
database performance may cause or damage your business goals or achievements. MySQL is a database solution that can provide quality services for applications and websites. However, it needs to be adjusted to meet your needs and be monitored to detect and prevent bottlenecks and performance problems.
Peter Zaitsev is the co-founder and CEO of Percona and a provid
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.