MongoDB
MongoDB CRUD and full text index
Summary:
How to add data
Query of data
Modification and deletion of data
Full text index query
mongo shell is a js console that can perform js related operations, such as:
> 1+1
2
> var i=123;
> print(i)
123
>
Basic operation of database and collection
#view the database
show dbs;
#Switch da ...
Posted by moselkady on Tue, 17 May 2022 15:57:36 +0300
Currently, mongo connector, reviewer and logstash are the most available information about mongo synchronization data to es on the Internet. They are all outdated and do not support higher versions of ES. At present, only monstache support can be found. Version reference official website:
https://rwynn.github.io/monstache-site/start/
es7.3 ...
Posted by pt4siek on Sat, 14 May 2022 15:00:34 +0300
Mongo Shell update operation
Update document - mongodb CN manual (mongoing. Com) Exercise data: db.inventory.insertMany( [
{ item: "canvas", qty: 100, size: { h: 28, w: 35.5, uom: "cm" }, status: "A" },
{ item: "journal", qty: 25, size: { h: 14, w: 21, uom: "cm" }, status: "A" },
{ item: "mat", qty: 85, size: { h: 27.9, w: 35.5, uom ...
Posted by PHP_apprentice on Fri, 13 May 2022 22:28:37 +0300
RESTful API style
Before developing, let's review what a RESTful API is? RESTful is an API design style, not a mandatory specification and standard. It is characterized by concise and clear requests and responses and strong readability. No matter what style the API belongs to, as long as it can meet the needs, it is enough. There is no absolute ...
Posted by powlouk on Mon, 02 May 2022 17:19:39 +0300
Reprinted for collection and learning, respecting originality
Original link
https://blog.csdn.net/July_whj/article/details/124087435
-------- Copyright notice: This is the original article of CSDN blogger "July_whj", which follows the CC 4.0 BY-SA copyright agreement. Please attach the original source link and this notice for repri ...
Posted by southeastweb on Wed, 20 Apr 2022 14:40:16 +0300
explain:
Take notes when you are literacy MongoDB related knowledge. This article will explain the contents related to replica sets. I have explained these earlier. You can see Principle, construction and application of MongoDB replica set . The replica set in MongoDB is a group of mongod processes that maintain the same data set. The replica ...
Posted by dcuellar on Mon, 11 Apr 2022 13:31:22 +0300
1, The core concept of MongoDB
concept MongoDB is a document database that stores Bosn files similar to json. Difference between json and Bosn
Same point The format is the same.difference json cannot define a data type. Bosn can define specific data types. Comparison between MongoDB and traditional database
SQL terms / conceptsMong ...
Posted by Nathan__02 on Sat, 09 Apr 2022 13:38:19 +0300
Database concept
Database, in short, can be regarded as an electronic filing cabinet - the place where electronic files are stored. Users can add, intercept, update, delete and other operations on the data in the files.
The so-called "database" is a data set that is stored together in a certain way, can be shared by multiple users, ...
Posted by anthonyv on Thu, 31 Mar 2022 21:17:06 +0300
preface
Recently, the company's project needs to realize the function of nearby stores. It is found that many methods can be realized by querying data. Including Mysql,Redis,Mongodb,PostgreSQL, etc redis and mongodb are selected for implementation.
1, Function of nearby stores
redis implementation
redis4. Version 0.14 uses the geo com ...
Posted by todd2006 on Wed, 30 Mar 2022 00:37:29 +0300
In this experiment, we build the simplest replication set through three servers
1. Turn off the firewall
Enter the command "systemctl status firewalld.service" and press enter
On the command line, enter systemctl stop firewalld Service command to close the firewall
Then enter the command "systemctl disable firewalld.service&q ...
Posted by Richter on Sun, 27 Mar 2022 00:38:23 +0300