Transaction information processing methods and apparatus, terminal equipment, and readable storage media

By determining the storage address to be updated when an account logs out and reusing the storage address to store new transaction information, the problem of system computing power consumption during account logout is solved, system performance is improved and storage costs are reduced.

CN116301595BActive Publication Date: 2026-04-03GUOTAI JUNAN SECURITIES CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-06
Publication Date
2026-04-03

AI Technical Summary

Technical Problem

Existing technologies require the deletion of a large amount of transaction information when a user logs out, resulting in excessive consumption of system computing power and affecting processing efficiency.

Method used

When an account logs out, an update instruction is obtained to determine the storage address to be updated, and the transaction information of the logged-in account is stored in that address instead of being deleted immediately. The storage address is reused to store the transaction information of the new account, avoiding data deletion operations and saving system computing power consumption.

Benefits of technology

By omitting the data deletion operation, the system saves computing power when deleting underlying data, improves system performance, and reduces resource overhead when storing data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116301595B_ABST
    Figure CN116301595B_ABST
Patent Text Reader

Abstract

This invention discloses a transaction information processing method, apparatus, terminal device, and readable storage medium. The transaction information processing method includes: obtaining an update instruction, the update instruction including first account information that has logged out; determining the data storage address of first transaction information corresponding to the logged-out first account information as a storage address to be updated, each first transaction information having a data storage address; obtaining second transaction information corresponding to logged-in second account information; and storing the transaction data into the storage address to be updated. Using the above technical solution, transaction information can be processed efficiently, saving system computing power consumption when an account logs out.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing technology, and more specifically, to a transaction information processing method and apparatus, terminal equipment, and readable storage medium. Background Technology

[0002] Securities trading is inseparable from the operation of the trading system. The trading system needs to process and store users' trading data so that it can promptly provide users with the query results when they need to query trading information and other data.

[0003] Existing technologies will immediately delete the data associated with an account if the account has logged out during data storage.

[0004] However, the trading system stores massive amounts of data. If the trading information corresponding to each account needs to be deleted at the system level when each account exits, it will consume a lot of computing power and affect the system's processing efficiency. Summary of the Invention

[0005] The technical problem solved by this invention is how to process transaction information in order to save system computing power when an account logs out.

[0006] To address the aforementioned technical problems, the present invention provides a transaction information processing method, comprising: obtaining an update instruction, the update instruction including first account information that has logged out; determining a data storage address for first transaction information corresponding to the logged-out first account information as a storage address to be updated, wherein each first transaction information has a data storage address; obtaining second transaction information corresponding to a logged-in second account information; and storing the transaction data into the storage address to be updated.

[0007] Optionally, the update instruction is generated when the first account logs out.

[0008] Optionally, the data storage address can be obtained by: obtaining the first transaction information as data to be stored; allocating a data storage address to the data to be stored to determine the data storage address of the data to be stored.

[0009] Optionally, obtaining the second transaction information corresponding to the logged-in second account information includes: periodically obtaining the second transaction information corresponding to the second account information.

[0010] Optionally, storing the second transaction information into the storage address to be updated includes: determining the load of the storage node to which the storage address to be updated belongs; and storing the second transaction information into the data storage address in the storage node when the load of the storage node is less than the load threshold.

[0011] Optionally, the transaction information processing method further includes: obtaining a query instruction, the query instruction including a unique query identifier or a non-unique query identifier, the transaction information having a unique identifier and a non-unique identifier, and different transaction information having different unique identifiers; matching the unique query identifier with the unique identifiers of each data to determine the transaction information whose unique identifier matches the unique query identifier, as the query result; or matching the non-unique query identifier with the non-unique identifiers of each data to determine multiple transaction information whose non-unique identifier matches the non-unique query identifier, as the query result.

[0012] The present invention also discloses a transaction information processing device, the transaction information processing device comprising: a first acquisition module, configured to acquire an update instruction, the update instruction including first account information that has logged out; a determination module, configured to determine the data storage address of the first transaction information corresponding to the logged-out first account information as the storage address to be updated, each first transaction information having a data storage address; a second acquisition module, configured to acquire second transaction information corresponding to a logged-in second account information; and a storage module, configured to store the second transaction information into the storage address to be updated.

[0013] The present invention also discloses a transaction information processing system, the transaction information processing system comprising: a relay device, configured to acquire an update instruction, the update instruction including first account information that has logged out; determine the data storage address of first transaction information corresponding to the logged-out first account information as a storage address to be updated, each first transaction information having a data storage address; acquire second transaction information corresponding to a logged-in second account information, and store the second transaction information into the storage address to be updated; and a transaction server, configured to send the second transaction information corresponding to the second account information to the relay device.

[0014] Optionally, the transaction information has a unique identifier and a non-unique identifier. The relay device is also used to obtain a query instruction, which includes a unique query identifier or a non-unique query identifier. The query instruction is used to determine the transaction information whose unique identifier matches the unique query identifier as the query result, or to determine multiple transaction information whose non-unique identifier matches the non-unique query identifier as the query result.

[0015] The present invention also discloses a computer-readable storage medium storing a computer program thereon. The computer-readable storage medium is a non-volatile storage medium or a non-transient storage medium. When the computer program is run by a processor, it executes the steps of any of the above-described transaction information processing methods.

[0016] Compared with the prior art, the technical solution of the present invention has the following beneficial effects:

[0017] This invention proposes a transaction information processing method. By obtaining an update instruction, the method retrieves the information of a first account that has logged out, and determines the data storage address of the first transaction information corresponding to the first account information as the storage address to be updated. Then, it retrieves the second transaction information corresponding to a second logged-in account and stores it in the storage address to be updated. By using the data storage address of the first transaction information corresponding to the first account as the storage address to be updated when the first account logs out, instead of deleting the first transaction information, the method avoids the data deletion operation, thus saving the system's computational resources consumed when deleting underlying data and improving system performance. After the second account logs in, the method reuses the storage address to be updated, storing the second transaction information corresponding to the second account in the storage address to overwrite the first transaction information. This avoids the additional cache occupation caused by creating a new data storage address and optimizes resource consumption when storing data.

[0018] Furthermore, storing data in existing relay equipment and reusing the relay equipment for data storage can save on the hardware and software expenses of deploying query servers and reduce the deployment cost of the system. Attached Figure Description

[0019] Figure 1 This is an overall flowchart of a transaction information processing method provided in an embodiment of the present invention;

[0020] Figure 2 This is a schematic diagram of the structure of a transaction information processing system provided in an embodiment of the present invention;

[0021] Figure 3 This is a schematic diagram of an application scenario provided by an embodiment of the present invention;

[0022] Figure 4 This is a schematic diagram of another application scenario provided by an embodiment of the present invention;

[0023] Figure 5 This is a schematic diagram illustrating another application scenario provided by an embodiment of the present invention;

[0024] Figure 6 This is a schematic diagram of the structure of a transaction information processing device provided in an embodiment of the present invention. Detailed Implementation

[0025] As described in the background section, trading systems need to process and store user transaction information and other data to promptly provide users with query results when they need to retrieve data. Current technology deletes transaction information immediately if an account has logged out. However, trading systems store massive amounts of data; deleting transaction information for each account upon logout would consume significant computing power and negatively impact system efficiency.

[0026] In this invention, by obtaining an update instruction, the information of a first account that has logged out is obtained, and the data storage address of the first transaction information corresponding to the first account information is determined based on the first account information, which is then used as the storage address to be updated. The second transaction information corresponding to the second logged-in account is obtained and stored in the storage address to be updated. By using the data storage address of the first transaction information corresponding to the first account as the storage address to be updated when the first account logs out, instead of deleting the first transaction information, the data deletion operation can be omitted, thereby saving the system's computational power consumption when deleting underlying data and improving system performance. After the second account logs in, the storage address to be updated is reused, and the second transaction information corresponding to the second account is stored in the storage address to overwrite the first transaction information. This avoids the additional occupation of the system cache by creating a new data storage address and optimizes the resource overhead when storing data.

[0027] Furthermore, storing data in existing relay equipment and reusing the relay equipment for data storage can save on the hardware and software expenses of deploying query servers and reduce the deployment cost of the system.

[0028] The account information mentioned in this embodiment of the invention can be used to indicate an account, specifically a stock account used for stock trading.

[0029] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0030] Figure 1 This is an overall flowchart of a transaction information processing method provided in an embodiment of the present invention.

[0031] In specific implementation, the transaction information processing method described in steps 101 to 104 below can be used in a terminal device. These steps can be executed by the terminal device itself, by a chip with data processing capabilities within the terminal device, or by a chip module containing a chip with data processing capabilities within the terminal device. Specifically, the terminal device can be a relay device.

[0032] Specifically, such as Figure 1 As shown, the transaction information processing method may include the following steps:

[0033] In step 101, the update instruction is obtained;

[0034] In step 102, the data storage address of the first transaction information corresponding to the first account information that has been logged out is determined as the storage address to be updated;

[0035] In step 103, the second transaction information corresponding to the logged-in second account information is obtained;

[0036] In step 104, the second transaction information is stored in the storage address to be updated.

[0037] In a specific embodiment of step 101, the terminal device obtains an update instruction. The update instruction includes information about a first account that has logged out. The update instruction is generated when the first account logs out and is used to instruct the terminal device to determine the storage address to be updated. Specifically, the first account information includes an identifier for the first account, and each account has a unique identifier.

[0038] In a specific embodiment of step 102, the terminal device determines the storage address of the first transaction information corresponding to the first account information based on the first account information, so as to serve as the storage address to be updated, and each first transaction information has a data storage address.

[0039] In a non-limiting embodiment, when the terminal device obtains the first transaction information corresponding to the first account information, it can use the first transaction information as data to be stored and allocate a data storage address to the data to be stored, thus determining the data storage address of the data to be stored.

[0040] In a specific implementation, the terminal device stores the data storage address of data corresponding to each account. Based on the first account information that has logged out, the data storage address of multiple first transaction information corresponding to the first account information can be determined. When the first account logs out, the first transaction information corresponding to the first account information is not deleted. Instead, the data storage address of the first transaction information is used as the storage address to be updated. This can save the computing power consumption of deleting massive amounts of underlying data and improve the performance of the terminal device.

[0041] It should be noted that the data storage address of the data to be stored can be an unused data storage address on the terminal device, or it can be the data storage address of data corresponding to other logged-out accounts. The specific storage address can be selected according to the actual situation, and this application does not impose any restrictions on it.

[0042] In a specific implementation of step 103, the terminal device obtains the second transaction information corresponding to the logged-in second account information and allocates a data storage address for the second transaction information. The login time of the second account is later than the logout time of the first account.

[0043] In this embodiment, the first transaction information and the second transaction information are transaction data. Specifically, transaction data may include data such as holding data, order data, and asset data, and can be used to represent various data of a user during the stock trading process.

[0044] In other embodiments, the first transaction information and the second transaction information may also be in formats such as video data, text data, or audio data, and this application does not impose any restrictions on this.

[0045] In a specific implementation, a user can perform multiple operations after logging into the second account, thus generating multiple second transaction records corresponding to the second account. Accordingly, the terminal device can periodically retrieve the second transaction records corresponding to the second account information to ensure that the user can query the latest data in real time.

[0046] In a specific implementation of step 104, the storage address to be updated is determined, and the second transaction information is stored in the storage address to be updated.

[0047] In a non-limiting embodiment, the terminal device may include multiple storage nodes for distributed data storage. Each storage node includes multiple data storage addresses and is used to store data. After determining the storage address to be updated, it can be determined whether the load of the storage node to which the storage address belongs has reached a load threshold. If the load of the storage node is less than the load threshold, it means that the storage node can store data, and the second transaction information can be stored in the data storage address to be updated in that storage node. By determining the load of the storage node before storing data, it can be ensured that storing the second transaction information will not affect the working state of the data node itself, thus ensuring the normal storage of the second transaction information.

[0048] It should be noted that the rules for determining the storage address to be updated can be determined based on the actual situation, and this application does not impose any restrictions on this.

[0049] In a non-limiting embodiment, the terminal device can also query the data. Specifically, it obtains a query instruction, which includes a unique query identifier or a non-unique query identifier. Data has unique and non-unique identifiers; different data have different unique identifiers, while the non-unique identifiers of multiple data sets can be the same. Specifically, the data can be transaction information. The unique identifier can be a transaction order number or other identifier that can be used to distinguish data, and the non-unique identifier can be the data type or an identifier that can indicate multiple data sets.

[0050] Furthermore, by matching the unique query identifier with the unique identifiers of each piece of data, data whose unique identifier matches the unique query identifier are identified as query results. Alternatively, by matching the non-unique query identifier with the non-unique identifiers of each piece of data, multiple pieces of data whose non-unique identifier matches the non-unique query identifier are identified as query results. Before the first account logs out, the data in this embodiment may refer to the first transaction information; after the second account logs in, the data in this embodiment may refer to the second transaction information.

[0051] In this embodiment of the invention, when the first account logs out, the data storage address of the first transaction information corresponding to the first account information is used as the storage address to be updated, instead of deleting the first transaction information corresponding to the first account information. After the second account logs in, the storage address to be updated is reused, and the second transaction information corresponding to the second account information is stored in the storage address to be updated, thus overwriting the first transaction information. By omitting the operation of deleting the first transaction information, the computational power consumed in deleting underlying data can be saved, thereby improving the performance of the terminal device.

[0052] Figure 2 This is a schematic diagram of the structure of a transaction information processing system provided in an embodiment of the present invention.

[0053] like Figure 2 As shown, this embodiment of the invention also discloses a transaction information processing system. The transaction information processing system 20 includes:

[0054] The relay device 201 is used to obtain update instructions, which include first account information that has logged out; determine the data storage address of the first transaction information corresponding to the first account information that has logged out, as the storage address to be updated, and each first transaction information has a data storage address; obtain the second transaction information corresponding to the second account information that has logged in, and store the second transaction information into the storage address to be updated.

[0055] The transaction server 202 is used to send the second transaction information corresponding to the second account information to the relay device 201.

[0056] In a specific implementation, the transaction information processing system 20 may further include a user device 203, on which a client is deployed, allowing users to conduct securities transactions. After a user logs into their account on the client, the user device 203 establishes communication with the transaction server 202. The transaction server 202 can then send transaction data, such as asset data corresponding to the account, to the relay device 201, which can perform distributed storage of the transaction data.

[0057] In a specific implementation, after processing operations such as the order placement for the second account, the transaction server 202 generates second transaction information and periodically sends the second transaction information corresponding to the second account information to the relay device 201 to ensure that users can query the latest second transaction information in real time. The period at which the transaction server sends the second transaction information can be determined according to the actual situation, and this application does not impose any restrictions on it.

[0058] In this embodiment, the relay device 201 can be a gateway device. By storing data in the cache of the gateway device, existing hardware resources can be reused. Compared to deploying an additional query server and storing and querying data through the query server, using a gateway device can save the hardware and software expenses of deploying a query server, reducing the deployment cost of the system.

[0059] In other embodiments, the relay device 201 may also be other hardware devices with data storage functions. The relay device 201 can be selected according to the actual situation, and this application does not limit it.

[0060] In a non-limiting embodiment, the relay device 201 includes a storage unit 2011, a status unit 2012, an index unit 2013, and a data recycling unit 2014.

[0061] Storage unit 2011 is used to store transaction data. Each transaction data has a data storage address. The types of transaction data can include orders, positions, assets, etc.

[0062] Status unit 2012 is used to identify the status of transaction data, which can include deletion, addition, and update. If the status of transaction data is deletion, it indicates that the account to which the transaction data belongs has logged out, and the data storage address of the transaction data has been designated as a storage address to be updated. If the status of transaction data is addition, it indicates that the transaction data is stored in a new data storage address or a storage address to be updated. If the status of transaction data is update, it indicates that the transaction data is stored in a data storage address that has already been used.

[0063] Index unit 2013 is used to store the data storage address, unique index and non-unique index of the transaction data corresponding to the logged-in account.

[0064] The data recycling unit 2014 is used to store storage addresses that need to be updated.

[0065] In a non-limiting embodiment, a mutex lock can be added before processing the transaction data and released after processing is completed to ensure that the transaction data is only controlled by the current instruction and to ensure the integrity of the transaction data.

[0066] In one specific embodiment, after a user logs into a third account through user device 203, user device 203 establishes communication with transaction server 202. Transaction server 202 sends the third data corresponding to the third account to relay device 201, which stores transaction data for multiple accounts.

[0067] After the relay device 201 obtains the third data corresponding to the third account, it generates a unique identifier for the third data. The index unit 2013 then searches for transaction data whose unique identifier matches that of the third data.

[0068] Furthermore, if a fourth data point exists with a unique identifier that matches the unique identifier of the third data point, a non-unique identifier for the third data point is generated. The fourth data point is then replaced with the third data point in storage unit 2011, and the unique identifier and non-unique identifier of the fourth data point are replaced with the unique identifier and non-unique identifier of the third data point in index unit 2013. Simultaneously, the status of the third data point is marked as updated in status unit 2012. For example, if a user creates an order and then withdraws it, the created and withdrawn orders correspond to the same order, and the unique identifier of the created order data matches the unique identifier of the withdrawn order data.

[0069] If no transaction data matching the unique identifier of the third data exists, the third data is inserted into storage unit 2011. Specifically, it is determined whether there is a storage address to be updated in data recycling unit 2014. If so, the third data is stored at the storage address to be updated, a non-unique identifier for the third data is generated, and the unique identifier and non-unique identifier of the third data are stored in index unit 2013; otherwise, the third data is stored at a new data storage address, a non-unique identifier for the third data is generated, and the unique identifier and non-unique identifier of the third data are stored in index unit 2013.

[0070] In one specific embodiment, when the first account logs out, the user device 203 to which the first account belongs disconnects from the transaction server 202. The relay device 201 receives an update instruction sent by the transaction server 202, which includes the first account information. The relay device 201 determines the unique identifier, non-unique identifier, and data storage address of the first transaction information corresponding to the first account information in the index unit 2013, deletes the unique identifier and non-unique identifier corresponding to the first transaction information, and stores the data storage address of the first transaction information as the storage address to be updated in the data recycling unit 2014. At this time, the status of the first transaction information in the status unit 2012 is "deleted".

[0071] In a specific implementation, the relay device 201 can obtain query instructions sent by the user equipment. The query instructions include a unique query identifier or a non-unique query identifier. Each transaction data has a unique identifier and a non-unique identifier, and the unique identifiers of different data are different. For example, when a user queries the holdings of a certain stock, a unique identifier can be used for the query; when a user queries the historical orders for a certain date, a non-unique identifier can be used for the query.

[0072] Now combined Figures 3 to 5 The process of processing transaction data is explained.

[0073] like Figure 3 As shown, the relay device 201 determines the transaction data 2 that needs to be deleted, deletes the unique identifier and non-unique identifier of the transaction data 2 from the index unit, and stores the storage address of the transaction data 2 as the storage address to be updated in the data recycling unit; at the same time, it changes the status of the transaction data 2 in the status unit to deleted, so as to complete the deletion of the transaction data 2.

[0074] like Figure 4 As shown, relay device 201 acquires transaction data 4 to be added, and the data recycling unit contains the storage address of transaction data 2 to be updated. The storage address to be updated can be retrieved from the data recycling unit, and the storage address of transaction data 2 to be updated can be deleted from the data recycling unit; transaction data 4 is stored in the storage unit to the storage address of transaction data 2 to be updated, and the unique identifier and non-unique identifier of transaction data 4 are stored in the index unit (the unique identifier and non-unique identifier of transaction data 2 have been deleted), so as to complete the addition of transaction data 4.

[0075] like Figure 5As shown, relay device 201 obtains a query instruction, which includes a unique query identifier used to indicate unique identifier 4. The unique query identifier can be used to match the unique identifier 4 of transaction data 4 in the index module, so that the storage address of transaction data 4 can be obtained when the status of transaction data 4 is not deleted. Transaction data 4 can be retrieved from the storage unit according to its storage address to complete the query for transaction data 4.

[0076] In one specific embodiment, transaction data can be queried using a unique index. In the index unit 2013, a unique query identifier in the query instruction is used for matching. If the unique identifier of the transaction data matches the unique query identifier, and the transaction data's status is not deleted, the transaction data is used as the matching data. The matching data is retrieved from the data storage address of the matching data and then fed back to the user equipment 203 as the query result.

[0077] In another specific embodiment, transaction data can be queried according to a non-unique index. The query instruction also includes a first identifier and a second identifier, which are used to determine the matching range of data. Multiple transaction data within the matching range are matched using the non-unique query identifier. If the non-unique identifier of the transaction data matches the non-unique query identifier, and the transaction data is not deleted, the transaction data is used as the matching data. Multiple matching data are sequentially retrieved from the data storage addresses of the multiple matching data, and the multiple matching data are fed back to the user equipment 203 as query results. For example, the index unit 2013 stores 100 non-unique identifiers and storage addresses of transaction data. The first identifier can be used to indicate the first transaction data, and the second identifier can be used to indicate the 50th transaction data. The first to the 50th transaction data are used as the matching range; within the matching range, transaction data whose non-unique identifier matches the non-unique query identifier are queried and used as the matching data.

[0078] In a non-limiting embodiment, only the non-unique query identifier can be obtained, and all non-unique identifiers of each transaction data can be traversed to determine the transaction data whose non-unique identifier matches the non-unique query identifier. The transaction data whose status is not deleted is then used as the matching data. Multiple matching data are sequentially obtained from the data storage addresses of multiple matching data, and the multiple matching data are fed back to the user equipment 203 as query results.

[0079] It should be noted that a red-black tree can be used to store non-unique identifiers, and a hash table can be used to store unique indexes. The storage format of unique and non-unique indexes can be determined according to the actual situation, and this application does not impose any restrictions on it.

[0080] In this embodiment, existing hardware devices are reused as relay devices to store transaction data and to send query results back to user devices based on query commands. By reusing existing hardware devices, the hardware and software expenses for deploying a query server can be saved, reducing system deployment costs. Transaction data is assigned unique and non-unique identifiers, allowing users to perform precise or range searches based on their needs, improving query efficiency and enhancing the user experience when querying data.

[0081] like Figure 6 As shown, this embodiment of the invention also discloses a transaction information processing device. The transaction information processing device 60 includes:

[0082] The first acquisition module 601 is used to acquire an update instruction, the update instruction including first account information that has logged out;

[0083] The determining module 602 is used to determine the data storage address of the first transaction information corresponding to the first account information that has been logged out, so as to serve as the storage address to be updated. Each first transaction information has a data storage address.

[0084] The second acquisition module 603 is used to acquire the second transaction information corresponding to the logged-in second account information;

[0085] Storage module 604 is used to store the second transaction information into the storage address to be updated.

[0086] In specific implementation, the aforementioned transaction information processing device may correspond to a chip with data processing function in a terminal device, such as a SOC (System-On-a-Chip), a baseband chip, etc.; or correspond to a chip module in a terminal device that includes a chip with data processing function; or correspond to a chip module with a chip with data processing function; or correspond to a terminal device.

[0087] For more information on the working principle and operation mode of the transaction information processing device 60, please refer to [link / reference needed]. Figures 1 to 5 The relevant descriptions in the text will not be repeated here.

[0088] Regarding the modules / units included in the various devices and products described in the above embodiments, they can be software modules / units, hardware modules / units, or a combination of both. For example, for various devices and products applied to or integrated into a chip, all of their modules / units can be implemented using hardware methods such as circuits, or at least some modules / units can be implemented using software programs that run on a processor integrated within the chip, while the remaining (if any) modules / units can be implemented using hardware methods such as circuits; for various devices and products applied to or integrated into a chip module, all of their modules / units can be implemented using hardware methods such as circuits, and different modules / units can be located in the same component (e.g., chip, circuit module, etc.) or different components of the chip module, or at least some modules / units can be implemented using hardware methods such as circuits. The components can be implemented using software programs that run on the processor integrated within the chip module. The remaining (if any) modules / units can be implemented using hardware methods such as circuits. For various devices and products applied to or integrated into the terminal, each of its components / units can be implemented using hardware methods such as circuits. Different modules / units can be located in the same component (e.g., chip, circuit module, etc.) or in different components within the terminal. Alternatively, at least some modules / units can be implemented using software programs that run on the processor integrated within the terminal, while the remaining (if any) modules / units can be implemented using hardware methods such as circuits.

[0089] This invention also discloses a storage medium, wherein the computer-readable storage medium is a non-volatile storage medium or a non-transient storage medium, and the storage medium stores a computer program thereon, which can be executed when the computer program is run. Figures 1 to 5 The steps of the method shown are illustrated. The storage medium may include ROM, RAM, disk, or optical disk, etc. The storage medium may also include non-volatile memory or non-transitory memory, etc.

[0090] This invention also discloses a terminal device, which may include a memory and a processor. The memory stores a computer program that can run on the processor, and the processor can execute the computer program. Figures 1 to 5 The steps of the method shown are as follows.

[0091] In the embodiments of this application, "multiple" refers to two or more.

[0092] The descriptions of "first," "second," etc., appearing in the embodiments of this application are for illustrative purposes and to distinguish the objects being described. They have no order and do not indicate any special limitation on the number of devices in the embodiments of this application, nor do they constitute any limitation on the embodiments of this application.

[0093] It should be understood that in the embodiments of this application, the processor can be a central processing unit (CPU), or it can be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.

[0094] It should also be understood that the memory in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced synchronous DRAM (ESDRAM), synchronous linked DRAM (SLDRAM), and direct rambus RAM (DR RAM).

[0095] The above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any other combination thereof. When implemented using software, the above embodiments can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired or wireless means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more sets of available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium. A semiconductor medium can be a solid-state drive.

[0096] It should be understood that in the various embodiments of this application, the order of the above-mentioned processes does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0097] In the several embodiments provided in this application, it should be understood that the disclosed methods, apparatuses, and systems can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for example, the division of units is merely a logical functional division, and other division methods may exist in actual implementation; for example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0098] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0099] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can be physically comprised separately, or two or more units can be integrated into one unit. The integrated unit described above can be implemented in hardware or in the form of hardware plus software functional units.

[0100] The integrated units implemented as software functional units described above can be stored in a computer-readable storage medium. These software functional units, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute some steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0101] While the present invention has been disclosed above, it is not limited thereto. Any person skilled in the art can make various modifications and alterations without departing from the spirit and scope of the invention; therefore, the scope of protection of the present invention should be determined by the scope defined in the claims.

Claims

1. A method for processing transaction information, characterized in that, include: Obtain an update instruction, the update instruction including information of a first account that has logged out, the update instruction being generated when the first account logs out; The data storage address of the first transaction information corresponding to the first account information that has been logged out is determined as the storage address to be updated, and each first transaction information has a data storage address; Obtain the second transaction information corresponding to the logged-in second account, wherein the login time of the second account is later than the logout time of the first account; The second transaction information is stored in the storage address to be updated.

2. The transaction information processing method according to claim 1, characterized in that, The data storage address is obtained using the following method: Obtain the first transaction information as data to be stored; A data storage address is assigned to the data to be stored in order to determine the data storage address of the data to be stored.

3. The transaction information processing method according to claim 1, characterized in that, The process of obtaining the second transaction information corresponding to the logged-in second account information includes: The second transaction information corresponding to the second account information is periodically retrieved.

4. The transaction information processing method according to claim 1, characterized in that, The step of storing the second transaction information into the storage address to be updated includes: Determine the load of the storage node to which the storage address to be updated belongs; When the load on the storage node is less than the load threshold, the second transaction information is stored in the data storage address of the storage node.

5. The transaction information processing method according to claim 1, characterized in that, Also includes: Obtain a query instruction, which includes a unique query identifier or a non-unique query identifier. Transaction information has unique and non-unique identifiers, and different transaction information has different unique identifiers. The unique query identifier is matched with the unique identifier of each transaction information to determine the transaction information whose unique identifier matches the unique query identifier, which is used as the query result. Alternatively, the non-unique query identifier is matched with the non-unique identifier of each transaction information to determine multiple transaction information whose non-unique identifier matches the non-unique query identifier, which is used as the query result.

6. A transaction information processing device, characterized in that, include: The first acquisition module is used to acquire an update instruction, which includes information about a first account that has logged out. The update instruction is generated when the first account logs out. The determination module is used to determine the data storage address of the first transaction information corresponding to the first account information that has been logged out, so as to serve as the storage address to be updated. Each first transaction information has a data storage address. The second acquisition module is used to acquire the second transaction information corresponding to the logged-in second account information, wherein the login time of the second account is later than the logout time of the first account; A storage module is used to store the second transaction information into the storage address to be updated.

7. A transaction information processing system, characterized in that, include: A relay device is used to obtain an update instruction, the update instruction including information of a first account that has logged out, the update instruction being generated when the first account logs out; The data storage address of the first transaction information corresponding to the first account information that has logged out is determined as the storage address to be updated, and each first transaction information has a data storage address; the second transaction information corresponding to the second account information that has logged in is obtained, and the second transaction information is stored in the storage address to be updated, wherein the login time of the second account is later than the login time of the first account; The transaction server is used to send the second transaction information corresponding to the second account information to the relay device.

8. The transaction information processing system according to claim 7, characterized in that, The transaction information has a unique identifier and a non-unique identifier. The relay device is also used to obtain a query instruction, which includes a unique query identifier or a non-unique query identifier. The query instruction is used to determine the transaction information whose unique identifier matches the unique query identifier as the query result, or to determine multiple transaction information whose non-unique identifier matches the non-unique query identifier as the query result.

9. A readable storage medium having a computer program stored thereon, characterized in that, The readable storage medium is a non-volatile or non-transient storage medium, and the computer program, when run by a processor, executes the steps of the transaction information processing method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Single-user login method and device supporting multi-node deployment, equipment and medium

    CN110839041A

  • Information registration method and device, computer equipment, storage medium and program product

    CN114185949A