Synchronize MongoDB data to elasticsearch through Monstache
Installation and configuration of Monstache
monstache is a go daemon that can synchronize MongoDB data to Elasticsearch in real time.
preparation
Ready for mongodb4 4.6 replica set environment The Elasticsearch 7 environment is ready github source code address of monstache: https://github.com/rwynn/monstache
monstachemongodbelashticsearch53 ...
Added by wildmanmatt on Tue, 18 Jan 2022 22:40:03 +0200
Basic arrangement of mongodb -- General operation [2]
preface
Simply sort out the general operations.
text
Although generally speaking, writing code depends on ideas, how can you know whether mongodb meets your needs if you don't know what common operations mongodb has? For example, if you don't have aggregation functions and you have to write aggregation yourself, then the workload is still quite ...
Added by Worqy on Mon, 17 Jan 2022 15:00:38 +0200
mongoDB description and related commands
At present, the database is divided into:
Relational database:
mysql,sqlserver,Oracle
Note: the data is stored in the data table, which is stored in the computer disk
Non relational database:
mongoDB,redis
Note: the data is stored in the computer memory, so it is faster to read and write data
To insta ...
Added by gunabalans on Sat, 15 Jan 2022 17:55:54 +0200
Troubleshooting of slow operation of MongoDB find getmore
This article comes from the works that won the shortlisted case award of 2021MongoDB technology practice and application case solicitation activityAuthor: Zhang JiaqiaoProblem descriptionThis paper introduces a detailed process and solutions to help businesses troubleshoot the problem of slow online query operation.The business is using find() ...
Added by Tainted Kitten on Wed, 12 Jan 2022 11:03:38 +0200
$type, index and aggregation in MongoDB
MongoDB is used in recent projects, so I probably learned the basic operation. Please forgive me for the bad writing. For more details, please go to the official website: https://docs.mongodb.com/manual/aggregation/
1,$type
1.1 description
The $type operator retrieves the matching data types in the collection based on ...
Added by danscreations on Sun, 09 Jan 2022 14:27:58 +0200
Data transfer and recovery of MongoDB advanced applications
1. MongoDB index1.1. Create index
db.books.ensureIndex{{number:1}}
Create an index and specify the name of the index
db.books.ensureIndex({number:1},{name:"book_"})
1.2 points needing attention in index use1) When creating an index, note that 1 is creating an index in positive order - 1 is creating an index in reverse order2) Index creation wil ...
Added by Malkavbug on Fri, 07 Jan 2022 07:45:29 +0200
MongoDB tutorial - day 3 (performance - index)
catalogue
introduce
background
Indexes
Default index
How to create an index
Different types of indexes in MongoDB
1. Single field index
2. Composite index
3. Multi key index
4. Text index
MongoDB index properties
1. Unique
2. Sparse
3. Partial index
4. TTL index
Some key points
1. getIndexes()
2. dropIndex()
3. dropInd ...
Added by designergav on Sat, 01 Jan 2022 23:05:27 +0200
mongodb implements article comment display
1, Demand analysis
The following functions are required: 1) Basic addition, deletion, modification and query API 2) Query comments by article id 3) Comment like
2, Table structure analysis
The data for storing article comments is stored in MongoDB. The data structure is as follows: Database: articledb Column comment
Field nameField meaningF ...
Added by Rother2005 on Fri, 31 Dec 2021 18:09:12 +0200
MongoDB tutorial
MongoDb tutorial
1, Installing MongoDB on Linux platform
MongoDB provides 32-bit and 64 bit installation packages on linux platform. You can download the installation package on the official website. Download address: https://www.mongodb.com/download-center#community 1. Find the corresponding download address
wget https://fastdl.mongodb.org/ ...
Added by adamhhh1 on Wed, 29 Dec 2021 20:43:22 +0200
"MongoDB" MongoDB aggregation framework provides in-depth analysis and rich aggregation query cases
MongoDB's aggregate query is quite complex, but don't rush to persuade yourself. Remember to see that there are colored eggs in the end
1, What is the MongoDB Aggregation Framework
MongoDB aggregation framework is a computing framework that can:
Acting on one or more sets;A series of operations on data in a set;Convert these data into ...
Added by svgk01 on Fri, 24 Dec 2021 20:41:53 +0200