MongoDB is a database based on distributed file storage. Written by the C + + language. Designed to provide scalable, high-performance data storage solutions for WEB applications.
MongoDB is a product between relational database and non relational database, and is the most powerful and relational database in the relational database.
First, index
MongoDB is a high-performance data, but in the process of use, you will occasionally encounter some performance problems. MongoDB is relatively new compared to other relational databases, such as SQL Server, MySQL, and Oracle, and many people are not familiar with it, so man
function and returns
Package main
Import ("Bkjia.org/v2/mgo""Bkjia.org/v2/mgo/bson")
Func main (){Session, err: = mgo. Dial ("")If err! = Nil {Panic (err)}Defer session. Close ()
Session. SetMode (mgo. Monotonic, true)
Db: = session. DB ("test ")Var result interface {}Db. Run (bson. M {"eval": "leleupdatephone ('test', 'new test');"}, result)}
As shown in the code above, You can execute modifications.But pay attention to the lock issue: eval will generate the write lock. You can understand the
first part of the basic chapter II install MongoDBPart I basic chapter III MONGODB architectureThe first part of the basic chapter fourth MongoDB Quick StartThe first part of the basic chapter Fourth MongoDB queryPart Two application chapter Fifth MongoDB advanced queryPart Two application chapter sixth
First, index
MongoDB provides a variety of index support, indexed information is kept in system.indexes, and the default is always to create an index for _id, which uses the same relational database as MySQL. In fact, it can be said that the index is over the data storage system on top of the other layer of system, so the different structure of storage have the same or similar index implementation and use
Mysql database performance optimization 1. mysql Performance Optimization
Today, database operations are increasingly becoming the performance bottleneck of the entire application, especially for Web applications. Concerning the database
)
Indexbounds: The index used
Third, optimizer profileIn MySQL, the slow query log is often used as the basis for us to optimize the database, is there a similar function in MongoDB? The answer is yes, that's the MongoDB database Profiler.1. Turn on the profiling functionThere are two ways to control the Profiling switch and level, the first is directly
types of insert tests, the rate at which they were inserted, from start to finish, was fixed to a standard in most cases. Analysis: 1. Glitch is because, when there is too much data to be inserted,MongoDB needs to write the data in memory into the hard disk, and MySQL needs to be re-divided into tables . These operations occur automatically every time the data in the database reaches a certain magnitude,
participating in MongoDB community activities to improve PERL/PHP's technical solutions for MongoDB. MongoDB-based open-source projects will be launched within 1.6.
For companies that have just started or are developing innovative Internet applications, MongoDB's fast, flexible, lightweight, and powerful scalability are suitable for our rapid product developmen
it by the date field of another index (the index is created in reverse order, and the sorting is 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
, and the sorting is 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
This article translates MongoDBProductionNotes in MongoDBManuel. This section focuses on considerations that affect performance and reliability in the production environment,
This article is to translate the MongoDB Production Notes section in MongoDB Manuel. This section focuses on considerations that affect performance
The performance test of MONGODB billion data volume was carried out, and the following items were tested:(All inserts are single-threaded and all reads are multithreaded)1) Normal insertion performance (the inserted data is about 1KB per piece)2) Bulk Insert performance (using the official C # client's Insertbatch), wh
Use Yii2-mongodb in the YII2 inside the main to improve which piece of performance?
Reply content:
Use Yii2-mongodb in the YII2 inside the main to improve which piece of performance?
MongoDB is a NoSQLMySQL is the traditional dbAs for the
In YII2, which one of the main performance can be improved by using yii2-mongodb? In YII2, which one of the main performance can be improved by using yii2-mongodb?
Reply content:
In YII2, which one of the main performance can be improved by using yii2-
MongoDB 3.2 WiredTiger storage engine performance test
MongoDB 3.2 was recently released. It uses WiredTiger as its default storage engine. Over the past five years, MongoDB has developed rapidly from its birth to its popularity.
MongoDB 3.0 began to support the "pluggable s
center, and machine model. If I retrieve 12 million pieces of data at a time, it is not said that mysql takes time to query data under the default configuration.2 sThe above, and it takes nearly to create such a large array in ruby.10 sNot to mention making more judgments and statistical logic in the future. I can't imagine what would happen if I had to analyze data for a week or a month.
So I came up with"Should I try
adding shards, you can greatly increase the write performance of the MongoDB cluster, and partly increase the read performance.3. The advantages of MongoDB compared to relational databases
Document-based database, JSON-style file storage, clear structure, no ORM.
Replication and high availability f
Recently busy to transfer a project from MySQL to MongoDB, in the process of importing old data, encountered some twists and turns, made a lot of mistakes, but also learned a lot of knowledge, so recorded.
The company specially equipped with several high-performance server for this project, exclusively dual quad core Hyper-threading CPU, plus 32G of memory, ope
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.