Mongoose source code analysis (type conversion part)
Mongoose source code
The bottom layer of Mongoose is written in javaScript. javaScript has only one Number type, Number, which can be integer or decimal, so Mongoose is the same
number section:
This part is the process of number converting different types into number
Mongoose is a further optimized encapsulation of the Node's native Mongo ...
Added by JovanLo on Thu, 23 Dec 2021 09:52:48 +0200
[MongoDB learning notes] - use MongoDB for CRUD operation
Author: Huan HaoSource: Hang Seng LIGHT cloud communitysummaryMongoDB is a persistent document oriented database for storing and processing data in the form of documents.Like other database management systems, MongoDB can manage and interact with data through four basic types of data operations:C: Create an operation that involves writing data ...
Added by wafawj on Thu, 23 Dec 2021 06:32:08 +0200
[MongoDB learning notes] - use MongoDB for CRUD operation
Author: Huan HaoSource: Hang Seng LIGHT cloud communitysummaryMongoDB is a persistent document oriented database for storing and processing data in the form of documents.Like other database management systems, MongoDB can manage and interact with data through four basic types of data operations:C: Create an operation that involves writing data ...
Added by merylvingien on Wed, 22 Dec 2021 20:00:18 +0200
MongoDB learning rich index
The functions and optimization principles of MongoDB index and MySql index are basically similar. MySql index types can be basically divided into:Single key index - Union indexPrimary key index (clustered index) - non primary key index (non clustered index)In addition to these basic classifications, there are some special index types in MongoDB ...
Added by onicsoft on Mon, 20 Dec 2021 23:17:52 +0200
Addition, deletion, modification and query of mongodb database (with picture and demo)
Noun exegesis
In the screenshot below, some terms need to be explained for ease of understanding and application:
cuckoo is called the library name, that is, the name of the databaseusers is called the collection name, that is, the name of the colonyRight band_ Rows of IDS are called documentsAnd_ ID, username and password are called fieldsT ...
Added by h.a.visser on Fri, 17 Dec 2021 23:29:09 +0200
Using MongoDB's Spring Boot and MongoTemplate tutorials
In this tutorial, we will build a Spring Boot application that demonstrates how to use the MongoTemplate API to access data in the MongoDB database.
For MongoDB, we will use mLab , it provides the MongoDB database as a service platform, so you don't even have to install the MongoDB database on your computer.
to configure
To quickly set up our p ...
Added by Raphael diSanto on Fri, 03 Dec 2021 13:00:00 +0200
Dock deployment mongo sharding
Mongodb shared cluster consists of:
Shards: each shard needs to be deployed as a replica set, which is responsible for storing data. Multiple shards can be deployed mongos: equivalent to routing config servers: the configuration server of the entire cluster, which is also a replica set
The development environment can be simpler:
docker bu ...
Added by daphreeek on Sun, 21 Nov 2021 09:16:04 +0200
MongoDB high availability replica set schema
1, MongoDB replica set
The main significance of MongoDB replica set is to achieve high service availability, which is similar to the sentinel mode in Redis.
1. Copy set function
It mainly provides two functions:
1. When the data is written to the Primary node, copy the data to another Secondary node;
2. When the primary node fails, a ne ...
Added by alex_savin on Sat, 20 Nov 2021 04:26:34 +0200
Saltstack return and job management
return of SaltStack component
The return component can be understood as the SaltStack system stores or returns the data returned by Minion to other programs. It supports a variety of storage methods, such as MySQL, MongoDB, Redis, Memcache, etc. through return, we can record each operation of SaltStack and provide a data source for future ...
Added by pmmenneg on Mon, 08 Nov 2021 22:58:45 +0200
SaltStack return and job management
1. return of saltstack component
The return component can be understood as the SaltStack system stores or returns the data returned by Minion to other programs. It supports a variety of storage methods, such as MySQL, MongoDB, Redis, Memcache, etc. through return, we can record each operation of SaltStack and provide a data source for future l ...
Added by MatthewJ on Mon, 08 Nov 2021 10:23:25 +0200