Unlock instant, AI-driven research and patent intelligence for your innovation.

Data replacement method and system

A data replacement and data technology, applied in the field of database management, can solve the problems of poor transaction concurrent processing performance, heavy workload, and cumbersome steps, and achieve the effect of increasing transaction concurrency

Active Publication Date: 2016-06-01
NEW FOUNDER HLDG DEV LLC
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In order to solve the above-mentioned technical problems, the present invention provides a data replacement method and system, which solves the problem that the existing XML database replacement method requires two search steps, which cause cumbersome steps, heavy workload, and poor concurrent transaction processing performance. question

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 replacement method and system
  • Data replacement method and system
  • Data replacement method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0051] Such as figure 1 and as figure 2 As shown, the embodiments of the present invention provide a data replacement method, including:

[0052] Step 10: Find the target address of the data to be replaced;

[0053] When the client needs to replace data, obtain the target address information of the data to be replaced, and find the target address of the data to be replaced according to the target address information;

[0054] Step 20: Detect whether there is old value data with the same name as the data to be replaced on the target address;

[0055] After finding the target address of the data to be replaced, it is necessary to detect at the target address to detect whether there is old value data with the same name as the data to be replaced on the target address, and make the next step according to the detection result;

[0056] Step 30: If the old value data exists on the target address, replace the old value data with the data to be replaced;

[0057] If the detection...

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 invention discloses a data replacement method and system, and the data replacement method and system are applied to an XML database. The data replacement method comprises the following steps: finding a target address of to-be-replaced data; detecting whether old value data same as the to-be-replaced data in the aspect of name exists on the target address; if the old value data exists on the target address, replacing the old value data by the to-be-replaced data; and if the old value data does not exist on the target address, inserting the to-be-replaced data into the target address. According to the data replacement method and system, the querying and updating are inserted and combined into one operation; when the data needs to be replaced, the user only needs to find target address, detect whether the old value data same as the to-be-replaced data in the aspect of name exists on the target address, update the data if the detection result is positive and inserting the data if the detection result is negative, so that one operation of finding the target address is decreased, the processing performance of the system can be enhanced, and the transaction concurrency can be improved to a certain extent.

Description

technical field [0001] The invention relates to the field of database management, in particular to a data replacement method and system, which are applied to XML databases. Background technique [0002] In the actual use of XML (ExtensibleMarkupLanguage, Extensible Markup Language) database, there are many requirements similar to replacement. When a data needs to be replaced, when the data exists in the database, it is updated. If the data does not exist Just insert this data, but such a replace operation is not supported in the XML database. The existing data replacement method requires the client to first determine whether the old value document or attribute exists, and then choose to update or insert, but the search operation and the update operation are two There is already a path search step in the search operation, and a search step is required in the update operation. This search operation not only makes the data replacement step more cumbersome, but also increases th...

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 NEW FOUNDER HLDG DEV LLC