CN110674106A - Storage method, device and equipment of policy data and computer readable storage medium - Google Patents

Storage method, device and equipment of policy data and computer readable storage medium Download PDF

Info

Publication number
CN110674106A
CN110674106A CN201910815929.2A CN201910815929A CN110674106A CN 110674106 A CN110674106 A CN 110674106A CN 201910815929 A CN201910815929 A CN 201910815929A CN 110674106 A CN110674106 A CN 110674106A
Authority
CN
China
Prior art keywords
policy data
stored
processing system
node
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910815929.2A
Other languages
Chinese (zh)
Other versions
CN110674106B (en
Inventor
潘曦
安然
蒋成立
尹伊俪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
PICC PROPERTY AND CASUALTY Co Ltd
Original Assignee
PICC PROPERTY AND CASUALTY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by PICC PROPERTY AND CASUALTY Co Ltd filed Critical PICC PROPERTY AND CASUALTY Co Ltd
Priority to CN201910815929.2A priority Critical patent/CN110674106B/en
Publication of CN110674106A publication Critical patent/CN110674106A/en
Application granted granted Critical
Publication of CN110674106B publication Critical patent/CN110674106B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/08Insurance

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Software Systems (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a storage method, a device, equipment and a computer readable storage medium of policy data, wherein the method comprises the following steps: acquiring a key value of policy data to be stored; if the key value represents that the ratio of the reading amount to the writing amount corresponding to the policy data to be stored is not larger than the preset ratio, controlling a processing node in the first processing system to store the policy data to be stored; wherein the preset ratio is greater than 1; and if the key value represents that the ratio of the reading amount to the writing amount corresponding to the policy data to be stored is greater than the preset ratio, controlling a writing node in the second processing system to store the policy data to be stored.

Description

Storage method, device and equipment of policy data and computer readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, and a device for storing policy data, and a computer-readable storage medium.
Background
In the prior art, the policy data management system may preset a reading node for reading policy data and a writing node for writing policy data, and manage the policy data based on the preset reading node and the writing node. The number of reading nodes and writing nodes set by the policy data management system is usually set by default of the system or manually set by related personnel.
In the prior art, the number of read nodes and write nodes of the policy management system is fixed, when the policy data management system manages policy data, it is very likely that the read nodes are not enough and the write nodes are idle, or the write nodes are not enough and the read nodes are idle, and when the read nodes or the write nodes are not enough, the policy data cannot be timely and effectively processed, so that the policy data management system has low policy data management efficiency.
Disclosure of Invention
Embodiments of the present invention provide a storage method, an apparatus, a device, and a computer-readable storage medium for policy data, so as to solve the problem in the prior art that the management efficiency of a policy data management system on policy data is low due to the fact that the number of read nodes and write nodes of the policy management system is not matched with the corresponding read amount and write amount of the policy data.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, a method for storing policy data is provided, the method comprising:
acquiring a key value of policy data to be stored;
if the key value represents that the ratio of the reading amount to the writing amount corresponding to the policy data to be stored is not larger than a preset ratio, controlling the processing node in the first processing system to store the policy data to be stored; wherein the preset ratio is greater than 1;
and if the key value represents that the ratio of the reading amount to the writing amount corresponding to the policy data to be stored is greater than a preset ratio, controlling a writing node in the second processing system to store the policy data to be stored.
In a second aspect, there is provided an apparatus for storing policy data, the apparatus comprising:
the acquiring module is used for acquiring key values of policy data to be stored;
the first control module is used for controlling the processing node in the first processing system to store the policy data to be stored if the key value represents that the ratio of the read quantity to the write quantity corresponding to the policy data to be stored is not greater than a preset ratio; wherein the preset ratio is greater than 1;
and the second control module is used for controlling the write-in node in the second processing system to store the policy data to be stored if the ratio of the read quantity to the write quantity corresponding to the policy data to be stored represented by the key value is greater than a preset ratio.
In a third aspect, a terminal device is provided, the terminal device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method according to the first aspect.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method according to the first aspect.
In the embodiment of the present invention, a key value of policy data to be stored may be obtained, and when the key value indicates that a ratio of a read amount to a write amount corresponding to the policy data to be stored is not greater than a preset ratio, a processing node in a first processing system is controlled to store the policy data to be stored, and when the key value indicates that the ratio of the read amount to the write amount corresponding to the policy data to be stored is greater than the preset ratio, a write node in a second processing system is controlled to store the policy data to be stored, where the preset ratio is greater than 1.
As can be seen from the above, in the embodiment of the present invention, according to the key value of the policy data to be stored, it is determined whether the read amount corresponding to the policy data to be stored is greater than the write amount corresponding to the policy data to be stored, and when the read amount corresponding to the policy data to be stored is greater than the write amount corresponding to the policy data to be stored, a system having a number of read nodes that is greater than the number of write nodes is selected to store the policy data to be stored, so that the occurrence of situations that the read nodes are not sufficient and the write nodes are idle can be effectively reduced when the policy data to be stored is subsequently managed, and the management efficiency when the policy management system subsequently manages the policy data to be stored is improved.
Correspondingly, the embodiment of the invention can also select a system with a balanced number of nodes for reading the policy data to be stored and a balanced number of nodes for writing the policy data to be stored to store the policy data to be stored under the condition that the reading amount corresponding to the policy data to be stored is balanced with the writing amount corresponding to the policy data to be stored, thereby effectively reducing the condition that the nodes for writing the data are insufficient and the nodes for reading the data are idle when the policy data to be stored is subsequently managed, and improving the management efficiency when the policy management system carries out the subsequent management on the policy data to be stored.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic flow chart illustrating a method for storing policy data according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an application scenario provided by an embodiment of the present invention;
FIG. 3 is a schematic diagram of an application scenario provided by an embodiment of the present invention;
FIG. 4 is a diagram illustrating an application scenario provided by an embodiment of the present invention;
FIG. 5 is a block diagram illustrating the storage of policy data according to an embodiment of the present invention;
fig. 6 is a schematic hardware structure diagram of a storage device for policy data according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the specific embodiments of the present invention and the accompanying drawings. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The technical solutions provided by the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a schematic flow chart of a method for storing policy data according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step 102: and acquiring a key value of the policy data to be stored.
Step 104: if the key value represents that the ratio of the reading amount to the writing amount corresponding to the policy data to be stored is not larger than the preset ratio, controlling a processing node in the first processing system to store the policy data to be stored; wherein the preset ratio is greater than 1.
Step 106: and if the key value represents that the ratio of the reading amount to the writing amount corresponding to the policy data to be stored is greater than the preset ratio, controlling a writing node in the second processing system to store the policy data to be stored.
In an embodiment of the present invention, as shown in fig. 2, the policy data management system may include at least a first processing system and a second processing system, where the first processing system may include a plurality of processing nodes for writing policy data and reading policy data; a write node for writing the warranty data and a read node for reading the warranty data may be included in the second processing system, and the number of read nodes for reading the warranty data may be greater than the number of write nodes for writing the warranty data.
In one example, a backup processing node corresponding to the processing node may also be included in the first processing system, wherein the backup processing node is not used for reading and writing policy data. When the processing node is abnormal, the standby processing node corresponding to the processing node can replace the processing node and can be used for reading policy data and writing policy data.
As shown in FIG. 3, in one example, the first processing system may include a plurality of processing nodes that may communicate with each other. In one example, multiple processing nodes may communicate through a connection pool. When a certain processing node is abnormal and is replaced by the corresponding standby processing node, the processing node which is communicated with the abnormal processing node and adjacent to the abnormal processing node can sense that the abnormal processing node is abnormal and is replaced by the corresponding standby processing node, and then the processing node which is communicated with the abnormal processing node and adjacent to the abnormal processing node can inform other processing nodes that the abnormal processing node is abnormal and is replaced by the corresponding standby processing node through the connection pool, so that the other processing nodes in the connection pool can communicate with the standby processing node which replaces the abnormal processing node.
In one example, a long connection may be maintained between the write node and the read node in the second processing system, and in particular, the connection between the write node and the read node may be made through a connection pool. When the write node successfully writes the policy data, the write node may synchronize the written policy data to all of the read nodes.
As shown in fig. 4, in an example, the second processing system may further include a management node, where the management node may be connected to all the write nodes and the read nodes to monitor the operation statuses of all the write nodes and the read nodes. When the management node monitors that the running state of the write-in node is abnormal, the management node can select a read node from read nodes connected with the abnormal write-in node as a write-in node; when the management node monitors that the running state of the reading node is abnormal, the management node may delete the connection with the abnormal reading node and notify the write node connected with the abnormal reading node in the connection pool to delete the connection with the abnormal reading node.
In the embodiment of the present invention, the policy management system may obtain a key value of policy data to be stored, where the key value of policy data to be stored may be used to represent a size relationship between a ratio of a read amount to a write amount corresponding to the policy data to be stored and a preset ratio, where the preset ratio may be greater than 1. Therefore, the key value of the policy data to be stored can be used for representing whether the read amount corresponding to the policy data to be stored is larger than the write amount corresponding to the policy data to be stored.
If the key value of the policy data to be stored represents that the ratio of the read quantity and the write quantity corresponding to the policy data to be stored is not greater than the preset ratio, that is, the read quantity corresponding to the policy data to be stored is not greater than or not much greater than the write quantity corresponding to the policy data to be stored, it can be determined that the read quantity corresponding to the policy data to be stored and the write quantity corresponding to the policy data to be stored are relatively balanced, and at this time, a first processing system with the balanced node number for reading the policy data and the balanced node number for writing the policy data can be selected and controlled to store the policy data to be stored. Because the read quantity corresponding to the policy data to be stored is more balanced with the write quantity corresponding to the policy data, and the number of the node data used for reading the policy data and the number of the nodes used for writing the policy data in the first processing system are also more balanced, it can be determined that the ratio between the read quantity corresponding to the policy data to be stored and the write quantity thereof is more consistent with the ratio between the node data used for reading the policy data and the number of the nodes used for writing the policy data in the first processing system, so that the conditions that the write nodes are insufficient and the read nodes are idle more rarely occur when the policy data to be stored is subsequently managed, and the management efficiency of the policy management system in subsequently managing the policy data to be stored can be effectively improved.
In one embodiment, when the first processing system is controlled to store the policy data to be stored, the policy data to be stored may be stored in a cache corresponding to the first processing system.
In an embodiment of the present invention, when the obtained key value represents that the policy data to be stored is policy data that is not verified by underwriting, it may be determined that a ratio of a read amount and a write amount corresponding to the policy data to be stored represented by the key value is not greater than a preset ratio.
The policy data that is not verified by the underwriting may be policy data that is not verified by the policy data, and specifically, the policy data that is not verified by the policy data may include policy data that is not verified by the policy data, and policy data that is not verified by the policy data due to various reasons, such as data error, data not meeting low risk conditions, and the like.
In one example, when the first character of the obtained key value is a letter, the policy data to be stored can be characterized as policy data which is not confirmed by the underwriting. For example, the first character of the obtained key value may be the letter F, and in this case, the policy data may be represented as policy data in the quotation. Because the policy data in the quotation is policy data which is not checked by the policy data, the first character F of the obtained key value can be used for representing that the policy data to be stored is policy data which is not confirmed by the underwriting; for another example, the first character of the obtained key value may be the letter T, and at this time, the policy data may be represented as policy data in the policy. The policy data in the policy is the policy data which needs to be subjected to policy data audit subsequently, so that the policy data in the policy is the policy data which is not subjected to policy data audit yet, and therefore, the first character T of the obtained key value can be used for representing that the policy data to be stored is the policy data which is not confirmed by underwriting.
In an embodiment of the present invention, when the obtained key value represents that the policy data to be stored is policy data in a quotation, an expiration time of the policy data to be stored may be set according to a current time and a preset valid duration of the policy data, and whether the policy data to be stored is used before the expiration time is monitored, and if the policy data to be stored is not used before the expiration time, the policy data to be stored may be deleted.
In an embodiment of the present invention, when the key value represents the policy data as data in the policy, it may be monitored whether the policy data to be stored is executed with the underwriting operation after being stored by the first processing system, and if the underwriting operation is executed, the policy data to be stored may be persisted, for example, the policy data to be stored is transferred from the cache to the memory.
In an embodiment, the obtained key value may also be used to characterize a region to which policy data to be stored belongs, for example, the obtained key value may include a 4-bit region identification number, such as 3300, 3200, and the like. When the processing node in the first processing system is controlled to store the policy data to be stored, the policy data to be stored may be stored in the data table corresponding to the region to which the policy data belongs. For example, the 4-bit region identification number 3300 in the obtained key value may be used to represent that the region to which the policy data to be stored belongs is zhejiang, and then the policy data to be stored may be stored in a data table corresponding to zhejiang.
In an embodiment, when controlling the processing node in the first processing system to store the policy data to be stored, the processing node may first perform hash modulo processing on the policy data to be stored to obtain a modulo value, then determine a target processing node from the processing nodes of the first processing system according to the obtained modulo value, and control the target processing node to store the policy data to be stored.
In an embodiment of the present invention, when controlling a processing node in a first processing system to store policy data to be stored, the processing node in the first processing system may be controlled to store the policy data to be stored according to an identifier corresponding to the policy data to be stored; the mark corresponding to the policy data to be stored is generated by the appointed relevant information of the policy data to be stored; and the specified related information may include at least a document type, an insurance type, a date of filing, a number of a filing institution, a serial number of filing, and the like of the policy data to be stored.
After the processing node in the first processing system is controlled to store the policy data to be stored according to the identifier corresponding to the policy data to be stored, whether the number of times of reading the policy data to be stored after being stored into the cache exceeds a preset number threshold value or not can be monitored, and the policy data to be stored is persisted according to the identifier corresponding to the policy data to be stored under the condition that the number of times of reading the policy data to be stored exceeds the preset number threshold value.
In an embodiment of the present invention, if the key value indicates that the ratio of the read amount and the write amount corresponding to the policy data to be stored is not greater than the preset ratio, it may be detected whether the policy data to be stored includes the age of the insured person and the application amount, and if the policy data includes the age of the insured person and the application amount, it may be further determined whether the age of the insured person is within a preset age range, such as 20 years to 40 years, and the application amount exceeds a preset amount value, such as 50 ten thousand. And the processing node in the first processing system can be controlled to store the policy data to be stored under the condition that the age of the insured person is not in the preset age range and/or the insurable amount does not exceed the preset age range.
When the age of the insured person is in the preset age range, the insured person can be determined to be a healthy insured person, and at the moment, if the insured amount of money of the insured person exceeds the preset money value, namely the insured person is subjected to huge amount of insurance, the insurance policy corresponding to the insurance policy data to be stored can be determined to have a certain fraud risk. Therefore, after the policy data to be stored is stored, it is likely to be read by a plurality of systems, such as a risk management and control system, and thus, the policy data to be stored is likely to have a larger read amount after being stored. Therefore, if the first processing system is selected and controlled to store the policy data, the situation that the read nodes are insufficient and the write nodes are idle may occur due to the fact that the larger read amount and the smaller write amount of the policy data are not matched with the number of the balanced nodes for writing the policy data and the number of the balanced nodes for reading the policy data in the first processing system, and therefore the management efficiency of the policy management system in performing subsequent management on the policy data to be stored is reduced. Therefore, in the embodiment of the present invention, the processing node in the first processing system is controlled to store the policy data to be stored only when the age of the insured person is not within the preset age range and/or the insured amount does not exceed the preset age range. Therefore, the situation can be effectively avoided, and the situation that the management efficiency of the policy management system for performing subsequent management on the policy data to be stored is possibly reduced is reduced.
In the embodiment of the present invention, if the key value of the policy data to be stored indicates that the ratio of the read amount and the write amount corresponding to the policy data to be stored is greater than the preset ratio, it may be determined that the read amount corresponding to the policy data to be stored is greater than the write amount corresponding to the policy data to be stored, and at this time, a second processing system having more read nodes than write nodes may be selected and controlled to store the policy data to be stored. Because the read quantity corresponding to the policy data to be stored is greater than the write quantity corresponding to the policy data and the number of the read nodes in the second processing system is also greater than the number of the write nodes, it can be determined that the ratio between the read quantity corresponding to the policy data to be stored and the write quantity is more matched with the ratio between the number of the read nodes and the number of the write nodes in the second processing system, so that the situations that the read nodes are insufficient and the write nodes are idle more rarely occur when the policy data to be stored is subsequently managed, and the management efficiency of the policy management system when the policy data to be stored is subsequently managed can be effectively improved.
In one embodiment, when the second processing system is controlled to store the policy data to be stored, the policy data to be stored may be stored in a cache corresponding to the second processing system.
In an embodiment of the present invention, when the obtained key value represents that the policy data to be stored is policy data that has passed the underwriting verification, it may be determined that a ratio of a read amount to a write amount corresponding to the key value represents that the policy data to be stored is greater than a preset ratio.
In an embodiment, if the obtained key value is further used to represent a region to which policy data to be stored belongs, when the write node in the second processing system is controlled to store the policy data to be stored, the policy data to be stored may be stored in a data table corresponding to the region to which the policy data belongs.
As can be seen from the above, in the embodiment of the present invention, a key value of policy data to be stored may be obtained, and when the key value indicates that the ratio of the read amount to the write amount corresponding to the policy data to be stored is not greater than a preset ratio, a processing node in a first processing system is controlled to store the policy data to be stored, and when the ratio of the read amount to the write amount corresponding to the policy data to be stored is greater than the preset ratio, a writing node in a second processing system is controlled to store the policy data to be stored.
The system with the number of reading nodes more than the number of writing nodes is selected to store the policy data to be stored under the condition that the reading amount corresponding to the policy data to be stored is more than the writing amount corresponding to the policy data; and under the condition that the reading amount corresponding to the policy data to be stored and the writing amount corresponding to the policy data to be stored are balanced, selecting a system with the balanced number of nodes for reading the policy data to be stored and the balanced number of nodes for writing the policy data to be stored to store the policy data to be stored, so that the situations that the reading nodes are not enough and the writing nodes are idle and the nodes for writing the data are not enough and the nodes for reading the data are idle can be effectively reduced when the policy data to be stored are subsequently managed, and the management efficiency of the policy management system when the policy data to be stored are subsequently managed is effectively improved.
Corresponding to the storage method of the policy data, an embodiment of the present invention further provides a storage device of the policy data, fig. 5 is one of schematic block diagrams of the storage device of the policy data provided in the embodiment of the present invention, and as shown in fig. 5, the storage device of the policy data includes:
an obtaining module 51, configured to obtain a key value of policy data to be stored;
a first control module 52, configured to control the processing node in the first processing system to store the policy data to be stored if the key value indicates that a ratio of a read amount to a write amount corresponding to the policy data to be stored is not greater than a preset ratio; wherein the preset ratio is greater than 1;
the second control module 53 is configured to control the write-in node in the second processing system to store the policy data to be stored if the key value indicates that the ratio of the read amount to the write amount corresponding to the policy data to be stored is greater than a preset ratio.
Optionally, the first control module 52 is configured to:
carrying out Hash modular processing on the policy data to be stored to obtain a modular value;
determining a target processing node from the processing nodes of the first processing system according to the obtained modulus value;
and controlling the target processing node to store the policy data to be stored.
Optionally, the apparatus further comprises (not shown in fig. 5):
a setting module 54, configured to set an expiration time of the policy data to be stored according to a current time and a preset valid duration of the policy data when the key value indicates that the policy data is policy data in a quotation;
a deleting module 55, configured to delete the policy data to be stored if the policy data to be stored is not used before the expiration time.
Optionally, the apparatus further comprises (not shown in fig. 5):
the monitoring module 56 is configured to monitor whether the policy data to be stored is executed with an underwriting operation when the key value represents that the policy data is data in a policy;
and a persistence module 57, configured to persist the policy data to be stored if the policy data to be stored is executed with the underwriting operation.
Optionally, the key value is further used for characterizing a region to which the policy data to be stored belongs; the first control module 52 is configured to:
controlling a processing node in the first processing system to store the policy data to be stored into a data table corresponding to a region to which the policy data belongs;
the second control module 53 is configured to:
and controlling a writing node in the second processing system to store the policy data to be stored into a data table corresponding to the region to which the policy data belongs.
Optionally, the first control device 52 is configured to:
detecting whether the policy data to be stored comprises the age of the insured person and the insurable amount;
if the age of the insured person and the insured amount are included, determining whether the age of the insured person is in a preset age range and whether the insured amount exceeds a preset amount value;
and when the age of the insured person is not in the preset age range and/or the insurable amount does not exceed the preset age range, controlling the processing node in the first processing system to store the policy data to be stored.
As can be seen from the above, in the embodiment of the present invention, a key value of policy data to be stored may be obtained, and when the key value indicates that the ratio of the read amount to the write amount corresponding to the policy data to be stored is not greater than a preset ratio, a processing node in a first processing system is controlled to store the policy data to be stored, and when the ratio of the read amount to the write amount corresponding to the policy data to be stored is greater than the preset ratio, a writing node in a second processing system is controlled to store the policy data to be stored.
The system with the number of reading nodes more than the number of writing nodes is selected to store the policy data to be stored under the condition that the reading amount corresponding to the policy data to be stored is more than the writing amount corresponding to the policy data; and under the condition that the reading amount corresponding to the policy data to be stored and the writing amount corresponding to the policy data to be stored are balanced, selecting a system with the balanced number of nodes for reading the policy data to be stored and the balanced number of nodes for writing the policy data to be stored to store the policy data to be stored, so that the situations that the reading nodes are not enough and the writing nodes are idle and the nodes for writing the data are not enough and the nodes for reading the data are idle can be effectively reduced when the policy data to be stored are subsequently managed, and the management efficiency of the policy management system when the policy data to be stored are subsequently managed is effectively improved.
Corresponding to the storage method of the policy data, an embodiment of the present invention further provides a storage device for the policy data, and fig. 6 is a schematic diagram of a hardware structure of the storage device for the policy data according to an embodiment of the present invention.
The storage device of the policy data may be the terminal device or the server for storing the policy data provided in the above embodiments.
The storage device for policy data may vary significantly depending on configuration or performance, and may include one or more processors 601 and memory 602, where one or more stored applications or data may be stored in memory 602. Wherein the memory 602 may be transient or persistent storage. The application program stored in memory 602 may include one or more modules (not shown), each of which may include a series of computer-executable instructions in a storage device for policy data. Still further, the processor 601 may be configured to communicate with the memory 602 to execute a series of computer-executable instructions in the memory 602 on a storage device for inventory data. The storage of policy data may also include one or more power supplies 603, one or more wired or wireless network interfaces 604, one or more input-output interfaces 605, one or more keyboards 606.
In particular, in this embodiment, the storage device for the policy data includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the storage device for the policy data, and the one or more programs configured for execution by the one or more processors include computer-executable instructions for:
acquiring a key value of policy data to be stored;
if the key value represents that the ratio of the reading amount to the writing amount corresponding to the policy data to be stored is not larger than a preset ratio, controlling the processing node in the first processing system to store the policy data to be stored; wherein the preset ratio is greater than 1;
and if the key value represents that the ratio of the reading amount to the writing amount corresponding to the policy data to be stored is greater than a preset ratio, controlling a writing node in the second processing system to store the policy data to be stored.
Optionally, the computer executable instructions, when executed, may cause the processor to:
when the key value represents that the policy data to be stored is the policy data which is not verified by the underwriting, determining that the ratio of the read quantity to the write quantity corresponding to the policy data to be stored represented by the key value is not more than the preset ratio;
and when the key value represents that the policy data to be stored is the policy data which passes the underwriting confirmation, determining that the ratio of the read quantity to the write quantity corresponding to the policy data to be stored represented by the key value is larger than the preset ratio.
Optionally, the computer executable instructions, when executed, may cause the processor to:
carrying out Hash modular processing on the policy data to be stored to obtain a modular value;
determining a target processing node from the processing nodes of the first processing system according to the obtained modulus value;
and controlling the target processing node to store the policy data to be stored.
Optionally, the computer executable instructions, when executed, may cause the processor to:
when the key value represents that the policy data is policy data in a quotation, setting the expiration time of the policy data to be stored according to the current time and the preset valid duration of the policy data;
and if the policy data to be stored is not used before the expiration time, deleting the policy data to be stored.
Optionally, the computer executable instructions, when executed, may cause the processor to:
when the key value represents that the policy data is data in a policy, monitoring whether the policy data to be stored is executed with an underwriting operation;
and if the policy data to be stored is executed with the underwriting operation, the policy data to be stored is subjected to persistence.
Optionally, the key value is further used for characterizing a region to which the policy data to be stored belongs; the computer executable instructions, when executed, may cause the processor to:
controlling a processing node in the first processing system to store the policy data to be stored into a data table corresponding to a region to which the policy data belongs;
and controlling a writing node in the second processing system to store the policy data to be stored into a data table corresponding to the region to which the policy data belongs.
Optionally, the computer executable instructions, when executed, may cause the processor to:
detecting whether the policy data to be stored comprises the age of the insured person and the insurable amount;
if the age of the insured person and the insured amount are included, determining whether the age of the insured person is in a preset age range and whether the insured amount exceeds a preset amount value;
and when the age of the insured person is not in the preset age range and/or the insurable amount does not exceed the preset age range, controlling the processing node in the first processing system to store the policy data to be stored.
As can be seen from the above, in the embodiment of the present invention, a key value of policy data to be stored may be obtained, and when the key value indicates that the ratio of the read amount to the write amount corresponding to the policy data to be stored is not greater than a preset ratio, a processing node in a first processing system is controlled to store the policy data to be stored, and when the ratio of the read amount to the write amount corresponding to the policy data to be stored is greater than the preset ratio, a writing node in a second processing system is controlled to store the policy data to be stored.
The system with the number of reading nodes more than the number of writing nodes is selected to store the policy data to be stored under the condition that the reading amount corresponding to the policy data to be stored is more than the writing amount corresponding to the policy data; and under the condition that the reading amount corresponding to the policy data to be stored and the writing amount corresponding to the policy data to be stored are balanced, selecting a system with the balanced number of nodes for reading the policy data to be stored and the balanced number of nodes for writing the policy data to be stored to store the policy data to be stored, so that the situations that the reading nodes are not enough and the writing nodes are idle and the nodes for writing the data are not enough and the nodes for reading the data are idle can be effectively reduced when the policy data to be stored are subsequently managed, and the management efficiency of the policy management system when the policy data to be stored are subsequently managed is effectively improved.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Language Description Language), traffic, pl (core unified Programming Language), HDCal, JHDL (Java Hardware Description Language), langue, Lola, HDL, laspam, hardsradware (Hardware Description Language), vhjhd (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the units may be implemented in the same software and/or hardware or in a plurality of software and/or hardware when implementing the invention.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The invention may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present invention, and is not intended to limit the present invention. Various modifications and alterations to this invention will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (10)

1. The storage method of the insurance policy data is characterized by being applied to an insurance policy data management system, wherein the insurance policy data management system at least comprises a first processing system and a second processing system; the first processing system comprises a plurality of processing nodes for writing policy data and reading policy data; the second processing system comprises a writing node for writing policy data and a reading node for reading policy data, wherein the number of the reading nodes is larger than the number of the writing nodes;
the method comprises the following steps:
acquiring a key value of policy data to be stored;
if the key value represents that the ratio of the reading amount to the writing amount corresponding to the policy data to be stored is not larger than a preset ratio, controlling the processing node in the first processing system to store the policy data to be stored; wherein the preset ratio is greater than 1;
and if the key value represents that the ratio of the reading amount to the writing amount corresponding to the policy data to be stored is greater than a preset ratio, controlling a writing node in the second processing system to store the policy data to be stored.
2. The method according to claim 1, characterized in that it comprises:
when the key value represents that the policy data to be stored is the policy data which is not verified by the underwriting, determining that the ratio of the read quantity to the write quantity corresponding to the policy data to be stored represented by the key value is not more than the preset ratio;
and when the key value represents that the policy data to be stored is the policy data which passes the underwriting confirmation, determining that the ratio of the read quantity to the write quantity corresponding to the policy data to be stored represented by the key value is larger than the preset ratio.
3. The method of claim 1, wherein controlling the processing node in the first processing system to store the policy data to be stored comprises:
carrying out Hash modular processing on the policy data to be stored to obtain a modular value;
determining a target processing node from the processing nodes of the first processing system according to the obtained modulus value;
and controlling the target processing node to store the policy data to be stored.
4. The method of claim 1, further comprising:
when the key value represents that the policy data is policy data in a quotation, setting the expiration time of the policy data to be stored according to the current time and the preset valid duration of the policy data;
and if the policy data to be stored is not used before the expiration time, deleting the policy data to be stored.
5. The method of claim 1, further comprising:
when the key value represents that the policy data is data in a policy, monitoring whether the policy data to be stored is executed with an underwriting operation;
and if the policy data to be stored is executed with the underwriting operation, the policy data to be stored is subjected to persistence.
6. The method according to claim 1, wherein the key value is further used for characterizing a region to which the policy data to be stored belongs;
the controlling the processing node in the first processing system to store the policy data to be stored includes:
controlling a processing node in the first processing system to store the policy data to be stored into a data table corresponding to a region to which the policy data belongs;
the controlling a write node in the second processing system to store the policy data to be stored includes:
and controlling a writing node in the second processing system to store the policy data to be stored into a data table corresponding to the region to which the policy data belongs.
7. The method according to claim 1, wherein if the key value indicates that the ratio of the read amount to the write amount corresponding to the policy data to be stored is not greater than a preset ratio, controlling the processing node in the first processing system to store the policy data to be stored comprises:
detecting whether the policy data to be stored comprises the age of the insured person and the insurable amount;
if the age of the insured person and the insured amount are included, determining whether the age of the insured person is in a preset age range and whether the insured amount exceeds a preset amount value;
and when the age of the insured person is not in the preset age range and/or the insurable amount does not exceed the preset age range, controlling the processing node in the first processing system to store the policy data to be stored.
8. The storage device of the insurance policy data is applied to an insurance policy data management system, and the insurance policy data management system at least comprises a first processing system and a second processing system; the first processing system comprises a plurality of processing nodes for writing policy data and reading policy data; the second processing system comprises a writing node for writing policy data and a reading node for reading policy data, wherein the number of the reading nodes is larger than the number of the writing nodes;
the device comprises:
the acquiring module is used for acquiring key values of policy data to be stored;
the first control module is used for controlling the processing node in the first processing system to store the policy data to be stored if the key value represents that the ratio of the read quantity to the write quantity corresponding to the policy data to be stored is not greater than a preset ratio; wherein the preset ratio is greater than 1;
and the second control module is used for controlling the write-in node in the second processing system to store the policy data to be stored if the ratio of the read quantity to the write quantity corresponding to the policy data to be stored represented by the key value is greater than a preset ratio.
9. A terminal device, comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN201910815929.2A 2019-08-30 2019-08-30 Storage method, device and equipment of policy data and computer readable storage medium Active CN110674106B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910815929.2A CN110674106B (en) 2019-08-30 2019-08-30 Storage method, device and equipment of policy data and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910815929.2A CN110674106B (en) 2019-08-30 2019-08-30 Storage method, device and equipment of policy data and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110674106A true CN110674106A (en) 2020-01-10
CN110674106B CN110674106B (en) 2022-03-15

Family

ID=69075876

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910815929.2A Active CN110674106B (en) 2019-08-30 2019-08-30 Storage method, device and equipment of policy data and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110674106B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103268318A (en) * 2013-04-16 2013-08-28 华中科技大学 Distributed key value database system with strong consistency and read-write method thereof
CN107229415A (en) * 2016-03-24 2017-10-03 华为技术有限公司 A kind of data write method, data read method and relevant device, system
CN107689010A (en) * 2017-07-25 2018-02-13 平安科技(深圳)有限公司 Method, apparatus, computer equipment and the storage medium of batch processing declaration form task
WO2019071113A1 (en) * 2017-10-06 2019-04-11 Stealthpath, Inc. Methods for internet communication security

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103268318A (en) * 2013-04-16 2013-08-28 华中科技大学 Distributed key value database system with strong consistency and read-write method thereof
CN107229415A (en) * 2016-03-24 2017-10-03 华为技术有限公司 A kind of data write method, data read method and relevant device, system
CN107689010A (en) * 2017-07-25 2018-02-13 平安科技(深圳)有限公司 Method, apparatus, computer equipment and the storage medium of batch processing declaration form task
WO2019071113A1 (en) * 2017-10-06 2019-04-11 Stealthpath, Inc. Methods for internet communication security

Also Published As

Publication number Publication date
CN110674106B (en) 2022-03-15

Similar Documents

Publication Publication Date Title
CN107450979B (en) Block chain consensus method and device
CN107239324B (en) Service flow processing method, device and system
CN106899666B (en) Data processing method and device for service identification
CN111967849A (en) Task processing flow arrangement method and device and electronic equipment
KR20190096391A (en) Database status determination method and device, and consistency verification method and device
CN108628688B (en) Message processing method, device and equipment
CN108459913B (en) Data parallel processing method and device and server
CN108830705B (en) Method, device and equipment for summarizing transaction data
CN107578338B (en) Service publishing method, device and equipment
CN111752633A (en) Code loading method, device and equipment
CN109284066B (en) Data processing method, device, equipment and system
CN111680960A (en) Attendance statistical method and equipment
CN116305298B (en) Method and device for managing computing power resources, storage medium and electronic equipment
CN112965882B (en) Data fault analysis method and device
CN111399780B (en) Data writing method, device and equipment
CN110674106B (en) Storage method, device and equipment of policy data and computer readable storage medium
CN110992039A (en) Transaction processing method, device and equipment
CN111311267A (en) Multi-account risk prevention and control method, system and equipment
CN110633321B (en) Data synchronization method, device and equipment
CN113673844B (en) Information feedback method, device and equipment
CN115391337A (en) Database partitioning method and device, storage medium and electronic equipment
CN109614388B (en) Budget deduction method and device
CN110245115B (en) File processing method, engine and system
CN107391223B (en) File processing method and device
CN114691621A (en) IPFS file storage strategy system based on block chain

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant