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
Install MySQL using yum or up2date for Linux
Install MySQL using yum or up2date for Linux
There are many ways to deploy MySQL database, including yum installation, RPM installation and compilation installation. Each installation method has its own advantages, so enterprises usually use rpm and binary installation.
Download address of database official website: https://downloads.mysq ...
Added by BluePhoenixNC on Fri, 31 Dec 2021 15:08:29 +0200
Openresty Redis uses connection pool correctly (set_keepalive)
Recently, I was working on an openresty project. Every time I visit, I need to read redis through openresty to judge whether access can be allowed.
Question:
If you need to establish a connection with redis for each access, the number of connections will explode when the concurrency is large. Affect performance and system.
Scheme I:
In init ...
Added by soulzllc on Fri, 31 Dec 2021 09:36:41 +0200
MySQL database optimization
MySQL database optimization
1, Storage principle of Mysql
Index correlation
essence
Index is help MySQL Ordered data structure for efficient data acquisition
Build index to improve the efficiency of data retrieval and reduce the IO cost of database; Sorting data by index column reduces the cost of data sorting and CPU consumption.
...
Added by ben2k8 on Fri, 31 Dec 2021 06:29:31 +0200
Installation process of NPC Jincang kes86 database under CentOS7 environment
Confirmation before installation
Operating system: host name, IP address, hairstyle version, kernel version
[root@localhost ~]# hostname
localhost.localdomain
[root@localhost ~]#
[root@localhost ~]# ip -4 a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
inet 127.0.0.1/8 scope host lo
valid_lft forever p ...
Added by Goofan on Thu, 30 Dec 2021 20:37:54 +0200
Mysql8.0 installation tutorial and password issues
1: Download mysql source
mysql8.0 Introduction:
Performance: MySQL 8.0 is 2 times faster than MySQL 5.7. MySQL 8.0 brings better performance in the following aspects: read / write workload, IO intensive workload, and high competition ("hot spot") workload. NoSQL: MySQL has provided NoSQL storage function since version 5.7. At pre ...
Added by pauleth on Thu, 30 Dec 2021 16:06:32 +0200
MySQL Master-Slave Copy and Read-Write Separation
MySQL Master-Slave Copy and Read-Write Separation
Summary
In enterprise applications, mature business usually has a large amount of dataSingle MySQL does not meet practical requirements in terms of security, high availability, and high concurrencyConfigure multiple master-slave database servers for read-write separation
1. Principle of m ...
Added by wenquxing on Thu, 30 Dec 2021 14:56:36 +0200
Window function learning
The implementation here is based on MySQL 8.
catalogue
1. Meaning and understanding of window function
2. Syntax of window function
2.1 understanding of window name syntax
2.2 understanding of sorting statements in Windows
2.3 understanding of window subset
2.4 window function
1. Meaning and understanding of window function
Window fun ...
Added by jaydeee on Thu, 30 Dec 2021 12:40:55 +0200
Mybatis deferred loading policy
1 delayed loading concept
Delayed loading: Data is loaded only when it is needed. Data is not loaded when it is not needed. Lazy loading is also called lazy loading. Benefits: query from a single table first, and then associate the query from the associated table when necessary, which greatly improves the database performance, because querying ...
Added by sheen4him on Thu, 30 Dec 2021 12:24:06 +0200
Database front-end and back-end interaction from back-end to front-end tutorial II
Database front-end and back-end interaction from back-end to front-end tutorial II
preface
It is divided into two blogs, taking the student management system as an example to realize the front-end and back-end interaction (it is not designed here, but focuses on the operation process!) Some software involved in the following will be intro ...
Added by mshallop on Thu, 30 Dec 2021 00:47:25 +0200