A method for incrementally storing data with different versions in different regions

By configuring regional identification and version fields for high-precision map data, updating version fields and partitioning tables according to update types, the problem of low efficiency of multi-version data storage in different regions in the existing technology is solved, and efficient incremental data storage and reading are achieved. Write.

CN114443644BActive Publication Date: 2024-09-27WUHAN ZHONGHAITING DATA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111622299.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-28
Publication Date
2024-09-27
Estimated Expiration
2041-12-28

AI Technical Summary

Technical Problem

The existing zipper table model cannot satisfy the independent storage of multi-version data in different regions, and when processing large amounts of data, the reading and writing speed and data comparison efficiency are insufficient.

Method used

By configuring the area identification field and version field for high-precision map data in different areas, updating the version field according to the data update type, and partitioning the data table with the end version field, incremental data storage is achieved.

Benefits of technology

It improves data reading and writing speed and comparison efficiency, and supports incremental storage of independent versions of historical data in different regions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114443644B
    Figure CN114443644B
Patent Text Reader

Abstract

The present invention provides a method for storing data increments of different versions in different regions, including: configuring a region identification field for high-precision map data in different regions; configuring a start version field and an end version field for each version of data; when data is dynamically updated, determining the update type of each piece of data based on a comparison of the next version and the previous version; updating the start version field and the end version field of each piece of data in the next version based on the update type of each piece of data, and partitioning the data table with the end version field to achieve data increment storage. The present invention uses a partition table to achieve incremental storage of high-precision map historical data with independent versions in different regions, thereby improving read and write efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of high-precision map data production, and more specifically, to a method for storing data increments of different versions in different regions. Background Art

[0002] For the storage of incremental data of high-precision map data, the existing zipper table mode is only applicable to the historical zipper storage of data in the same area, which cannot meet the independent storage of multiple versions of data in different regions. When processing large amounts of data, there are deficiencies in reading and writing speed and data comparison efficiency. Summary of the invention

[0003] The present invention aims at the technical problems existing in the prior art and provides a method for storing data increments of different versions in different regions.

[0004] According to a first aspect of the present invention, a method for storing incremental data of different versions in different regions is provided, comprising:

[0005] Configure area identification fields for high-precision map data of different areas;

[0006] Configure the start version field and the end version field for each version data;

[0007] When data is dynamically updated, the update type of each piece of data is determined based on the next version and the previous version of data;

[0008] According to the update type of each piece of data, the start version field and the end version field of each piece of data in the next version are updated, and the data table is partitioned by the end version field to realize incremental data storage.

[0009] Based on the above technical solution, the present invention can also make the following improvements.

[0010] Optionally, it also includes: when the data is dynamically updated, according to the data addition flag, the updated data is incrementally stored using a corresponding data addition method, and the data addition method includes a direct addition method and an overwrite addition method.

[0011] Optionally, when the data adding method is a direct adding method, when the data is dynamically updated, the update type of each piece of data is determined according to the next version and the previous version of data, including:

[0012] When the data adding method is a direct adding method, when the data is dynamically updated, the start version field and the end version field of each piece of data of the next version are set according to the update type of each piece of data, and the data table is partitioned by the end version field to realize data incremental storage, including:

[0013] For the data in the specified area, according to the specified area areaid, retrieve the current maximum start version max_s_version of the specified area in the areaid version table;

[0014] Create a temporary table tmp, whose table structure is consistent with the target zipper table, to store the data corresponding to the areaid obtained from the dynamic library;

[0015] Compare the maximum partition value max_partitionrangeend of the target zipper table with s_version. If the latter is greater than or equal to the former, add a partition to the zipper table and change the mode of the newly added partition to partitions.

[0016] By comparing the data corresponding to the areaid in the current largest partition of the target zipper table with the data in the temporary table tmp, the update type of each piece of data is determined;

[0017] According to the determined update type of each piece of data, corresponding operations are performed.

[0018] Optionally, the update type of each piece of data is one of deletion, addition, same or modification.

[0019] Optionally, when the update type is deletion, comparing the data corresponding to the areaid in the current largest partition of the target zipper table with the data in the temporary table tmp to determine the update type of each piece of data includes:

[0020] Compare the data corresponding to the areaid in the current largest partition of the target zipper table with the temporary table tmp through the primary key, and the data not in the temporary table tmp will be deleted;

[0021] Accordingly, the corresponding operation is performed according to the determined update type of each piece of data, including:

[0022] Close the deleted data in the zipper table.

[0023] Optionally, when the update type is new addition, comparing the data corresponding to the areaid in the current largest partition of the target zipper table with the data in the temporary table tmp to determine the update type of each piece of data includes:

[0024] Compare the data in the tmp table with the data corresponding to the areaid in the current largest partition of the target zipper table through the primary key. The data not in the zipper table is the newly added data.

[0025] Accordingly, the corresponding operation is performed according to the determined update type of each piece of data, including:

[0026] The newly added data in the temporary table tmp is transferred to the target zipper table as max_s_version+1 version data, and it is deleted in the temporary table tmp.

[0027] Optionally, when the update types are the same, comparing the data corresponding to the areaid in the current largest partition of the target zipper table with the data in the temporary table tmp to determine the update type of each piece of data includes:

[0028] Compare the data corresponding to the areaid in the current largest partition of the target zipper table with the data in the temporary table tmp through the full data field, and the data that passes the comparison is unchanged;

[0029] Accordingly, the corresponding operation is performed according to the determined update type of each piece of data, including:

[0030] Delete the same data in the temporary table tmp.

[0031] Optionally, when the update type is modification, comparing the data corresponding to the areaid in the current largest partition of the target zipper table with the data in the temporary table tmp to determine the update type of each piece of data includes:

[0032] After removing the data whose update type is delete, add, or same, the other data in the target zipper table is the modified data;

[0033] Accordingly, the corresponding operation is performed according to the determined update type of each piece of data, including:

[0034] The data corresponding to the areaid in the current largest partition of the target zipper table is compared with the data in the temporary table tmp through the primary key, a closed-chain operation is performed on the associated data in the zipper table, and the modified data in the temporary table tmp is transferred to the target zipper table as the max_s_version+1 version data.

[0035] Optionally, when the data adding mode is an overwriting adding mode, when the data is dynamically updated, the start version field and the end version field of each piece of data of the next version are set according to the update type of each piece of data, and the data table is partitioned by the end version field to realize data incremental storage, including:

[0036] For the designated area data, according to the designated area areaid, retrieve the current maximum start version max_s_version of the areaid in the areaid version table;

[0037] Determine the overwriting method based on max_s_version:

[0038] The data of the maximum start version max_s_version in the zipper table is overwritten and deleted, the maximum start version of the zipper table is updated, and based on the updated maximum start version data of the zipper table, the incremental storage of data is realized by directly adding.

[0039] Optionally, overwriting and deleting the data of the maximum start version max_s_version in the zipper table includes:

[0040] a. If max_s_version>=2, delete the data in the zipper table s_version=max_s_version and e_version=9223372036854775807 according to areaid, and update the e_version of the data corresponding to areaid with e_version=max_s_version to 9223372036854775807, and update the areaid version table t_areaid_verison to max_s_version-1. At this point, the data overwriting operation of the max_s_version version is completed;

[0041] b. If max_s_version = 0, it means that there is no data for the areaid at present, and it will not be processed;

[0042] c. If max_s_version = 1, it means that there is only one version of the data corresponding to the areaid in the dynamic library. Overwriting means deleting the first version of the data: according to areaid, delete the data of the zipper table end_version = 9223372036854775807, and set the start_version of the areaid version table to empty.

[0043] According to a second aspect of the present invention, a data incremental storage system of different versions in different regions is provided, comprising:

[0044] Configuration module, configures the area identification field for high-precision map data of different areas; configures the start version field and the end version field for each version of data;

[0045] The incremental storage module is used to determine the update type of each piece of data based on the next version and the previous version of data when the data is dynamically updated; according to the update type of each piece of data, the start version field and the end version field of each piece of data in the next version are updated, and the data table is partitioned by the end version field to realize incremental data storage.

[0046] According to a third aspect of the present invention, there is provided an electronic device comprising a memory and a processor, wherein the processor is used to implement the steps of a method for storing data increments of different versions in different regions when executing a computer management program stored in the memory.

[0047] According to a fourth aspect of the present invention, there is provided a computer-readable storage medium on which a computer management program is stored, and when the computer management program is executed by a processor, the steps of a method for storing incremental data of different versions in different regions are implemented.

[0048] The present invention provides a method for incrementally storing data of different versions in different regions, which uses areaid to distinguish the data of each region, and uses the start version and end version fields to jointly control the data version of each region, and uses a partition table to realize incremental storage of historical data of independent versions of different regions; the data table is partitioned according to the end version field to improve the data reading and writing speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 A flow chart of a method for incrementally storing data of different versions in different regions provided by the present invention;

[0050] Figure 2 This is the overall flow chart of the incremental storage method for different versions of data in different regions;

[0051] Figure 3 A schematic diagram of the structure of a system for storing incremental data of different versions in different regions provided by the present invention;

[0052] Figure 4 A schematic diagram of the hardware structure of a possible electronic device provided by the present invention;

[0053] Figure 5 A schematic diagram of the hardware structure of a possible computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION

[0054] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0055] Embodiment 1

[0056] A method for incrementally storing different versions of data in different regions, see Figure 1 , the data incremental storage method mainly includes the following steps:

[0057] S1, configures the region identification field for high-precision map data of different regions.

[0058] S2, configure the start version field and the end version field for each version of data.

[0059] The existing zipper table mode implements historical zipper storage of data in the same region, which cannot meet the independent storage of multiple versions of data in different regions, and when processing large amounts of data, there are deficiencies in read and write speed and data comparison efficiency. The present invention uses a partition table to implement incremental storage of historical data of independent versions in different regions, thereby improving read and write efficiency. The areaid field is used to distinguish data from different regions, and the start version field and the end version field are used to jointly control the data version of each region. At the same time, the data table is partitioned according to the end version field to improve data read and write speed. Among them, the start version indicates the version of each data entering the zipper table, and the end version indicates whether each data has been modified or deleted. Among them, the end version e_version=9223372036854775807 indicates that the data has not been modified or deleted.

[0060] S3: When data is dynamically updated, the update type of each piece of data is determined based on the next version and the previous version of the data; based on the update type of each piece of data, the start version field and the end version field of each piece of data in the next version are updated, and the data table is partitioned by the end version field to achieve incremental data storage.

[0061] When high-precision map data is dynamically updated, it is necessary to store the data incrementally. For the data of a certain area, first retrieve the areaid version table to obtain the current maximum starting version max_s_version of the areaid.

[0062] Then, according to the data addition flag, determine the data addition method, which mainly includes direct addition method and overwrite addition method.

[0063] When the data addition method is direct addition, the steps to implement incremental data storage include:

[0064] (1) Create a temporary table tmp, whose structure is consistent with the target zipper table, to store the data corresponding to the areaid obtained from the dynamic library.

[0065] (2) Compare the maximum partition value max_partitionrangeend of the target zipper table with s_version. If the latter is greater than or equal to the former, add a partition to the target zipper table and change the mode of the newly added partition to partitions.

[0066] It should be noted that, since the amount of data stored in the target zipper table is very large, the target zipper table in the embodiment of the present invention stores data in partitions. For example, one version can be used as a partition, or multiple versions can be used as a partition. For example, taking one version as a partition, when a new version of data is added, a new partition needs to be added to the target zipper table to store the new version of data.

[0067] (3) Deletion judgment: Compare the data corresponding to the areaid in the current largest partition of the target zipper table with the data in the temporary table tmp through the primary key. The data not in the temporary table tmp is the deleted data, and the data in the target zipper table is closed.

[0068] (4) Determine new additions: Compare the data in the temporary table tmp with the data corresponding to the areaaid in the current largest partition of the target zipper table through the primary key. If the data is not in the target zipper table, it is new data. Transfer this part of the data in the temporary table tmp as max_s_version+1 version data to the target zipper table and delete it from the temporary table tmp.

[0069] (5) Determine if they are the same: Use all data fields (all other fields except s_vers ion and e_vers ion) to compare the data corresponding to the areaid in the current largest partition of the target zipper table with the data in the temporary table tmp. The data that passes the comparison is unchanged, and the data in the temporary table tmp is deleted.

[0070] Additional explanation of full data field matching: If the data of this version has been entered into the target zipper table before, but the same record appears in the dynamic library data later, and the record has not changed before and after, full data field matching is performed to avoid closed link.

[0071] (6) Determine the modification: At this time, the data left in the temporary table tmp is the modified data. The data corresponding to the areaid in the current largest partition of the target zipper table is compared with the data in the temporary table tmp through the primary key, and the associated data in the target zipper table is closed. The data in the temporary table tmp is transferred to the target zipper table as the max_s_version+1 version of the data.

[0072] (7) Update the area number version table: add 1 to the maximum starting version field max_s_version of the areaaid.

[0073] When the data addition method is an overwrite addition method, the steps to achieve incremental data storage include: overwriting and deleting the data of the maximum starting version max_s_version in the zipper table, updating the maximum starting version of the zipper table, and based on the updated maximum starting version data of the zipper table, using a direct addition method to achieve incremental data storage.

[0074] The overwriting and deleting of the data of the maximum start version max_s_version in the zipper table includes:

[0075] a. If max_s_version>=2, overwrite the data of the max_s_version version of the zipper table, that is, overwrite the data in the zipper table where s_version=max_s_version and e_version=9223372036854775807;

[0076] According to areaid, delete the data of zipper table s_version=max_s_version and e_version=9223372036854775807, and update the e_version of the data of e_version=max_s_version corresponding to areaid to 9223372036854775807, and update the areaid version table t_areaid_verison to max_s_version-1. At this point, the data overwriting operation of the max_s_version version is completed;

[0077] b. If max_s_version = 0, it means that there is no data for the areaid at present, and it will not be processed;

[0078] c. If max_s_version = 1, it means that there is only one version of the data corresponding to the areaid in the dynamic library. Overwriting means deleting the first version of the data: according to areaid, delete the data of the zipper table end_version = 9223372036854775807, and set the start_version of the areaid version table to empty.

[0079] The latest version of the data in the zipper table is deleted, the maximum starting version in the zipper table is updated, and based on the updated maximum version of the data in the zipper table, the data incremental storage is realized by directly adding the data.

[0080] It should be noted that during the entire incremental data storage process, multi-node distributed parallel processing based on Greenplum's MPP architecture can further improve the computing efficiency during data updates.

[0081] Embodiment 2

[0082] A method for storing incremental data of different versions in different regions. The following is an example of the method for storing incremental data provided by the present invention. Figure 2 , according to the new addition flag, determine whether it is an overwriting addition or a direct addition. If it is a direct addition, call the direct addition processing program to complete the addition of the new version of areaid. If it is an overwriting addition, first overwrite the current version data of areaid, and then call the direct addition program to re-add the current version data.

[0083] The table structure is: propid int8, material int2. New version fields s_version (start version field) and e_version (end version field) are added to the original table to record and trace the status of each version of data and dynamic changes of data. At the same time, e_version is used as the partition key. s_version indicates that the data is the nth version when it is entered into the gp zipper table. e_version indicates whether the data has been modified or deleted. 9223372036854775807 indicates that it has not been modified or deleted. If it is a specific value n, it means that it has been modified or deleted when the nth version of data is entered into the database.

[0084] In order to clearly demonstrate the entire logic, a small amount of demo data is used to explain in detail the process of adding two versions of data in a certain area (areaid=xxx):

[0085] The dynamic library data for the first version of data submission is shown in Table 1:

[0086] Table 1 Data of the first version of the dynamic library

[0087] propid Material 1 1 2 2 3 1 4 2 5 1 6 2 7 2

[0088] When writing the zipper table for the first time, all the dynamic library data is stored as the first version of the data. Therefore, after the first version of the data is stored in the gp library, the zipper table data, as well as the start and end versions of each data item are shown in Table 2:

[0089] Table 2 Data of the first entry into the zipper table

[0090] propid Material s_version e_version 1 1 1 9223372036854775807 2 2 1 9223372036854775807 3 1 1 9223372036854775807 4 2 1 9223372036854775807 5 1 1 9223372036854775807 6 2 1 9223372036854775807 7 2 1 9223372036854775807

[0091] The dynamic library data for version 2 data submission is shown in Table 3:

[0092] Table 3 Version 2 dynamic library data

[0093] propid Material 2 2 3 1 5 1 6 2 7 1 8 1 9 2

[0094] Compare the data of e_version=9223372036854775807 in the zipper table to explain the data zipper storage rules in detail:

[0095] (1) The data of propid=1material=1, propid=4material=2 is deleted, and its e_version is set to 2, that is, the data record is deleted when the second version of the data is entered into the zipper table. The data record of the data record after the zipper table is modified is shown in Table 4:

[0096] Table 4 Data modified in the second edition

[0097] propid Material s_version e_version 1 1 1 2 4 2 1 2

[0098] Among them, s_version=1e_version=2 means that the record is entered into the zipper table in the first version and is deleted in the second version.

[0099] (2) The data records of propid=2material=2, propid=3material=1, propid=5material=1, propid=6material=2 have not changed. The same records appearing in the second version will not be entered into the zipper table, and the original status of the same records in the zipper table remains unchanged. The start version and end version after entering the zipper table are shown in Table 5.

[0100] Table 5 Unchanged data records

[0101] propid Material s_version e_version 2 2 1 9223372036854775807 3 1 1 9223372036854775807 5 1 1 9223372036854775807 6 2 1 9223372036854775807

[0102] s_version=1<current new version s_version=2, and e_version=9223372036854775807 indicate that the record has not changed in the current version.

[0103] (3) propid=7material=2 is modified, and its e_version is set to 2, which means that the record is modified when the second version of the data is entered into the zipper table, and the modified record in the second version is propid=7material=1, which is equivalent to a new record added in the second version, so its s_version is assigned to 2. The start version and end version after entering the zipper table are shown in Table 6.

[0104] Table 6 Modified data

[0105] propid Material s_version e_version 7 2 1 2 7 1 2 9223372036854775807

[0106] If the propid is the same, the other data fields are different, and the e_version of one record is equal to the s_version of the other record, it means that the two records are before and after modification.

[0107] (4) propid=8 material=1, propid=9 material=2 are newly added records. Since they are newly added in the second edition, their s_version=2. The start version and end version after entering the zipper table are shown in Table 7.

[0108] Table 7 Newly added data records

[0109] propid Material s_version e_version 8 1 2 9223372036854775807 9 2 2 9223372036854775807

[0110] In summary, the zipper table data after the second version of the data is entered into the gp database is shown in Table 8.

[0111] Table 8 Zipper table data after version 2 data is entered into gp database

[0112] propid Material s_version e_version 1 1 1 2 2 2 1 9223372036854775807 3 1 1 9223372036854775807 4 2 1 2 5 1 1 9223372036854775807 6 2 1 9223372036854775807 7 2 1 2 7 1 2 9223372036854775807 8 1 2 9223372036854775807 9 2 2 9223372036854775807

[0113] At this point, adding new data is completed.

[0114] Override new methods:

[0115] Overwrite and add the current maximum starting version of the areaid, that is, the second version of the data. At this time, max_s_version=2, then max_s_version>=2, so the data of s_version=2, e_version=9223372036854775807 in the zipper table is processed.

[0116] Step 1: According to areaid, delete the data in the zipper table where s_version=2 and e_version=9223372036854775807. The data after deletion is shown in Table 9.

[0117] Table 9 Data after deleting the data of zipper table s_version=2 and e_version=9223372036854775807

[0118] propid Material s_version e_version 1 1 1 2 2 2 1 9223372036854775807 3 1 1 9223372036854775807 4 2 1 2 5 1 1 9223372036854775807 6 2 1 9223372036854775807 7 2 1 2

[0119] Step 2: Update the data e_version field of e_version=2 corresponding to the areaid to 9223372036854775807, see Table 10.

[0120] Table 10 End field update data

[0121] propid Material s_version e_version 1 1 1 9223372036854775807 2 2 1 9223372036854775807 3 1 1 9223372036854775807 4 2 1 9223372036854775807 5 1 1 9223372036854775807 6 2 1 9223372036854775807 7 2 1 9223372036854775807

[0122] Step 3: Overwrite the max_s_version-1 of the areaid version table t_areaid_verison. At this point, the data overwriting operation of the max_s_version version is completed. At this time, the data corresponding to the areaid in the table is the first version of the areaid. Next, add the next version of data, and the process is the same as the direct addition process.

[0123] Embodiment 3

[0124] A system for storing incremental data in different regions and versions, see Figure 3 The data incremental storage system includes a configuration module 301 and an incremental storage module 302.

[0125] The configuration module 301 configures the area identification field for the high-precision map data of different areas; configures the start version field and the end version field for each version of data;

[0126] The incremental storage module 302 is used to determine the update type of each piece of data based on the next version and the previous version of data when the data is dynamically updated; according to the update type of each piece of data, the start version field and the end version field of each piece of data in the next version are updated, and the data table is partitioned by the end version field to realize incremental data storage.

[0127] It can be understood that the incremental data storage system for different versions in different regions provided by the present invention corresponds to the incremental data storage method for different versions in different regions provided by the aforementioned embodiments. The relevant technical features of the incremental data storage system for different versions in different regions can refer to the relevant technical features of the incremental data storage method for different versions in different regions, which will not be repeated here.

[0128] Embodiment 4

[0129] See also Figure 4 , Figure 4 Schematic diagram of an electronic device provided by an embodiment of the present invention. Figure 4As shown, an embodiment of the present invention provides an electronic device 400, including a memory 410, a processor 420, and a computer program 411 stored in the memory 410 and executable on the processor 420. When the processor 420 executes the computer program 411, the following steps are implemented: configuring area identification fields for high-precision map data of different areas; configuring start version fields and end version fields for each version of data; when data is dynamically updated, determining the update type of each piece of data according to the next version and the previous version of data; updating the start version field and end version field of each piece of data of the next version according to the update type of each piece of data, and partitioning the data table with the end version field to realize incremental data storage.

[0130] Embodiment 5

[0131] See also Figure 5 , Figure 5 Schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. Figure 5 As shown, this embodiment provides a computer-readable storage medium 500, on which a computer program 511 is stored. When the computer program 511 is executed by a processor, the following steps are implemented: configure area identification fields for high-precision map data of different areas; configure start version fields and end version fields for each version of data; when data is dynamically updated, determine the update type of each data according to the next version and the previous version of data; according to the update type of each data, update the start version field and end version field of each data of the next version, and partition the data table with the end version field to realize incremental data storage.

[0132] The method and system for incrementally storing data of different versions in different regions provided by the embodiment of the present invention have the following main advantages over the prior art:

[0133] (1) The data of each region is distinguished by areaid, and the start version and end version fields are used to jointly control the data version of each region, so as to realize the incremental storage of historical data with independent versions of different regions.

[0134] (2) Partition the data table according to the end version field to improve data retrieval speed.

[0135] (3) Based on Greenplum's MPP architecture, multi-node distributed parallel processing can further improve computing efficiency when updating data.

[0136] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0137] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0138] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0139] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0140] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0141] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0142] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for incrementally storing different versions of data in different regions. It is characterized in that include: Configure area identification fields for high-precision map data of different areas; Configure the start version field and the end version field for each version data; When data is dynamically updated, the update type of each piece of data is determined based on the next version and the previous version of data; According to the update type of each piece of data, the start version field and the end version field of each piece of data in the next version are updated, and the data table is partitioned by the end version field to realize incremental data storage; When the data adding method is a direct adding method, when the data is dynamically updated, the update type of each piece of data is determined according to the next version and the previous version of data, including: For the data in the specified area, according to the specified area areaid, retrieve the current maximum start version max_s_version of the specified area in the areaid version table; Create a temporary table tmp, whose table structure is consistent with the target zipper table, to store the data corresponding to the areaid obtained from the dynamic library; Compare the maximum partition value max_partitionrangeend of the target zipper table with s_version. If the latter is greater than or equal to the former, add a partition to the zipper table and change the mode of the newly added partition to partitions. By comparing the data corresponding to the areaid in the current largest partition of the target zipper table with the data in the temporary table tmp, the update type of each piece of data is determined; According to the determined update type of each piece of data, corresponding operations are performed.

2. The data incremental storage method according to claim 1, It is characterized in that Also includes: When data is dynamically updated, the updated data is incrementally stored using a corresponding data addition method according to a data addition flag, and the data addition method includes a direct addition method and an overwriting addition method.

3. The data incremental storage method according to claim 1 or 2, It is characterized in that The update type of each piece of data is one of deletion, addition, sameness or modification.

4. The data incremental storage method according to claim 3, It is characterized in that When the update type is deletion, comparing the data corresponding to the areaid in the current largest partition of the target zipper table with the data in the temporary table tmp to determine the update type of each piece of data includes: Compare the data corresponding to the areaid in the current largest partition of the target zipper table with the temporary table tmp through the primary key, and the data not in the temporary table tmp will be deleted; Accordingly, the corresponding operation is performed according to the determined update type of each piece of data, including: Close the deleted data in the zipper table.

5. The data incremental storage method according to claim 3, It is characterized in that When the update type is new addition, the update type of each piece of data is determined by comparing the data corresponding to the areaid in the current largest partition of the target zipper table with the data in the temporary table tmp, including: Compare the data in the tmp table with the data corresponding to the areaid in the current largest partition of the target zipper table through the primary key. The data not in the zipper table is the newly added data. Accordingly, the corresponding operation is performed according to the determined update type of each piece of data, including: The newly added data in the temporary table tmp is transferred to the target zipper table as max_s_version+1 version data, and it is deleted in the temporary table tmp.

6. The data incremental storage method according to claim 3, It is characterized in that When the update types are the same, comparing the data corresponding to the areaid in the current largest partition of the target zipper table with the data in the temporary table tmp to determine the update type of each piece of data includes: Compare the data corresponding to the areaid in the current largest partition of the target zipper table with the data in the temporary table tmp through the full data field, and the data that passes the comparison is unchanged; Accordingly, the corresponding operation is performed according to the determined update type of each piece of data, including: Delete the same data in the temporary table tmp.

7. The data incremental storage method according to claim 3, It is characterized in that When the update type is modification, the update type of each piece of data is determined by comparing the data corresponding to the areaid in the current largest partition of the target zipper table with the data in the temporary table tmp, including: After removing the data whose update type is delete, add, or same, the other data in the target zipper table is the modified data; Accordingly, the corresponding operation is performed according to the determined update type of each piece of data, including: The data corresponding to the areaid in the current largest partition of the target zipper table is compared with the data in the temporary table tmp through the primary key, a closed-chain operation is performed on the associated data in the zipper table, and the modified data in the temporary table tmp is transferred to the target zipper table as the max_s_version+1 version data.

8. The data incremental storage method according to claim 2, It is characterized in that When the data adding mode is the overwriting adding mode, when the data is dynamically updated, the start version field and the end version field of each piece of data of the next version are set according to the update type of each piece of data, and the data table is partitioned by the end version field to realize data incremental storage, including: For the designated area data, according to the designated area areaid, retrieve the current maximum start version max_s_version of the areaid in the areaid version table; Determine the overwriting method based on max_s_version: The data of the maximum start version max_s_version in the zipper table is overwritten and deleted, the maximum start version of the zipper table is updated, and based on the updated maximum start version data of the zipper table, the incremental storage of data is realized by directly adding.

9. The data incremental storage method according to claim 8, It is characterized in that The overwriting and deleting of the data of the maximum start version max_s_version in the zipper table includes: a. If max_s_version>=2, delete the data in the zipper table s_version=max_s_version and e_version=9223372036854775807 according to areaid, and update the e_version of the data corresponding to areaid with e_version=max_s_version to 9223372036854775807, and update the areaid version table t_areaid_verison to max_s_version-1. At this point, the data overwriting operation of the max_s_version version is completed; b. If max_s_version = 0, it means that there is no data for the areaid at present, and it will not be processed; c. If max_s_version = 1, it means that there is only one version of the data corresponding to the areaid in the dynamic library. Overwriting means deleting the first version of the data: according to areaid, delete the data of the zipper table end_version = 9223372036854775807, and set the start_version of the areaid version table to empty.