Comparison of random update and insert performance of mysql under different database connection pools (DBCP,C3P0,Druid,Hikari)
The second part tests insert and update:
1 Environmental preparation
Two scenarios, Insert and Update, are prepared respectively. For the Update scenario, two scenarios are also prepared: Update through index and Update without index.
1.1 Update
The code is as follows:
package com.dhb.gts.javacourse.week6.mysqltest;
import com.dhb.gts.jav ...
Added by bocasz on Mon, 20 Sep 2021 22:16:23 +0300
September 12, 2021 Tianchi SQL training camp Task02
MySQL query sorting
This note is the learning content of Alibaba cloud Tianchi Longzhu plan SQL training camp. The link is: https://tianchi.aliyun.com/specials/promotion/aicampsql ;
1.1 use of select
Use format
select Listing as 'alias', Listing ,.....from Table name
where query criteria;
Relevant rules
An asterisk () means all columns. ...
Added by ridiculous on Mon, 20 Sep 2021 10:43:48 +0300
Database notes (basic operation)
Database notes
Database foundation
1. Start MySql service on the terminal:
net start mysql;
2. Connect to MySQL: (add one, not - proot; oh)
mysql -h localhost -p 3306 -u root -proot (h Database links, p Database port number, u Database user name -p Database password, p (no space between and password)
3. View database:
`show databases; ...
Added by dannynosleeves on Mon, 20 Sep 2021 00:22:20 +0300
5 operation and maintenance enterprise -- mysql database
Introduction to mysql
(1) Introduction to MySQL
Mysql is a relational database. It is characterized by saving these data in different two-dimensional tables and putting these tables into the database, which can increase its reading speed.
(2) Application architecture of mysql
Single, suitable for small-scale applications Replicat ...
Added by ucbones on Sun, 19 Sep 2021 06:58:26 +0300
Analysis on the specific execution process of an insert statement in mysql 8.0
Code version: mysql 8.0.22
Programming language: C + + & & C + + 11 & & C + + 14 & & C + + 17
Previous article: Analysis on the specific execution process of an insert statement in mysql 8.0 (2)_ A ray of sunshine blog - CSDN blog
This chapter mainly introduces the storage engine. This chapter mainly introduces which ...
Added by ataria on Sun, 19 Sep 2021 06:35:42 +0300
MySQL 8.0.18 synchronizes to Elasticsearch7.x through Canal1.1.5 data increment
Introduction
Canal is a high-performance data synchronization system based on MySQL binary log. It is an open source project of Alibaba. It is implemented based on java. It has been widely used in many large Internet project production environments, including Alibaba and meituan. It is an unusually mature database synchronization scheme. T ...
Added by focus310 on Sun, 19 Sep 2021 05:44:31 +0300
The Maven project created by IDEA uses the Mybatis framework to simply add, delete, modify and query a single table
Build environment
Build database table
MySQL database is used. Create a new database named task and a new table named student in the task database. Add data to the table as appropriate. The SQL statements for creating tables and adding data are as follows.
SET FOREIGN_KEY_CHECKS=0;
--Create table
DROP TABLE IF EXISTS `student`;
CREATE TABLE ...
Added by Desdinova on Fri, 17 Sep 2021 17:00:56 +0300
Field types and constraints of mysql table creation
1, Common field type classification
Common field types
typeclassificationdescribeNumerical typeintegerdecimal ① Fixed point number ② Floating point number characterShorter text ①char ②varchar Long text ①text ② Blob (binary data) Date time type
1.1 numerical type
1.1.1 integer
characteristic:
The integer type is signed ...
Added by ahasanat on Fri, 17 Sep 2021 04:23:16 +0300
MySQL 8.0 decompressed version installation and simple sql
Windows install MySql
1. Download
Browser input https://downloads.mysql.com/archives/community/ Select the required version and install the required operating system. Here I download MySQL 8.0 and the compressed package of Windows system.
Click Download to Download. If the Download speed is very slow, you can open the Download and copy the ...
Added by mpiaser on Wed, 15 Sep 2021 01:54:10 +0300
Build MySQL 8.0.20 with Docker of CentOS7 (solve 1251 client does not support authentication protocol requested by Ser)
1, Build mysql container service
1. Pull image
docker pull mysql:8.0.20
2. Create any container (just to copy the mount directory)
docker run -p 3306:3306 --name mysql -e MYSQL_ROOT_PASSWORD=123456 -d mysql:8.0.20
Check whether the startup is successful:
docker ps -a
3. After successful startup, enter the container and copy the ...
Added by amandas on Tue, 14 Sep 2021 05:28:19 +0300