Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Table format changing method and device, electronic device and computer readable medium

A table and original table technology, applied in the database field, can solve problems such as affecting the normal use of other businesses, operating the original table, and unable to operate the original table.

Active Publication Date: 2018-09-25
BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD +2
View PDF6 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In the third step, when the user changes the data in the original table, the data is directly modified to the temporary table by triggering the modification trigger; for example, the user performs an update operation on the original table, and directly updates the temporary table by triggering the update trigger At this time, the original table is locked, so that other business processes except the user can no longer operate on the original table;
[0009] However, in the third step, modifying the data directly to the temporary table by triggering the change trigger may trigger the locking of the original table. As a result, when the user changes the table format of the original table in the database, other business processes cannot modify the original table. operation, which will affect the normal use of other businesses in the case of a long lock-up time

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Table format changing method and device, electronic device and computer readable medium
  • Table format changing method and device, electronic device and computer readable medium
  • Table format changing method and device, electronic device and computer readable medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0083] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0084] At present, when it is necessary to change the table format of the database, the widely used method is the pt-online-schema-change method. The specific processing process is as follows:

[0085] The first step is to create a temporary table according to the new table format required by the user;

[0086] The second step is to insert a modification trigger into the original table whose format is to be changed. The modification trigger can include an inse...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention provides a table format changing method and device, an electronic device and a computer readable medium. The table format changing method comprises the steps that a modification recording table of an original table format and a temporary table obtained by alternating the original table format are created; after data in the inserted original table corresponding to modification triggers is modified and the modification triggers are triggered, modification information of the original table is recorded in the modification recording table; all data in the modified original table is written into the temporary table; according to the modification information recorded in the modified original table, a first modification operation is conducted on the data in the temporary table; the modified original table is changed by the modified temporary table, and the modified original table is deleted. By applying the embodiment, it can be achieved that the original tableis not locked in the table format alternation process to avoid the influence on normal operation of other transactions.

Description

technical field [0001] The invention relates to the technical field of databases, in particular to a method, a device, an electronic device and a readable storage medium for changing a table format. Background technique [0002] At present, when it is necessary to change the table format of the database, the widely used method is the pt-online-schema-change method. The specific processing process is as follows: [0003] The first step is to create a temporary table according to the new table format required by the user; [0004] The second step is to insert a modification trigger into the original table whose table format is to be changed, and the modification trigger may include an insert trigger, an update trigger and a delete trigger; [0005] In the third step, when the user changes the data in the original table, the data is directly modified to the temporary table by triggering the modification trigger; for example, the user performs an update operation on the origina...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
Inventor 纪翔
Owner BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products