ID processing method in distributed database, management system and server
A management system and processing method technology, applied in the ID processing method in distributed database, management system and server field, can solve performance bottlenecks, performance impact, hardware maintenance and upgrade costs and other problems, and achieve the goal of reducing performance consumption and frequency. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0093] Figure 8 is a schematic diagram of an ID generation process according to Embodiment 1 of the present invention. The ID in Embodiment 1 is a sequentially generated sequence value, such as image 3 , Figure 8 As shown, the ID generation process includes:
[0094] The ID server receives the ID generation request sent by the distributed database management system, wherein the ID generation request includes ID quantity information;
[0095] The ID quantity information may be carried by the client when sending the ID application to the distributed database management system, or may be added by the distributed database management system when sending the ID generation request to the ID server according to the ID application.
[0096] The ID server queries whether there is an available ID in the locally stored ID storage table according to the ID generation request;
[0097] The available IDs to be queried in this step refer to the part of IDs that are written back to the I...
Embodiment 2
[0102] Figure 9 It is a schematic diagram of the ID application process according to Embodiment 2 of the present invention. The ID in Embodiment 2 is a sequentially generated sequence value, and the sequence value is obtained by hash calculation, such as image 3 , Figure 9 As indicated, the application process includes:
[0103] The distributed database management system receives the ID application sent by the client and obtains the client's demand information. According to the above ID demand information, the distributed database management system inquires whether there is an ID that meets the demand in the session area of the current link, that is, the sequence value . The session area is on the side of the distributed database system.
[0104] When it is found that there is an available sequence value in the session area of the current link and can meet the needs of the current business, the sequence value is directly assigned to the client for use. Then update t...
Embodiment 3
[0113] Because in the embodiment of the present invention, the number of IDs cached in the session area of the current link is likely to exceed the number actually needed, if these redundant and unused IDs are not returned to the ID server at the end of the session, these IDs will be lost in the distributed database system. In order to prevent waste caused by ID loss and possible sequence holes, the embodiment of the present invention provides a solution. Figure 10 It is a schematic diagram of the ID recycling process according to Embodiment 3 of the present invention. The ID in Embodiment 3 is a sequentially generated sequence value, and the sequence value is obtained by hash calculation, such as image 3 , Figure 10 As shown, the process includes:
[0114] After the ID server receives the recycling notification message sent by the distributed database management system, it first inquires whether there is a matching queue with the above-mentioned unused ID (i.e. sequenc...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


