How to use worm replication in Mysql data table

How to use worm replication in Mysql data table

To put it simply, MySQL worm replication is to continuously insert the queried data into the specified data table. Normally, the MySQL worm is used to test table pressure when replicating.

Next, we will introduce the use of worm replication in MySQL data tables with a simple example.

First, we can query the information fields in the existing money table. The table information is as shown in the figure below.

The basic syntax of worm replication is:

insert into + data table name + field list/* + from data table name;

Example usage statement:

insert into money select null,name,money from money;

Then we use the command statement of the worm to copy the data in the money table. The specific operation is shown in the figure below.

Here we can see that the data grows in the order of 2, 4, 8, 16, 32..., which is the exponential increase we are familiar with. If you continue to operate, the data in the table can be expanded to a certain order of magnitude in a short period of time, thereby achieving the purpose of testing the table pressure.

The above is the method of using worm replication in MySQL data table. Thank you for your support to 123WORDPRESS.COM.

You may also be interested in:
  • Three ways to copy MySQL tables (summary)
  • Three implementation methods of Mysql copy table and grant analysis
  • Mysql method to copy a column of data in one table to a column in another table
  • Copy fields between different tables in MySQL
  • MySQL replication table details and example code
  • How to copy MySQL query results to a new table (update, insert)
  • mysql copy table structure and data example code
  • Tutorial on copying data from a table to a new table in MySQL
  • Tutorial on table replication and large data table backup in MySQL
  • Mysql method of copying table structure and table data
  • How to copy MySQL table

<<:  Detailed tutorial on installing nvidia driver + CUDA + cuDNN in Ubuntu 16.04

>>:  vue+elementui implements the complete code of adding and modifying a shared bullet box

Recommend

Example of implementing load balancing with Nginx+SpringBoot

Introduction to Load Balancing Before introducing...

Founder font library Chinese and English file name comparison table

Founder Type Library is a font library developed ...

Application of HTML and CSS in Flash

Application of HTML and CSS in Flash: I accidental...

How to configure jdk environment under Linux

1. Go to the official website to download the jdk...

Summarize how to optimize Nginx performance under high concurrency

Table of contents Features Advantages Installatio...

Don’t bother with JavaScript if you can do it with CSS

Preface Any application that can be written in Ja...

Explanation of the new feature of Hadoop 2.X, the recycle bin function

By turning on the Recycle Bin function, you can r...

Example of fork and mutex lock process in Linux multithreading

Table of contents Question: 1. First attempt 2. R...

Detailed explanation of Django+Vue+Docker to build an interface testing platform

1. Two words at the beginning Hello everyone, my ...

CSS achieves colorful and smart shadow effects

background Ever wondered how to create a shadow e...

How to configure whitelist access in mysql

Steps to configure whitelist access in mysql 1. L...