node.js backend koa2 framework blog project connects to mongodb database to realize simple addition, deletion, modification and query

Required software: vscode, official website link Download: https://code.visualstudio.com/ ; (you can also use the editor you are used to) node.js, official website link Download: http://nodejs.cn/ ; Mongodb, official website download link: https://www.mongodb.com/try/download/community , we can just install the community version. (mac users ...

Added by Rommeo on Fri, 11 Feb 2022 08:56:16 +0200

Super detailed CentOS installation Mongodb helps you avoid detours (must see)

CentOS7.2 64 bit installation of mongodb4 4.1 (detailed) Here, I use yum to install automatically. I strongly don't recommend Xiaobai to decompress the compressed package for automatic installation. There are too many pits! Introduction to environment variable path mongodb bin directory: / etcdbpath of mongodb: / var/lib/mongologpath of mong ...

Added by SemiApocalyptic on Thu, 10 Feb 2022 02:06:12 +0200

MongoDB database entry database creation, deletion, table (set) creation and deletion, data addition, deletion, modification and query

1, Connect database 1. Connect database 2. View a list of all databases show dbs 2, Create database, view and delete database 1. Use database, create database use Database name If you really want to create this database successfully, you must insert a data. Data cannot be directly inserted into the database. Only data can be inser ...

Added by niranjnn01 on Sat, 05 Feb 2022 20:48:52 +0200

[Node - Mongodb] common instructions

pipeline operation symbol Help you carry out complex operations. Each symbol will accept documents and do corresponding operations on these documents, and then pass the results to the next pipeline until the final results appear. db.getCollection('sales').insertMany([ { "_id" : 1, "item" : "abc", "price" : 10, "quantity" : 2, "date" : ISODate ...

Added by php Newbie on Sat, 05 Feb 2022 06:27:14 +0200

[quick start MongoDB] introduction, installation, core concepts and basic operation

Official documents in English: https://docs.mongodb.com/manual/ MongoDB Chinese website: MongoDB Chinese website | MongoDB Chinese documents brief introduction MongoDB is a document database designed to facilitate application development and expansion. MongoDB is a document database designed for ease of application development an ...

Added by EY on Fri, 04 Feb 2022 14:38:20 +0200

MongoDB learning notes: segmentation

This article was updated on January 8, 2022, using MongoDB 4.4.5. Create shards under a single server Ensure that the / data/db directory exists and that the current system user has read and write permissions. For example (permission needs to be set according to the actual situation): su root mkdir -p /data/db chmod 0777 /data /data/db St ...

Added by nosti on Tue, 01 Feb 2022 22:27:57 +0200

Nodejs / serialize / MySQL -- foundation, join table and optimization

In this article, you will see: Conceptual relationship among MySQL, SQL, ORM and serializeUse of sequenizeThe concept, usage, principle and difference of join table relation in sequenizeHow to optimize database query 1 Concept MySQL Most people know about MySQL and SQL. After all, it is written in textbooks. MySQL is a typical relational dat ...

Added by iupme on Sun, 30 Jan 2022 19:47:10 +0200

Node.js basic notes~~~

Introduction - learn node The purpose of JS is to help you open the black box of the server. Only by understanding the server can we better cooperate with the server developers in collaborative development 1.1 review and reflection 1. Why can javaScript be executed in the browser? 2. Why can javaScript operate DOM and BOM 3. javaScript ...

Added by TempleDMDKrazd on Sun, 30 Jan 2022 01:45:40 +0200

monggo index optimization

mongodb index rule Mongodb's indexing rules are basically the same as those of traditional relational databases. Most techniques for optimizing MySQL/Oracle/SQLite indexes are also applicable to mongodb. Why index When some conditions are used in the query, the key can be indexed to improve the query speed.When the amount of data is lar ...

Added by MrRosary on Fri, 21 Jan 2022 02:35:41 +0200

Installation and python operation of document database-1-[MongoDB] in windows

reference resources Python operates MongoDB. Just read this article 1. Install MongoDB windows download address of mongodb MongoDB provides precompiled binary packages. (1) Download msi file. After downloading, double-click the file and install it according to the operating instructions. During installation, you can set your installation dir ...

Added by Lagreca on Thu, 20 Jan 2022 16:16:53 +0200