MongoDB Index Setup Issues
1. The master-Slave library index is not set up synchronously:
MONGODB version 2.6.6, indexing is not synchronized, but is then indexed from the library after the main library is established.
I do not know
What's MongoDB?
MongoDB is an open-source, document-oriented NoSQL (not only SQL) database written using C + +, and one of the most popular NoSQL databases.A relational database is record-oriented, and an item in a relational database is a record,
MongoDB defaults to open an HTTP protocol port to provide rest service, this port is your server port plus 1000,
For example, your server port is 27017, then this HTTP port is 28017, the default HTTP port is the Database status page,
You can
InstallationDownload the installation packageCurl-o https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.6.5.tgzExtractTar axf mongodb-linux-x86_64-2.6.5.tgz-c/opt/Ln-s/opt/mongodb-linux-x86_64-2.6.5//opt/mongodbCreate a log, data storage
Problem: Different countries, the use of different time zones, and server code in the country, across time zone date, based on the date query, no data queryThe 1.mongodb stored new date () is the UTC time, which is the time of the 0 time zone, world
MongoDB Database Introduction
Characteristics
For collection Storage
Rich query Statements
Replication set mechanism
Support for file storage
Mode freedom
Multilevel index
Easy Horizontal
Windows 10 Home Chinese version, MongoDB 3.6.3,ObjectiveIn the previous tests, some data had been written to the MongoDB database. Now to re-test the program, the old data in the database needs to be cleaned up, but you want to save the previously
I. Conceptual understanding1. User conceptMongoDB users are composed of user name + owning library nameFor example:Login MONGO testdb1, create user TestUserLogin MONGO TESTDB2, create user testuserbr/> the user created above is:[email protected],
First, the use of Querybyexampleexecutor1. Inheriting mongorepositoryPublic interface Studentrepository extends Mongorepository { }2. Code implementation
Using the Examplematcher match-----fuzzy queries that only support strings, other
1. Export Tools:mongoexport 1, concept: The Mongoexport tool in MongoDB can export a collection to a file in JSON or CSV format. You can specify the exported data item by parameter, or you can export the data based on the specified
Http://www.cnblogs.com/qq78292959/p/4440679.html
Recently has been using MongoDB, sometimes need to use statistics, on the Internet to check some information, the most suitable use is to use aggregate, the following introduction of their own use
MongoDB version:Environment: one virtual machineThree copies of Configsvr: Port is 27020,27021,27022Two shards:Shard1:-> three replicas with Port 27010,27011,27012Shard2:-> three replicas with Port 27013,27014,27015One route: MONGOs-Port
MongoDB replica setsAndAuto shardingThe simple configuration procedure is what we will introduce in this article. Many tutorials on the Internet have written replica sets and auto sharding (or sharding) together, which may be confusing for beginners,
Another weekend, so far, the basic functions of real estate information collection have been completed. It mainly includes
FunctionalityAdd, delete, modify, and delete tags;Delete and follow real estate information;
Non-functionalShortcut
Compact command
V1.9 +
The compression command compresses and removes fragments from a set. Indexes are also rebuilt and compressed. This releases space for other collections in the database. It is similar in concept to repairDatabase, but it only
1. Use db2cmd to open the db2 command line 2. db2look-d db_name-e-a-x-I db_username-w db_passwd-0 file_name. SQL # export the database structure 3. db2move db_name export-u db_username-p db_passwd # export Database Data 4. create database db_name on
DB2 converts an integer to a string of the specified length. The preceding value is 0 select. auto_id, right (digits (cast (auto_id as bigint), 18) from T_BZ_DEMO_AREA_APP a; digits must use an integer parameter. The auto_id type of www.2cto.com is
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