2011 will be remembered, because this year the SQL will die; this year, the relational database retreated from the first line; this year, developers discovered that they didn't have to convert each object into a table structure to persist data.
2011
MongoDB is a database based on distributed file storage and provides the ability to create geo-spatial indexes, and this article will provide an example of whether the coordinates are within a specified polygon region using a PHP connection MongoDB.
In order to save user data and business data for a Web site, a database is usually required. MongoDB and Node.js are particularly well matched, because MongoDB is a document-neutral database, the document is stored in Bson (the lightweight binary
To get an insight into how MongoDB stores data, one concept must be clear, and that is memeory-mapped Files.
memeory-mapped Files
The following figure shows how the database deals with the underlying system.
The memory-mapped file is the OS
Conditions similar to: a=5 or (a=2 and b>3)Basicdblist endlist = new Basicdblist ();Basicdbobject forceend = new Basicdbobject ();Forceend.put ("status", 5);Basicdblist condlist = new Basicdblist ();Basicdbobject autoend = new Basicdbobject
1. Download the. msi file on the MongoDB website and I'm under the community version: Https://www.mongodb.com/download-center#community2. Click the MSI file to install MongoDB, the default installation is C:\Program files\mongodb\server\3.23. Add
Warning Issue: The maximum number of files currently supported by MongoDB is 256, but at least 1024 is recommended.Workaround:1. Close the MongoDB terminal window now open2. Re-open the terminal and run the command:sudo launchctl limit maxfiles 65536
The project used to MongoDB, the basic is to use Robomongo to connect the server, do some of the lower permissions to delete and change the operation. Commands often forget to record some of the most frequently used commands for collections for easy
Name
Method
Url
Pass parameter (JSON)
Explain
Create a library
Put
Http://127.0.0.1:8033/test
Create a library
Create a table
Put
Http://127.0.0.1:8033/test/coll
MongoDB is a software used to store management data.He is a C/s architecture software, is a network type of softwareIf you use MongoDB, you first need to open the service side of MongoDB, and then connect to the server through the client software1.
The logical Backup tool Mongodump and Mongorestore tools in MongoDB can be used to back up and restore operations to the current MongoDB database. Current database structure: MongoDB Enterprise > Show DBSAdmin 0.000GBDbking 0.000GBLocal
First, look inside your phpinfo to see how many bits of your system are 6 or 32.Then enter https://www.mongodb.com/download-center#community to download the Linux installation packageUnzip the compressed package tar zxf mongodb-linux-i686-1.8.2.tgz2
MongoDB's log growth is fast,/Var space is immediately full, even if you change to another disk partition to save the log, the log is growing fast, the disk to see the chime.A good way to do this is to use a rotational log.MongoDB rotation Log a bit
Starting with MongoDB 3.0, a running instance is required when the Mongorestore is restored. Earlier versions did not have this requirement.1. Deploy a replication set for each shard(1) Each member of the replication set initiates a
The full-text index sets up each word in an indexed, indicating the number and location of occurrences of the word in the article, and when the user queries, the retrieval program searches based on the pre-established index and feeds the results
Map-reduce is a computational model, which simply means that a large amount of work (data) decomposition (MAP) is performed, and then the results are combined into the final result (REDUCE).MongoDB offers a very flexible map-reduce, which is also
MongoDB now has two storage engines MMAPv1 and Wiretiger, of course, in addition to these two storage engines there are other storage engines.Such as:
Memory Engine: Now the MongoDB version already has, the main cache service, it is mainly
Synchronization processSelect the node from which to pull the oplog1. Applies the op executes this op log2. Writes the op to its own oplog (also local. oplog. rs) write this op log to your oplog3. Requests the next op request to which the next op
After use admin. When you add the user db. addUser ("admin", "123456"), because other nodes do not have the admin user and use the-keyFile parameter, permission authentication is required. The first time a user cannot be created.Symptoms: The code
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service