Cutting-edge
I plan to learn about nosql recently, so I chose MongoDB. I will not introduce MongoDB here. This series is written as a post-learning assignment. You can write down all the problems you encounter and what you need to pay attention,
1. 100 entries are generated
VaR A = new array (100); // There Is. foreach. I don't know why I can only use for (VAR I = 0; I CodeLine feed
Using dB. Test. Find (), you can see that the database has been imported into the database. Enter the it
1. The SOLR field is written to death.
2 SOLR advantages: fuzzy query of large text, MongoDB also supports regular query and js-like syntaxCodeStatement Query
3 MongoDB already supports local updates and an upsert. The SOLR will be updated first,
MongoDB-related information
Mongolive: Real-Time MongoDB monitoring in chrome
Http://blog.nosqlfan.com/html/1964.html
Limitations and limitations of MongoDB
Http://blog.nosqlfan.com/html/3166.html
Admin Zone
View Current Database
MongoDB shell version:
1.8
.
1
Connecting to: Test
>
DBTest
View the list of all databases
>
Show DBSChatroom 0.03125 GBAdmin (empty)Local (empty)
Switch Database
>
Use chatroomSwitched to DB
Help show helpshow DBS show database namesshow collections show collections in current databaseshow users show users in current databaseshow profile show most recent system. profile entries with time> = 1 msuse set curent database to dB. adduser
I just got started with MongoDB. I don't want to write it this time. I feel very useful when I read several other blogs.
These are based on the. NET platform.
From the official MongoDB Website:
Basic Quick Start, ten minutes fast get, don't drag:
For each database, addition, deletion, modification, and query are essential. First, we will introduce add, that is, insert.
To compare the four operations, insert is the simplest in MongoDB. The insret command is used to insert data in MongoDB.
ArticleDirectory
I. Software Packages
I. Software Packages
A) mongodb-linux-i686-static-1.8.1.tar
Ii. Installation Steps
A) tar xzf mongodb-linux-i686-static-1.8.1.tar
B) Music mongodb-linux-i686-static-1.8.1/usr/local/MongoDB
Reprinted from http://www.cnblogs.com/spnt/
MongoDB's sharding mechanism solves the problems of massive storage and dynamic resizing, but it is highly reliable and highly available from the production environment. sharding is powerless in the case
The following things should be understood by PHP programmers.For more details, refer to Baidu Google
MongoDB PHP document http://us.php.net/manual/en/book.mongo.php1. MongoDB is a separate server2. MongoDB is based on documents rather than tables.3.
1. Download the installation packageWget http://fastdl.mongodb.org/linux/mongodb-linux-i686-1.8.2.tgz
Decompress the package after the download is complete.Tar zxf mongodb-linux-i686-1.8.2.tgz 2. Installation preparationMove MongoDB to the/usr/local/
DbrefIs a more formal specification for creating references between documents. dbrefs (generally) include a collection name as well as an object ID. Most developers only use dbrefs if the collection can change from oneDocument to the next. If your
The previous article explains how to use MongoDB for replication, but I use BSON Object to save files. This limitation is that if the file size exceeds 4 MB, an exception occurs.
According to the official website,BSON objects in MongoDB are limited
In the previous blog, we successfully installed and started the Mongo database. In this blog, I will introduce the development of the MongoDB database. For details, refer to the official MongoDB documentation. To smoothly develop MongoDB databases,
Test environment: php_cmd.dll of PHP5.3 + mongo-1.1.4-php5.3vc6ts
We can use stat to observe and find that:
1. mongostat also occupies a database connection.
2. PHP's mongo extension uses transient connections, similar to the Code: new Mongo
Help show dbs show database names show collections in current database show users in current database show profile show most recent system. profile entries with time> = 1 ms use set curent database to db. addUser (username, password) db.
Query. All ("name", "a", "B"); // matches an array with multiple elements.
Query. And (Query. EQ ("name", "a"), Query. EQ ("title", "t"); // satisfy multiple conditions at the same time
Query. EQ ("name", "a"); // equal
Query. Exists ("type",
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