Financial account data storage method and device based on distributed storage system

By storing account data in different units and storing account relationships in a distributed storage system, the problem of low efficiency of financial institutions in querying associated account data in massive data is solved, and the method of quickly obtaining associated account data is realized, and query is improved efficiency.

CN119179724APending Publication Date: 2024-12-24BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410996621.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-12-24

AI Technical Summary

Technical Problem

Existing financial institutions are less efficient in querying associated account data in massive data and require a large amount of computing resources.

Method used

Using a distributed storage system-based method, account data is stored in different storage units, and the relationships between accounts are stored in each storage unit, and the associated account data is quickly obtained by querying these relationships.

Benefits of technology

It effectively narrows the query scope, reduces the number of queries and data search time, and improves the query efficiency of associated account data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119179724A_ABST
    Figure CN119179724A_ABST
Patent Text Reader

Abstract

The invention relates to a financial account data storage method and device based on a distributed storage system, computer equipment, a storage medium and a computer program product, relates to the technical field of big data, and can improve the account data query efficiency of associated accounts. The method comprises the following steps: determining a first financial account and a second financial account of which account data are respectively stored in different storage units of the distributed storage system; acquiring an account relationship between the first financial account and the second financial account; and storing the account relationship in a storage unit corresponding to the first financial account, and storing the account relationship in a storage unit corresponding to the second financial account, so that when an associated account query request for the first financial account or the second financial account is received, the first financial account and the second financial account are queried. And obtaining the account relationship from the storage unit corresponding to the first financial account or the storage unit corresponding to the second financial account, and obtaining the account data of the associated account according to the account relationship.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of big data technology, and in particular to a method, apparatus, computer equipment, storage medium and computer program product for storing financial account data based on a distributed storage system. Background Art

[0002] With the development of computer technology, the account data stored by financial institutions has shown explosive growth.

[0003] In the related art, the account data of multiple accounts are centrally stored in the core system of the financial institution. When other associated accounts related to the target account need to be queried, they can be queried in the core system according to the account ID of the target account. However, under this storage method, the data query efficiency is low, and it often takes a lot of computing resources to query the account data of other associated accounts related to the target account in the massive data. Summary of the invention

[0004] Based on this, it is necessary to provide a financial account data storage method, apparatus, computer equipment, computer-readable storage medium and computer program product based on a distributed storage system that can improve the efficiency of account data query of associated accounts in response to the above technical problems.

[0005] In a first aspect, the present application provides a financial account data storage method based on a distributed storage system, comprising:

[0006] Determine a first financial account and a second financial account whose account data are respectively stored in different storage units of the distributed storage system;

[0007] Acquire an account relationship between the first financial account and the second financial account;

[0008] The account relationship is stored in a storage unit corresponding to the first financial account, and the account relationship is stored in a storage unit corresponding to the second financial account, so that when a query request for an associated account for the first financial account or the second financial account is received, the account relationship is obtained from the storage unit corresponding to the first financial account or the storage unit corresponding to the second financial account, and account data of the associated account is obtained based on the account relationship.

[0009] In one embodiment, storing the account relationship in a storage unit corresponding to the first financial account, and storing the account relationship in a storage unit corresponding to the second financial account, includes:

[0010] If the account relationship includes a positive relationship between the first financial account and the second financial account, and a negative relationship between the second financial account and the first financial account, the positive relationship is stored in a storage unit corresponding to the first financial account, and the negative relationship is stored in a storage unit corresponding to the second financial account.

[0011] In one embodiment, obtaining the account relationship between the first financial account and the second financial account includes:

[0012] receiving a reference account relationship between the first financial account and the second financial account input by the first financial account;

[0013] determining a relationship type of the reference account relationship;

[0014] If the relationship type is an equal relationship type, determining the reference account relationship as an account relationship to be stored in a storage unit corresponding to the first financial account and a storage unit corresponding to the second financial account;

[0015] If the relationship type is a bidirectional relationship type, the reference account relationship is determined as a positive relationship, and a negative relationship corresponding to the positive relationship is determined.

[0016] In one embodiment, after storing the account relationship in a storage unit corresponding to the first financial account and storing the account relationship in a storage unit corresponding to the second financial account, the method further includes:

[0017] In response to a modification request for the account relationship, locking the account relationship stored in a storage unit corresponding to the first financial account and the account relationship stored in a storage unit corresponding to the second financial account;

[0018] According to the new account relationship carried in the modification request, the account relationship locked in the storage unit corresponding to the first financial account and the storage unit corresponding to the second financial account is modified.

[0019] In one embodiment, storing the account relationship in a storage unit corresponding to the first financial account includes:

[0020] Acquire an account relationship table stored in a storage unit corresponding to the first financial account; the account relationship table is used to store the account relationship of each financial account in the storage unit corresponding to the first financial account;

[0021] The account identifier of the first financial account and the account relationship are associated and stored in the account relationship table.

[0022] In one embodiment, after storing the account relationship in a storage unit corresponding to the first financial account and storing the account relationship in a storage unit corresponding to the second financial account, the method further includes:

[0023] In response to a request for querying associated accounts for the first financial account, the account relationship is acquired from the account relationship table in the storage unit corresponding to the first financial account according to the account identifier of the first financial account.

[0024] In a second aspect, the present application further provides a financial account data storage device based on a distributed storage system, comprising:

[0025] An associated account determination module, configured to determine a first financial account and a second financial account whose account data are respectively stored in different storage units of the distributed storage system;

[0026] An account relationship acquisition module, used to acquire the account relationship between the first financial account and the second financial account;

[0027] An account relationship storage module is used to store the account relationship in a storage unit corresponding to the first financial account, and to store the account relationship in a storage unit corresponding to the second financial account, so that when receiving an associated account query request for the first financial account or the second financial account, the account relationship is obtained from the storage unit corresponding to the first financial account or the storage unit corresponding to the second financial account, and account data of the associated account is obtained according to the account relationship.

[0028] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0029] Determine a first financial account and a second financial account whose account data are respectively stored in different storage units of the distributed storage system;

[0030] Acquire an account relationship between the first financial account and the second financial account;

[0031] The account relationship is stored in a storage unit corresponding to the first financial account, and the account relationship is stored in a storage unit corresponding to the second financial account, so that when a query request for an associated account for the first financial account or the second financial account is received, the account relationship is obtained from the storage unit corresponding to the first financial account or the storage unit corresponding to the second financial account, and account data of the associated account is obtained based on the account relationship.

[0032] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0033] Determine a first financial account and a second financial account whose account data are respectively stored in different storage units of the distributed storage system;

[0034] Acquire an account relationship between the first financial account and the second financial account;

[0035] The account relationship is stored in a storage unit corresponding to the first financial account, and the account relationship is stored in a storage unit corresponding to the second financial account, so that when a query request for an associated account for the first financial account or the second financial account is received, the account relationship is obtained from the storage unit corresponding to the first financial account or the storage unit corresponding to the second financial account, and account data of the associated account is obtained based on the account relationship.

[0036] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0037] Determine a first financial account and a second financial account whose account data are respectively stored in different storage units of the distributed storage system;

[0038] Acquire an account relationship between the first financial account and the second financial account;

[0039] The account relationship is stored in a storage unit corresponding to the first financial account, and the account relationship is stored in a storage unit corresponding to the second financial account, so that when a query request for an associated account for the first financial account or the second financial account is received, the account relationship is obtained from the storage unit corresponding to the first financial account or the storage unit corresponding to the second financial account, and account data of the associated account is obtained based on the account relationship.

[0040] The above-mentioned financial account data storage method, device, computer equipment, storage medium and computer program product based on the distributed storage system can determine the first financial account and the second financial account whose account data are stored in different storage units of the distributed storage system respectively; then, the account relationship between the first financial account and the second financial account can be obtained; thereafter, the account relationship can be stored in the storage unit corresponding to the first financial account, and the account relationship can be stored in the storage unit corresponding to the second financial account, and then when receiving the associated account query request for the first financial account or the second financial account, the account relationship can be obtained from the storage unit corresponding to the first financial account or the storage unit corresponding to the second financial account, and the account data of the associated account can be obtained according to the account relationship. In the present application, on the one hand, by storing a large amount of account data in different storage units respectively, the corresponding query range when querying the associated account in the subsequent query can be effectively narrowed, and on the other hand, by identifying the account relationship and storing it in the corresponding storage unit respectively, the account data of the associated account can be quickly obtained according to the account relationship, reducing the number of queries and data search time in the entire system, and effectively improving the query efficiency of the account data of the associated account. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0042] Figure 1 A schematic diagram of a flow chart of a financial account data storage method based on a distributed storage system in one embodiment;

[0043] Figure 2 A flowchart of a step of determining an account relationship in one embodiment;

[0044] Figure 3 is a structural block diagram of a financial account data storage device based on a distributed storage system in one embodiment;

[0045] Figure 4 The figure is a diagram of the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0047] In one embodiment, Figure 1 As shown, a method for storing financial account data based on a distributed storage system is provided, and the distributed storage system includes multiple storage units. This embodiment is illustrated by applying the method to a server in a distributed storage system. It can be understood that the method can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0048] S101, determining a first financial account and a second financial account whose account data are respectively stored in different storage units of a distributed storage system.

[0049] In a specific implementation, the distributed storage system includes multiple storage units, and the multiple storage units can store account data of different financial accounts. For the sake of distinction, in this application, multiple financial accounts whose account data are stored in different storage units are referred to as first financial accounts and second financial accounts.

[0050] In some optional embodiments, the storage unit may be a database, a database table in a database, or a server.

[0051] In some optional embodiments, after receiving the account relationship maintenance request, the first financial account and the second financial account may be determined according to the account identifier carried in the account relationship maintenance request.

[0052] S102: Acquire an account relationship between the first financial account and the second financial account.

[0053] After the first financial account and the second financial account are determined, a relationship analysis may be performed on the first financial account and the second financial account, and the account relationship between the first financial account and the second financial account may be obtained according to the analysis result.

[0054] S103, storing the account relationship in a storage unit corresponding to the first financial account, and storing the account relationship in a storage unit corresponding to the second financial account, so that when receiving an associated account query request for the first financial account or the second financial account, the account relationship is obtained from the storage unit corresponding to the first financial account or the storage unit corresponding to the second financial account, and the account data of the associated account is obtained according to the account relationship.

[0055] In actual applications, after determining the account relationship between the first financial account and the second financial account, the account relationship can be stored in the corresponding storage units, that is, the account relationship can be stored in the storage unit corresponding to the first financial account, and the account relationship can be stored in the storage unit corresponding to the second financial account. Then, when receiving an associated account query request for the first financial account, the account relationship with the first financial account can be obtained from the storage unit corresponding to the first financial account, and the account data of the associated account of the first financial account can be determined based on the account relationship. Alternatively, when receiving an associated account query request for the second financial account, the account relationship with the second financial account can be obtained from the storage unit corresponding to the second financial account, and the account data of the associated account of the second financial account can be determined based on the account relationship.

[0056] In this embodiment, it is possible to determine the first financial account and the second financial account whose account data are stored in different storage units of the distributed storage system respectively; then, the account relationship between the first financial account and the second financial account can be obtained; thereafter, the account relationship can be stored in the storage unit corresponding to the first financial account, and the account relationship can be stored in the storage unit corresponding to the second financial account, and then, when receiving a query request for an associated account for the first financial account or the second financial account, the account relationship can be obtained from the storage unit corresponding to the first financial account or the storage unit corresponding to the second financial account, and the account data of the associated account can be obtained according to the account relationship. In this application, on the one hand, by storing a large amount of account data in different storage units respectively, the corresponding query range when querying the associated account in the subsequent query can be effectively narrowed, and on the other hand, by identifying the account relationship and storing it in the corresponding storage unit respectively, the account data of the associated account can be quickly obtained according to the account relationship, reducing the number of queries and data search time in the entire system, and effectively improving the query efficiency of the account data of the associated account.

[0057] In addition, the unitized distributed storage of multiple financial accounts and their account relationships through storage units increases the flexibility of account information management and improves the efficiency and rationality of account relationship management.

[0058] In one embodiment, in step S103, storing the account relationship in a storage unit corresponding to the first financial account and storing the account relationship in a storage unit corresponding to the second financial account may include the following steps:

[0059] If the account relationship includes a positive relationship between the first financial account and the second financial account, and a negative relationship between the second financial account and the first financial account, the positive relationship is stored in a storage unit corresponding to the first financial account, and the negative relationship is stored in a storage unit corresponding to the second financial account.

[0060] In a specific implementation, a bidirectional relationship type may exist between the first financial account and the second financial account. The bidirectional relationship type may be understood as the first financial account and the second financial account respectively playing different roles in the account relationship, such as parents, children, spouse, etc. If the user corresponding to the first financial account is the parent of the user corresponding to the second financial account, then the user corresponding to the second financial account is the child of the user corresponding to the first financial account.

[0061] Based on this, in this embodiment, account relationships can be distinguished to determine positive relationships and negative relationships, wherein the positive relationship can be understood as the account relationship understood from the perspective of the first financial account, and the negative relationship can be understood as the account relationship understood from the perspective of the second financial account.

[0062] After obtaining the positive relationship and the negative relationship, the positive relationship can be stored in the storage unit corresponding to the first financial account, and the negative relationship can be stored in the storage unit corresponding to the second financial account. Thus, the account relationship between the financial account and other financial accounts can be accurately recorded in different storage units.

[0063] In one embodiment, Figure 2 As shown, in step S102, obtaining the account relationship between the first financial account and the second financial account may include the following steps:

[0064] S201, receiving a reference account relationship between a first financial account and a second financial account input by a first financial account.

[0065] In a specific implementation, the user may input the account relationship between the first financial account and the second financial account through the first financial account, and the account relationship may be referred to as a reference account relationship.

[0066] S202, determining the relationship type of the reference account relationship.

[0067] After obtaining the reference account relationship, the corresponding relationship type can be determined. In some embodiments, the relationship type can include an equal relationship type and a two-way relationship type, wherein the equal relationship type can include at least one of the following: a friend relationship, a business relationship. Exemplarily, a business relationship can include a guarantor, a stock owner, a beneficiary, etc. The two-way relationship type can include at least one of the following: a parent and a child, a spouse.

[0068] In some optional embodiments, multiple relationships may be classified in advance to determine the classification results, and then, after the reference account is determined, the corresponding relationship type may be determined by matching with the multiple relationships.

[0069] S203: If the relationship type is an equal relationship type, determine the reference account relationship as the account relationship to be stored in the storage unit corresponding to the first financial account and the storage unit corresponding to the second financial account.

[0070] If the relationship type is an equal relationship type, the reference account relationship can be determined as the account relationship to be stored in the storage unit corresponding to the first financial account and the storage unit corresponding to the second financial account. In addition, in some embodiments, the account relationship of the equal relationship type can also be distinguished in positive and negative directions.

[0071] S204: If the relationship type is a bidirectional relationship type, the reference account relationship is determined as a positive relationship, and a negative relationship corresponding to the positive relationship is determined.

[0072] If the relationship type is a bidirectional relationship type, the reference account relationship provided by the first financial account may be determined as a positive relationship, and based on the positive relationship, a negative relationship between the second financial account and the first financial account may be determined.

[0073] For example, as shown in Table 1 below, the account relationship between financial account 1 and financial account 2 and financial account 3 is provided:

[0074] Table 1

[0075]

[0076] When maintaining account relationships, if the storage space (such as storage unit) of financial account 1 is located in the table of unit 1, after financial account 1 registers a relationship information with financial account 2, the relationship type is determined. If it is a social relationship, then according to the mapping relationship, an account relationship information is recorded in the table of unit 2 of the storage space of financial account 2. If financial account 1 is registered as the stock owner of financial account 3, the relationship type is determined. If it is a business relationship, a reverse business relationship is recorded in unit 3 where financial account 3 is located, and the relationship direction is recorded as reverse.

[0077] In this embodiment, by determining the recording method of the account relationship in multiple storage units according to the relationship type when receiving the reference relationship, the accuracy of account relationship maintenance can be effectively improved, and it is convenient to accurately screen out the associated accounts with the specified relationship in the subsequent process.

[0078] In one embodiment, after storing the account relationship in the storage unit corresponding to the first financial account and storing the account relationship in the storage unit corresponding to the second financial account, the method may further include the following steps:

[0079] In response to a modification request for an account relationship, the account relationship stored in a storage unit corresponding to the first financial account and the account relationship stored in a storage unit corresponding to the second financial account are locked; and according to a new account relationship carried in the modification request, the locked account relationship in the storage unit corresponding to the first financial account and the storage unit corresponding to the second financial account are modified.

[0080] In this embodiment, when a modification request for a stored account relationship is received, a locking process may be performed first, that is, the account relationship stored in the storage unit corresponding to the first financial account and the account relationship stored in the storage unit corresponding to the second financial account may be determined and locked. In some optional embodiments, the locking process may be understood as invalidating them, for example, first invalidating the account relationship between the first financial account and the second financial account, and then invalidating the reverse relationship between the first financial account and the second financial account.

[0081] Then, the locked account relationship can be modified according to the new account relationship carried in the modification request, thereby maintaining the correspondence between the account relationship stored in the storage unit corresponding to the first financial account and the storage unit corresponding to the second financial account.

[0082] In some other embodiments, if it is necessary to delete the account relationship stored in the storage unit corresponding to the first financial account and / or the second financial account (i.e., the account relationship between the first financial account and the second financial account), the account relationship between the first financial account and the second financial account may be invalidated first, and then the reverse relationship between the first financial account and the second financial account may also be invalidated.

[0083] In one embodiment, in step S103, storing the account relationship in a storage unit corresponding to the first financial account may include the following steps:

[0084] An account relationship table stored in a storage unit corresponding to the first financial account is obtained; and an account identifier and an account relationship of the first financial account are associated and stored in the account relationship table.

[0085] In practical applications, when the storage unit is a server or a database, each storage unit may maintain an account relationship table corresponding to the storage unit, and the account relationship table may be used to store the account relationship of each financial account in the storage unit. Furthermore, after obtaining the account relationship between the first financial account and the second financial account, the account identifier of the first financial account and the obtained account relationship may be stored in the account relationship table.

[0086] In addition, the storage unit corresponding to the second financial account may also maintain an account relationship table. Accordingly, when storing the account relationship in the storage unit corresponding to the second financial account, the following steps may be included: obtaining the account relationship table stored in the storage unit corresponding to the second financial account; and associating the account identifier and the account relationship of the second financial account and storing them in the account relationship table.

[0087] In this embodiment, the account relationship of each financial account in the storage unit can be uniformly maintained through the account relationship table, which reduces the time of traversing different database tables, effectively narrows the search scope of account relationship, and improves the search efficiency of financial account data.

[0088] In one embodiment, after storing the account relationship in the storage unit corresponding to the first financial account and storing the account relationship in the storage unit corresponding to the second financial account, the following steps may also be included:

[0089] In response to a query request for associated accounts for the first financial account, the account relationship is acquired from an account relationship table in a storage unit corresponding to the first financial account according to the account identifier of the first financial account.

[0090] In some optional embodiments, a query request for associated accounts for the first financial account may be sent to the server. After receiving the request, the account identifier of the first financial account may be obtained. A storage unit for storing account data of the first financial account may be determined based on the account identifier of the first financial account. Then, an account relationship table may be read from the storage unit, and a corresponding account relationship may be searched in the account relationship table based on the account identifier of the first financial account.

[0091] It is understandable that the method for searching the account relationship of the second financial account may be the same as the method for searching the account relationship of the first financial account. That is, a request for querying the associated account for the second financial account may be sent to the server, and after receiving the request, the account identifier of the second financial account may be obtained, and the storage unit for storing the account data of the second financial account may be determined based on the account identifier of the second financial account, and then the account relationship table may be read from the storage unit, and the corresponding account relationship may be searched in the account relationship table based on the account identifier of the second financial account.

[0092] In this embodiment, the corresponding storage unit can be quickly located through the account identifier of the first financial account and the relevant account relationship can be determined in the account relationship table, thereby improving the search efficiency of the associated account.

[0093] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0094] Based on the same inventive concept, the embodiment of the present application also provides a financial account data storage device based on a distributed storage system for implementing the above-mentioned financial account data storage method based on a distributed storage system. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above-mentioned method, so the specific limitations in one or more embodiments of the financial account data storage device based on a distributed storage system provided below can refer to the limitations of the financial account data storage method based on a distributed storage system above, and will not be repeated here.

[0095] In an exemplary embodiment, Figure 3 As shown, a financial account data storage device based on a distributed storage system is provided, comprising:

[0096] An associated account determination module 301, configured to determine a first financial account and a second financial account whose account data are respectively stored in different storage units of the distributed storage system;

[0097] An account relationship acquisition module 302, configured to acquire an account relationship between the first financial account and the second financial account;

[0098] The account relationship storage module 303 is used to store the account relationship in a storage unit corresponding to the first financial account, and to store the account relationship in a storage unit corresponding to the second financial account, so that when receiving an associated account query request for the first financial account or the second financial account, the account relationship is obtained from the storage unit corresponding to the first financial account or the storage unit corresponding to the second financial account, and the account data of the associated account is obtained according to the account relationship.

[0099] In an exemplary embodiment, the account relationship storage module 303 is used to:

[0100] If the account relationship includes a positive relationship between the first financial account and the second financial account, and a negative relationship between the second financial account and the first financial account, the positive relationship is stored in a storage unit corresponding to the first financial account, and the negative relationship is stored in a storage unit corresponding to the second financial account.

[0101] In an exemplary embodiment, the account relationship acquisition module 302 is used to:

[0102] receiving a reference account relationship between the first financial account and the second financial account input by the first financial account;

[0103] determining a relationship type of the reference account relationship;

[0104] If the relationship type is an equal relationship type, determining the reference account relationship as an account relationship to be stored in a storage unit corresponding to the first financial account and a storage unit corresponding to the second financial account;

[0105] If the relationship type is a bidirectional relationship type, the reference account relationship is determined as a positive relationship, and a negative relationship corresponding to the positive relationship is determined.

[0106] In an exemplary embodiment, the apparatus further comprises:

[0107] an account relationship locking module, configured to lock the account relationship stored in the storage unit corresponding to the first financial account and the account relationship stored in the storage unit corresponding to the second financial account in response to a modification request for the account relationship;

[0108] An account relationship modification module is used to modify the account relationship locked in the storage unit corresponding to the first financial account and the storage unit corresponding to the second financial account according to the new account relationship carried in the modification request.

[0109] In an exemplary embodiment, the account relationship storage module 303 is used to:

[0110] Acquire an account relationship table stored in a storage unit corresponding to the first financial account; the account relationship table is used to store the account relationship of each financial account in the storage unit corresponding to the first financial account;

[0111] The account identifier of the first financial account and the account relationship are associated and stored in the account relationship table.

[0112] In an exemplary embodiment, the apparatus further comprises:

[0113] The account relationship query module is used to respond to the associated account query request for the first financial account and obtain the account relationship from the account relationship table in the storage unit corresponding to the first financial account according to the account identifier of the first financial account.

[0114] Each module in the above-mentioned financial account data storage device based on the distributed storage system can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0115] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 4 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store account data of a financial account. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a financial account data storage method based on a distributed storage system is implemented.

[0116] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0117] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0118] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0119] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0120] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0121] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0122] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0123] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A financial account data storage method based on a distributed storage system, characterized in that: The method comprises: Determine a first financial account and a second financial account whose account data are respectively stored in different storage units of the distributed storage system; Acquire an account relationship between the first financial account and the second financial account; The account relationship is stored in a storage unit corresponding to the first financial account, and the account relationship is stored in a storage unit corresponding to the second financial account, so that when a query request for an associated account for the first financial account or the second financial account is received, the account relationship is obtained from the storage unit corresponding to the first financial account or the storage unit corresponding to the second financial account, and account data of the associated account is obtained based on the account relationship.

2. The method according to claim 1, characterized in that The storing the account relationship in a storage unit corresponding to the first financial account, and the storing the account relationship in a storage unit corresponding to the second financial account, comprises: If the account relationship includes a positive relationship between the first financial account and the second financial account, and a negative relationship between the second financial account and the first financial account, the positive relationship is stored in a storage unit corresponding to the first financial account, and the negative relationship is stored in a storage unit corresponding to the second financial account.

3. The method according to claim 2, characterized in that The obtaining the account relationship between the first financial account and the second financial account includes: receiving a reference account relationship between the first financial account and the second financial account input by the first financial account; determining a relationship type of the reference account relationship; If the relationship type is an equal relationship type, determining the reference account relationship as an account relationship to be stored in a storage unit corresponding to the first financial account and a storage unit corresponding to the second financial account; If the relationship type is a bidirectional relationship type, the reference account relationship is determined as a positive relationship, and a negative relationship corresponding to the positive relationship is determined.

4. The method according to claim 1, characterized in that After storing the account relationship in the storage unit corresponding to the first financial account and storing the account relationship in the storage unit corresponding to the second financial account, the method further includes: In response to a modification request for the account relationship, locking the account relationship stored in a storage unit corresponding to the first financial account and the account relationship stored in a storage unit corresponding to the second financial account; According to the new account relationship carried in the modification request, the account relationship locked in the storage unit corresponding to the first financial account and the storage unit corresponding to the second financial account is modified.

5. The method according to any one of claims 1 to 4, characterized in that The step of storing the account relationship in a storage unit corresponding to the first financial account includes: Acquire an account relationship table stored in a storage unit corresponding to the first financial account; the account relationship table is used to store the account relationship of each financial account in the storage unit corresponding to the first financial account; The account identifier of the first financial account and the account relationship are associated and stored in the account relationship table.

6. The method according to claim 5, characterized in that After storing the account relationship in the storage unit corresponding to the first financial account and storing the account relationship in the storage unit corresponding to the second financial account, the method further includes: In response to a request for querying associated accounts for the first financial account, the account relationship is acquired from the account relationship table in the storage unit corresponding to the first financial account according to the account identifier of the first financial account.

7. A financial account data storage device based on a distributed storage system, characterized in that: The device comprises: An associated account determination module, configured to determine a first financial account and a second financial account whose account data are respectively stored in different storage units of the distributed storage system; An account relationship acquisition module, used to acquire the account relationship between the first financial account and the second financial account; An account relationship storage module is used to store the account relationship in a storage unit corresponding to the first financial account, and to store the account relationship in a storage unit corresponding to the second financial account, so that when receiving an associated account query request for the first financial account or the second financial account, the account relationship is obtained from the storage unit corresponding to the first financial account or the storage unit corresponding to the second financial account, and the account data of the associated account is obtained according to the account relationship.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.