Data table updating method and apparatus
A data table update and data table technology, applied in the computer field, can solve the problems of wasting computing resources and wasting computing resources, and achieve the effect of reducing waste and saving computing resources
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0052] As mentioned above, when the existing technology updates the field values in the data table in the distributed computing platform, all fields are usually updated, such as Hadoop (a software framework that can perform distributed processing on a large amount of data), and ODPS (Big Data Computing Service, a fast and fully managed TB / PB-level data warehouse solution) can be used to support distributed computing platforms. Among them, only the insert overwrite statement can be used to overwrite existing records. For example, if Table 1 needs to be updated, then each field value in each record will be determined respectively according to each key value corresponding to the primary key "account number" that needs to be updated, and the original data table will be overwritten. "Name", "Gender", "Birthday", and determine "Age", and "Rating". However, if only part of the field values need to be updated, all of them can only be updated. For example, due to business needs, on...
Embodiment 2
[0089] Based on the same inventive concept, embodiment 2 provides a data table updating device, which saves computing resources and reduces waste when only part of the field values in the data table need to be updated. Figure 4 is a structural diagram of the device, which includes: a first updating unit 21, a temporary data table generating unit 22, and a second updating unit 23, wherein,
[0090] The first update unit 21 can determine the field value to be updated in the original data table, and update the field value;
[0091] The temporary data table generation unit 22 can obtain the record corresponding to the field value from the original data table, and update the record according to the updated field value to generate a temporary data table;
[0092] The second updating unit 23 can update the original data table according to the temporary data table.
[0093] In one embodiment, the first updating unit 21 may
[0094] Determine the field value that needs to be updat...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


