Data exchange method, device, server and storage medium

A data exchange and data technology, applied in the computer field, can solve problems such as low efficiency, achieve the effect of improving efficiency, avoiding read and write operations and occupying server resources

Active Publication Date: 2020-01-10
SHANGHAI DAMENG DATABASE
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The embodiment of the present invention provides a data exchange method, device, server and storage medium, which can solve the technical problem of low efficiency in the prior art

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
  • Data exchange method, device, server and storage medium
  • Data exchange method, device, server and storage medium
  • Data exchange method, device, server and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0047] figure 1 It is a flow chart of the data exchange method in Embodiment 1 of the present invention. This embodiment is applicable to the situation of implementing data exchange. The method can be executed by a data exchange device, which can be implemented in software and / or hardware, for example , the device can be configured in the server.

[0048] A schematic diagram is used to describe the data exchange method of the embodiment of the present invention as a whole. For details, see figure 2 . figure 2 It is a schematic diagram of the data exchange method in Embodiment 1 of the present invention. The directory names of the two data corresponding files to be exchanged are respectively A and B on the left side of the figure, and data exchange is realized by exchanging the directory names of the two data corresponding files. FIG. The directory names of the files corresponding to the two data after the data exchange on the right side of the center are B and A respective...

Embodiment 2

[0061] image 3 It is a flow chart of the data exchange method in Embodiment 2 of the present invention. In this embodiment, on the basis of the foregoing embodiments, the foregoing data exchange method is further optimized. Correspondingly, such as image 3 As shown, the method of this embodiment specifically includes:

[0062] S210. Receive a data exchange request, where the data exchange request includes an identifier of the first data to be exchanged and an identifier of the second data.

[0063] S220. Search for the first original directory name of the first data according to the identifier of the first data, and search for the second original directory name of the second data according to the identifier of the second data.

[0064] S230. Acquire the exchange transaction number, the directory information of the first data, and the directory information of the second data, and store the exchange transaction number, the directory information of the first data, and the di...

Embodiment 3

[0095] Figure 4 It is a flow chart of the data exchange method in the third embodiment of the present invention. Based on the foregoing embodiments, this embodiment further specifies the rollback operation in the data exchange method through an example. The method may specifically include:

[0096] S301, start.

[0097] Specifically, after the rollback request is detected, the rollback operation is started.

[0098] S302. Obtain information in the rollback log.

[0099] The information of the rollback log stored during data exchange is obtained, and the rollback log may include log type, exchange transaction number, directory information of the first data, and directory information of the second data.

[0100] S303. Whether there is a first temporary directory name.

[0101] Since the first temporary directory name will be generated in the data exchange process, judge whether there is a first temporary directory name, if it exists, it means that an abnormal situation occ...

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 discloses a data exchange method and device, a server and a storage medium, and the method comprises the steps: receiving a data exchange request which comprises an identifier of to-be-exchanged first data and an identifier of to-be-exchanged second data; searching a first original directory name of the first data according to the identifier of the first data, and searching a second original directory name of the second data according to the identifier of the second data; and exchanging the first original directory name and the second original directory name toobtain a first new directory name of the first data and a second new directory name of the second data. According to the embodiment of the invention, when data exchange is carried out, the data exchange can be rapidly completed by exchanging the directory name of the to-be-exchanged data, the read-write operation of the to-be-exchanged data and the occupation of server resources are avoided, and the data exchange efficiency is improved.

Description

technical field [0001] The embodiments of the present invention relate to the field of computer technology, and in particular, to a data exchange method, device, server and storage medium. Background technique [0002] In databases and data management software, it is a common method to use data files in different directories to store data of different objects, and there is a demand for exchanging data of different objects in the database. [0003] For the column storage table in the database, for the data of different columns, an existing storage method is to store the data of different columns in separate data files, and the column data files of the same table are stored in the same directory. For example, the column storage table T in the database has two columns: C1 and C2. The data of this table may be stored in the directory DATA_T, and the data of the two columns are files DATA_C1.dta and DATA_C2.dta in this directory. [0004] The database has data exchange operation...

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 Patents(China)
IPC IPC(8): G06F16/901
Inventor 王攀郭琰
Owner SHANGHAI DAMENG DATABASE
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products