CN113129150A - Transaction data processing method and device, terminal device and readable storage medium - Google Patents

Transaction data processing method and device, terminal device and readable storage medium Download PDF

Info

Publication number
CN113129150A
CN113129150A CN202110466731.5A CN202110466731A CN113129150A CN 113129150 A CN113129150 A CN 113129150A CN 202110466731 A CN202110466731 A CN 202110466731A CN 113129150 A CN113129150 A CN 113129150A
Authority
CN
China
Prior art keywords
transaction data
data
index value
target
transaction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110466731.5A
Other languages
Chinese (zh)
Inventor
叶振东
罗宇哲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Xishima Data Technology Co ltd
Original Assignee
Shenzhen Xishima Data Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Xishima Data Technology Co ltd filed Critical Shenzhen Xishima Data Technology Co ltd
Priority to CN202110466731.5A priority Critical patent/CN113129150A/en
Publication of CN113129150A publication Critical patent/CN113129150A/en
Priority to CN202210010595.3A priority patent/CN114429401A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Accounting & Taxation (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Software Systems (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Computational Linguistics (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application is applicable to the technical field of data processing, and provides a transaction data processing method, a device, a terminal device and a readable storage medium, wherein the method comprises the following steps: when transaction data to be stored are received, the identification and the data type of the transaction data to be stored are read, the corresponding index value is determined according to the identification and the data type, and the transaction data to be stored are stored into the corresponding preset storage space according to the index value. The corresponding index value is determined through the identification and the data type of the transaction data, the transaction data are stored into different preset storage spaces based on the index value, when a transaction data query instruction is received, the index value is determined according to the identification, the corresponding target transaction data are read, the storage efficiency and the reading efficiency of the data are improved, and the analysis processing efficiency of the data is further improved.

Description

Transaction data processing method and device, terminal device and readable storage medium
Technical Field
The present application belongs to the technical field of data processing, and in particular, to a method and an apparatus for processing transaction data, a terminal device, and a readable storage medium.
Background
In the financial securities industry, day-to-day duplication analysis of daily transactional data is the most common means of data analysis.
However, the daily transaction data volume of the financial securities is large, the storage space occupied by the transaction data is large, and when the transaction data is processed and analyzed, the storage and reading efficiency of the transaction data is low, so that the analysis efficiency of the transaction data is influenced.
Disclosure of Invention
The embodiment of the application provides a transaction data processing method and device, a terminal device and a readable storage medium, and can solve the problem of low efficiency of storing and reading transaction data caused by large transaction data volume.
In a first aspect, an embodiment of the present application provides a method for processing transaction data, which is applied to a data storage terminal, and includes:
when transaction data to be stored are received, reading the identification and the data type of the transaction data to be stored;
determining a corresponding index value according to the identification and the data type;
and storing the transaction data to be stored into a corresponding preset storage space according to the index value.
In a second aspect, an embodiment of the present application provides a transaction data processing method, which is applied to a data reading terminal, and includes:
when a transaction data query request is received, analyzing the transaction data query request to obtain an identifier of target transaction data;
determining an index value of the target transaction data according to the identification;
and reading the target transaction data in a corresponding preset storage space according to the index value, and sending the target transaction data to a target terminal.
In a third aspect, an embodiment of the present application provides a transaction data processing apparatus, which is applied to a data storage terminal, and includes:
the receiving module is used for reading the identification and the data type of the transaction data to be stored when the transaction data to be stored is received;
a first determining module, configured to determine a corresponding index value according to the identifier and the data type;
and the storage module is used for storing the transaction data to be stored into the corresponding preset storage space according to the index value.
In a fourth aspect, an embodiment of the present application provides a transaction data processing apparatus, which is applied to a data reading terminal, and includes:
the analysis module is used for analyzing the transaction data query request to obtain the identification of the target transaction data when the transaction data query request is received;
the second determining module is used for determining the index value of the target transaction data according to the identification;
and the reading module is used for reading the target transaction data in the corresponding preset storage space according to the index value and sending the target transaction data to the target terminal.
In a fifth aspect, an embodiment of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor, when executing the computer program, implements the transaction data processing method according to any one of the first and second aspects.
In a sixth aspect, the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the transaction data processing method according to any one of the first and second aspects.
In a seventh aspect, the present application provides a computer program product, which when run on a terminal device, causes the terminal device to execute the transaction data processing method according to any one of the first and second aspects.
Compared with the prior art, the embodiment of the application has the advantages that: the corresponding index value is determined through the identification and the data type of the transaction data, the transaction data are stored into different preset storage spaces based on the index value, the index value is determined according to the identification when a transaction data query instruction is received, the corresponding target transaction data are read conveniently, the storage efficiency and the reading efficiency of the data are improved, and the analysis processing efficiency of the data is further improved.
It is to be understood that, the beneficial effects of the second to seventh aspects may be referred to the relevant description of the first aspect, and are not repeated herein.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a schematic diagram of a transaction data processing system according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow chart diagram illustrating a method for processing transaction data according to an embodiment of the present disclosure;
fig. 3 is a flowchart illustrating a step S102 of a transaction data processing method provided in an embodiment of the present application;
fig. 4 is a flowchart illustrating a step S103 of a transaction data processing method provided in an embodiment of the present application;
FIG. 5 is another schematic flow chart diagram of a transaction data processing method provided by an embodiment of the present application;
fig. 6 is a flowchart illustrating a step S202 of a transaction data processing method provided in an embodiment of the present application;
fig. 7 is a flowchart illustrating a step S203 of a transaction data processing method provided in an embodiment of the present application;
fig. 8 is a schematic structural diagram of a transaction data processing device provided in an embodiment of the present application;
fig. 9 is another schematic structural diagram of a transaction data processing device provided in an embodiment of the present application;
fig. 10 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
In the financial securities industry, it is often necessary to perform a review analysis (including query, presentation, playback of transaction data) of transaction data during the current day at the end of a transaction. However, due to the fact that the transaction data amount is too large, the transaction data needs to occupy a large amount of storage space, the storage efficiency and the reading efficiency of the transaction data are not high, and the analysis processing efficiency of the transaction data is further influenced. In order to solve the problem, the application provides a transaction data processing method, a transaction data processing device, a terminal device and a computer-readable storage medium, which can determine a corresponding index value based on an identifier and a data type of transaction data in the storage and extraction processes of the transaction data, store and read the transaction data in a corresponding preset storage space according to the index value, and improve the storage/reading efficiency of the data.
In order to implement the technical scheme provided by the application, a transaction data processing system can be constructed firstly. Referring to fig. 1, the transaction data processing system is composed of a transaction server, a data storage terminal, a data reading terminal and a target terminal, wherein the transaction server, the data storage terminal, the data reading terminal and the target terminal are sequentially connected in a communication manner.
The transaction server is a device for performing transactions based on transaction requirements set by transaction users (including but not limited to investment users, exchanges, and the like) and generating corresponding transaction data. The data storage terminal is a storage device which determines an index value according to the identification and the data type of the transaction data and stores the transaction data into a corresponding preset storage space based on the index value when the transaction server generates the transaction data. The data reading terminal is reading equipment for reading the target transaction data in the corresponding preset storage space according to the identification of the target storage data in the transaction data query request when receiving the transaction data query request sent by the target terminal. The target terminal is a terminal device which may have a transaction data query requirement so as to analyze and process the transaction data according to the queried transaction data.
The method for processing transaction data provided by the embodiment of the application can be applied to terminal devices such as a mobile phone, a tablet personal computer, a vehicle-mounted device, a notebook computer, a data storage/reading terminal, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), and the like, and the embodiment of the application does not limit the specific types of the terminal devices at all.
Fig. 2 shows a schematic flow chart of a transaction data processing method provided by the present application, which can be applied to the above-mentioned data storage terminal by way of example and not limitation.
S101, when transaction data to be stored are received, reading the identification and the data type of the transaction data to be stored.
Specifically, the transaction data to be stored refers to data generated when an investor initiates a transaction; for example, the transaction data to be stored includes stock transaction data or fund transaction data. A large amount of trading data is usually differentiated based on the unique identifier (identifier includes but is not limited to parameters such as security code, stock market, stock variety and trading time) carried by the trading data, that is, a unique trading data can be determined based on different parameters such as stock code, stock market, stock variety and trading time. The data types of the transaction data include, but are not limited to, low frequency transaction data and high frequency transaction data.
Specifically, a unique index value generated according to the identification and the data type of each transaction data is preset, and the storage position of each transaction data is determined according to the index value of each transaction data, so that when the identification and the data type of the transaction data to be stored are obtained, the index value can be determined through the identification and the data type, the preset storage space of the transaction data to be stored is further directly determined, the transaction data to be stored is stored in the preset storage space, and the storage rate of the transaction data is improved.
Specifically, for the storage efficiency of improvement data, set for and store low frequency transaction data and high frequency transaction data respectively to different preset storage space, include: and storing the low-frequency transaction data into a first preset storage space, and storing the high-frequency transaction data into a second preset storage space.
The first preset storage space and the second preset storage space can be specifically set according to actual requirements. For example, the first predetermined storage space is set as a MongoDB memory database, and the second predetermined storage space is set as a Redis memory database.
By way of example and not limitation, since the data volume of the high-frequency trading data is far greater than that of the low-frequency trading data, in order to improve the storage and reading efficiency of the data, the high-frequency trading data of the same type (i.e. having the same stock code, stock market and stock variety) and different trading times are divided into different trading time intervals in a preset time period, and the high-frequency trading data of the same type in the different trading time intervals are respectively stored in different storage positions of the same preset storage space.
For example, the preset time period is set to be 10mins, the high-frequency trading data to be stored is the stock code 001, the stock market is a, the stock variety a, the trading time is 10: 00-10: the high-frequency transaction data between 30 points can be divided into 3 high-frequency transaction data with different transaction time intervals, and the method comprises the following steps: the storage position corresponding to the first trading time interval comprises a security code of 001, a security market of A, a security variety a and a trading time of 10: 00-10: high frequency transaction data between 10 points; the storage position corresponding to the second trading time interval comprises a stock code of 001, a stock market of A, a stock variety of a and a trading time of 10: 10-10: the storage position corresponding to the high-frequency trading data between 20 points and the third trading time interval comprises a security code of 001, a security market of A, a security variety a and a trading time of 10: 20-10: high frequency transaction data between 30 points.
Table 1 a table of the identification, data type and corresponding index value of the transaction data;
Figure BDA0003044371070000071
and S102, determining a corresponding index value according to the identification and the data type.
Specifically, the index value of the transaction data to be stored is determined according to the identifier and the data type of the transaction data to be stored, and a preset storage space corresponding to the transaction data to be stored can be determined.
S103, storing the transaction data to be stored into a corresponding preset storage space according to the index value.
Specifically, a storage space of the transaction data to be stored is determined according to the index value of the transaction data to be stored, and the transaction data to be stored is stored into the corresponding preset storage space.
By way of example and not limitation, since high-frequency trading data of the same type (i.e., having the same security code, security market, and security variety) and different trading times are divided into different trading time intervals in advance, when the trading time of the trading data to be stored is obtained, the trading time interval corresponding to the trading time may be determined first, and then the target storage location of the high-frequency trading data in the trading data to be stored in the second preset storage space and the trading time interval may be determined, and the high-frequency trading data may be stored in the target storage location in the second preset storage space.
In one embodiment, in order to reduce the size of the storage space occupied by the transaction data, when determining the index value of the transaction data to be stored, the transaction data to be stored is firstly compressed, and the compressed transaction data to be stored is stored into the corresponding preset storage space based on the index value.
In one embodiment, the identification of the transaction data to be stored comprises a security code, a security market, a security variety and a transaction time, and the data type of the transaction data to be stored comprises low-frequency transaction data and high-frequency transaction data;
as shown in fig. 3, the step S102 includes:
s1021, when the data type of the trading data to be stored is detected to be low-frequency trading data, determining a corresponding first index value according to the security code, the security market, the security variety and the trading time of the low-frequency trading data;
s1022, or when the data type of the transaction data to be stored is detected to be high-frequency transaction data, determining a corresponding transaction time interval according to the transaction time of the high-frequency transaction data;
and S1023, determining a corresponding second index value according to the trading time interval, the security code, the security market and the security variety.
Specifically, when the data type of the trading data is detected to be low-frequency trading data, the corresponding first index value can be directly determined according to the security code, the security market, the security variety and the trading time of the low-frequency trading data because the data volume of the low-frequency trading data is not large. When the data type of the trading data is detected to be high-frequency trading data, due to the fact that the data volume of the high-frequency trading data is huge, a corresponding trading time interval needs to be determined according to the trading time of the high-frequency trading data, and a corresponding second index value is determined according to the trading time interval of the high-frequency trading data, the security code, the security market and the security variety.
As shown in fig. 4, in an embodiment, the step S103 includes:
s1031, storing the low-frequency transaction data into a first preset storage space according to the first index value;
s1032, determining a target storage position according to the transaction time interval, and storing the high-frequency transaction data to the target storage position in a second preset storage space according to the second index value.
Specifically, the low-frequency transaction data are sequentially stored into a first preset storage space according to the sequence of transaction time according to a first index value.
Specifically, since high-frequency trading data of the same type (i.e., having the same security code, security market, and security variety) and located in different trading time intervals are stored in the second preset storage space in a partitioned manner, it is first necessary to determine a target storage location of the high-frequency trading data according to the trading time interval, and store the high-frequency trading data onto the target storage location in the second preset storage space according to the second index value. Storage includes, but is not limited to, stacking (which reduces the loss of query data ordering performance).
According to the embodiment, the corresponding index value is determined according to the identification and the data type of the transaction data to be stored, and the transaction data to be stored is stored into different preset storage spaces based on the index value, so that the storage efficiency of the data is improved, and the analysis processing efficiency of the data is further improved.
Fig. 5 shows a schematic flow chart of a transaction data processing method provided by the present application, which may be applied to the above-mentioned data reading terminal by way of example and not limitation.
S201, when a transaction data query request is received, analyzing the transaction data query request to obtain an identifier of target transaction data;
s202, determining an index value of the target transaction data according to the identification;
s203, reading the target transaction data in the corresponding preset storage space according to the index value, and sending the target transaction data to a target terminal.
Specifically, when a trading data query request sent by a target terminal is received, the trading data query request is analyzed to obtain an identifier (including but not limited to parameters such as stock codes, stock markets, stock varieties and trading time) of target trading data contained in the trading data query request; and determining an index value of the target transaction data according to the identifier of the target transaction data, reading the target transaction data in a preset storage space based on the index value, and sending the target transaction data to the target terminal. The data type of the target transaction data includes, but is not limited to, low frequency transaction data and high frequency transaction data.
Specifically, the setting of storing the low-frequency transaction data and the high-frequency transaction data into different storage spaces respectively includes: and setting to store the low-frequency transaction data into a first preset storage space and store the high-frequency transaction data into a second preset storage space.
The first preset storage space and the second preset storage space can be specifically set according to actual requirements. For example, the first predetermined storage space is set as a MongoDB memory database, and the second predetermined storage space is set as a Redis memory database.
In one embodiment, the data types of the target transaction data include low frequency transaction data and high frequency transaction data; the identification includes a security code, a security market, a security variety, and a transaction time.
As shown in fig. 6, in one embodiment, step S202 includes:
s2021, determining a first index value of the low-frequency trading data according to the security code, the security market, the security variety and the trading time;
s2022, determining a corresponding transaction time interval according to the transaction time;
s2023, determining a second index value of the high-frequency trading data according to the trading time interval, the security code, the security market and the security variety.
In particular, the data types of the targeted transaction data include, but are not limited to, low frequency transaction data and high frequency transaction data. And determining a first index value corresponding to the low-frequency trading data in the target trading data according to the security code, the security market, the security variety and the trading time of the target trading data.
Specifically, since the data volume of the high-frequency trading data is far greater than that of the low-frequency trading data, in order to improve the storage and reading efficiency of the data, a preset time period is set, the high-frequency trading data of the same type (i.e., the high-frequency trading data have the same security code, security market and security variety) and different trading times are divided into different trading time intervals, and the high-frequency trading data of the same type in the different trading time intervals are respectively stored in different storage locations of the same preset storage space. Correspondingly, when the query operation of the high-frequency trading data is carried out, firstly, a trading time interval corresponding to the target trading data is determined according to the trading time of the target trading data, and a second index value corresponding to the high-frequency trading data in the target trading data is determined according to the trading time interval, the security code, the security market and the security variety of the target trading data, so that the trading data of the target trading data can be conveniently read in a second preset storage space and on a target storage position corresponding to the trading time interval based on the second index value.
For example, a security code of 001, a stock market of a, stock variety a, a trade time of 10: the transaction time interval of the high-frequency transaction data at point 05 is 10: 00-10: 10; correspondingly, the second index value can be determined to be G-A-a-T1000-001; the stock code is 001, the stock market is a, stock variety a, the trade time is 10: the transaction time interval of the 22-point high-frequency transaction data is 10: 20-10: 30, of a nitrogen-containing gas; the second index value may be correspondingly determined to be G-a-T1020-001.
As shown in fig. 7, in an embodiment, the step S203 includes:
s2031, reading low-frequency transaction data in a first preset storage space according to the first index value;
s2032, determining a target storage position according to the transaction time interval, and reading high-frequency transaction data at the target storage position in a second preset storage space according to the second index value;
s2033, sending the low-frequency transaction data and the high-frequency transaction data to a target terminal.
Specifically, according to a first index value, reading low-frequency transaction data in target transaction data in a first preset storage space, determining a corresponding target storage position according to a transaction time interval of the target transaction data, reading high-frequency transaction data at a target storage position in a second preset storage space according to a second index value, and sending the low-frequency transaction data and the high-frequency transaction data to a target terminal. The target terminal can set corresponding playing frequency, playing time or return visit times according to actual requirements, and display or play the inquired target transaction data.
By way of example and not limitation, when the transaction time of the target transaction data is detected to be long, the target transaction data is determined to comprise a plurality of transaction time intervals, and reading of the high-frequency transaction data in a lazy loading mode is set, namely, multiple times of data fetching operation are performed inside the target transaction data, so that data reading efficiency is improved.
It can be understood that, in order to determine that the target transaction data obtained based on the index value query is the current-day transaction data, before the start of the daily transaction, the transaction data in the storage location corresponding to each index value in the preset storage space is cleared.
According to the embodiment, when the transaction data query instruction is received, the index value is determined according to the identification, and the corresponding target transaction data is read in the corresponding preset storage space, so that the data reading efficiency is improved, and the data analysis and processing efficiency is further improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Corresponding to the transaction data processing method described in the above embodiment, fig. 8 shows a block diagram of a transaction data processing device provided in the embodiment of the present application, which is applied to a data storage terminal as an example and not a limitation, and only the relevant parts of the embodiment of the present application are shown for convenience of illustration.
Referring to fig. 8, the transaction data processing apparatus 100 includes:
the receiving module 101 is configured to, when receiving transaction data to be stored, read an identifier and a data type of the transaction data to be stored;
a first determining module 102, configured to determine a corresponding index value according to the identifier and the data type;
and the storage module 103 is configured to store the transaction data to be stored into a corresponding preset storage space according to the index value.
In one embodiment, the identification of the transaction data to be stored comprises a security code, a security market, a security variety and a transaction time, and the data type of the transaction data to be stored comprises low-frequency transaction data and high-frequency transaction data;
the first determining module 102 includes:
the first determining unit is used for determining a corresponding first index value according to the security code, the security market, the security variety and the trading time of the low-frequency trading data when the data type of the trading data to be stored is detected to be the low-frequency trading data;
the second determining unit is used for determining a corresponding transaction time interval according to the transaction time of the high-frequency transaction data when the data type of the transaction data to be stored is detected to be the high-frequency transaction data;
and the third determining unit is used for determining a corresponding second index value according to the trading time interval, the security code, the security market and the security variety.
In one embodiment, the storage module 103 includes:
the first storage unit is used for storing the low-frequency transaction data into a first preset storage space according to the first index value;
and the second storage unit is used for determining a target storage position according to the transaction time interval and storing the high-frequency transaction data to the target storage position in a second preset storage space according to the second index value.
According to the embodiment, the corresponding index value is determined according to the identification and the data type of the transaction data to be stored, and the transaction data to be stored is stored into different preset storage spaces based on the index value, so that the storage efficiency of the data is improved, and the analysis processing efficiency of the data is further improved.
Corresponding to the transaction data processing method described in the above embodiment, fig. 9 shows a block diagram of a transaction data processing device provided in the embodiment of the present application, which is applied to a data reading terminal as an example and not a limitation, and only the relevant parts of the embodiment of the present application are shown for convenience of illustration.
Referring to fig. 9, the transaction data processing apparatus 200 includes:
the analysis module 201 is configured to, when receiving a transaction data query request, analyze the transaction data query request to obtain an identifier of target transaction data;
a second determining module 202, configured to determine an index value of the target transaction data according to the identifier;
and the reading module 203 is configured to read the target transaction data in the corresponding preset storage space according to the index value, and send the target transaction data to the target terminal.
In one embodiment, the data types of the target transaction data include low frequency transaction data and high frequency transaction data; the identification comprises a security code, a security market, a security variety and a trading time;
the second determining module 202 includes:
a fourth determination unit, configured to determine a first index value of the low-frequency trading data according to the security code, the security market, the security item, and the trading time;
a fifth determining unit, configured to determine a corresponding transaction time interval according to the transaction time;
a sixth determining unit, configured to determine a second index value of the high-frequency trading data according to the trading time interval, the security code, the security market, and the security item.
In one embodiment, the reading module 203 includes:
the first reading unit is used for reading low-frequency transaction data in a first preset storage space according to the first index value;
the second reading unit is used for determining a target storage position according to the transaction time interval and reading high-frequency transaction data on the target storage position in a second preset storage space according to the second index value;
and the sending unit is used for sending the low-frequency transaction data and the high-frequency transaction data to a target terminal.
According to the embodiment, when the transaction data query instruction is received, the index value is determined according to the identification, and the corresponding target transaction data is read in the corresponding preset storage space, so that the data reading efficiency is improved, and the data analysis and processing efficiency is further improved.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
Fig. 10 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 10, the terminal device 11 of this embodiment includes: at least one processor 110 (only one shown in fig. 10), a memory 111, and a computer program 112 stored in the memory 111 and operable on the at least one processor 110, wherein the processor 110 executes the computer program 112 to implement the steps in any of the above-mentioned embodiments of the transaction data processing method.
The terminal device 11 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 110, a memory 111. Those skilled in the art will appreciate that fig. 10 is merely an example of the terminal device 11, and does not constitute a limitation to the terminal device 11, and may include more or less components than those shown, or combine some components, or different components, such as an input/output device, a network access device, and the like.
The Processor 110 may be a Central Processing Unit (CPU), and the Processor 110 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 111 may in some embodiments be an internal storage unit of the terminal device 11, such as a hard disk or a memory of the terminal device 11. In other embodiments, the memory 111 may also be an external storage device of the terminal device 11, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital Card (SD), a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 11. Further, the memory 111 may also include both an internal storage unit and an external storage device of the terminal device 11. The memory 111 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer programs. The memory 111 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal apparatus, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A transaction data processing method is applied to a data storage terminal and comprises the following steps:
when transaction data to be stored are received, reading the identification and the data type of the transaction data to be stored;
determining a corresponding index value according to the identification and the data type;
and storing the transaction data to be stored into a corresponding preset storage space according to the index value.
2. The method of processing transaction data of claim 1, wherein the identification of the transaction data to be stored includes a security code, a security market, a security variety, and a transaction time, and the data type of the transaction data to be stored includes low frequency transaction data and high frequency transaction data;
the determining a corresponding index value according to the identifier and the data type includes:
when the data type of the transaction data to be stored is detected to be low-frequency transaction data, determining a corresponding first index value according to the security code, the security market, the security variety and the transaction time of the low-frequency transaction data; or the like, or, alternatively,
when the data type of the transaction data to be stored is detected to be high-frequency transaction data, determining a corresponding transaction time interval according to the transaction time of the high-frequency transaction data;
and determining a corresponding second index value according to the trading time interval, the security code, the security market and the security variety.
3. The method for processing transaction data according to claim 2, wherein the storing the transaction data to be stored into the corresponding preset storage space according to the index value comprises:
storing the low-frequency transaction data into a first preset storage space according to the first index value;
and determining a target storage position according to the transaction time interval, and storing the high-frequency transaction data to the target storage position in a second preset storage space according to the second index value.
4. A transaction data processing method is applied to a data reading terminal and comprises the following steps:
when a transaction data query request is received, analyzing the transaction data query request to obtain an identifier of target transaction data;
determining an index value of the target transaction data according to the identification;
and reading the target transaction data in a corresponding preset storage space according to the index value, and sending the target transaction data to a target terminal.
5. The method of processing transaction data of claim 4, wherein the data types of the target transaction data include low frequency transaction data and high frequency transaction data; the identification comprises a security code, a security market, a security variety and a trading time;
the determining an index value of the target transaction data according to the identification comprises:
determining a first index value of the low frequency trading data according to the security code, the security market, the security variety and the trading time;
determining a corresponding transaction time interval according to the transaction time;
determining a second index value of the high frequency trading data according to the trading time interval, the security code, the security market, and the security variety.
6. The method for processing transaction data according to claim 5, wherein the reading the target transaction data in the corresponding preset storage space according to the index value and sending the target transaction data to the target terminal comprises:
reading low-frequency transaction data in a first preset storage space according to the first index value;
determining a target storage position according to the transaction time interval, and reading high-frequency transaction data at the target storage position in a second preset storage space according to the second index value;
and sending the low-frequency transaction data and the high-frequency transaction data to a target terminal.
7. A transaction data processing device applied to a data storage terminal comprises:
the receiving module is used for reading the identification and the data type of the transaction data to be stored when the transaction data to be stored is received;
a first determining module, configured to determine a corresponding index value according to the identifier and the data type;
and the storage module is used for storing the transaction data to be stored into the corresponding preset storage space according to the index value.
8. A transaction data processing device applied to a data reading terminal comprises:
the analysis module is used for analyzing the transaction data query request to obtain the identification of the target transaction data when the transaction data query request is received;
the second determining module is used for determining the index value of the target transaction data according to the identification;
and the reading module is used for reading the target transaction data in the corresponding preset storage space according to the index value and sending the target transaction data to the target terminal.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 3 or 4 to 6 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 3 or 4 to 6.
CN202110466731.5A 2021-04-28 2021-04-28 Transaction data processing method and device, terminal device and readable storage medium Pending CN113129150A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110466731.5A CN113129150A (en) 2021-04-28 2021-04-28 Transaction data processing method and device, terminal device and readable storage medium
CN202210010595.3A CN114429401A (en) 2021-04-28 2022-01-05 Transaction data processing method and device, terminal device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110466731.5A CN113129150A (en) 2021-04-28 2021-04-28 Transaction data processing method and device, terminal device and readable storage medium

Publications (1)

Publication Number Publication Date
CN113129150A true CN113129150A (en) 2021-07-16

Family

ID=76780470

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202110466731.5A Pending CN113129150A (en) 2021-04-28 2021-04-28 Transaction data processing method and device, terminal device and readable storage medium
CN202210010595.3A Pending CN114429401A (en) 2021-04-28 2022-01-05 Transaction data processing method and device, terminal device and readable storage medium

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202210010595.3A Pending CN114429401A (en) 2021-04-28 2022-01-05 Transaction data processing method and device, terminal device and readable storage medium

Country Status (1)

Country Link
CN (2) CN113129150A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113836142A (en) * 2021-09-24 2021-12-24 中国农业银行股份有限公司 Data processing method and related equipment
CN114418771A (en) * 2022-03-28 2022-04-29 深圳希施玛数据科技有限公司 Data transmission method and related device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116431082B (en) * 2023-06-14 2023-11-21 深圳嘉华众力科技有限公司 Method, apparatus, computer device and storage medium for data storage

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113836142A (en) * 2021-09-24 2021-12-24 中国农业银行股份有限公司 Data processing method and related equipment
CN114418771A (en) * 2022-03-28 2022-04-29 深圳希施玛数据科技有限公司 Data transmission method and related device

Also Published As

Publication number Publication date
CN114429401A (en) 2022-05-03

Similar Documents

Publication Publication Date Title
CN113129150A (en) Transaction data processing method and device, terminal device and readable storage medium
CN108376364B (en) Payment system account checking method and device and terminal device
CN107784063B (en) Algorithm generation method and terminal equipment
CN111179066B (en) Batch processing method and device for business data, server and storage medium
CN111611249A (en) Data management method, device, equipment and storage medium
CN109471893B (en) Network data query method, equipment and computer readable storage medium
CN112507212A (en) Intelligent return visit method and device, electronic equipment and readable storage medium
CN111460098B (en) Text matching method and device and terminal equipment
CN112163412A (en) Data verification method and device, electronic equipment and storage medium
CN110737917A (en) Data sharing device and method based on privacy protection and readable storage medium
CN110942312A (en) POS machine cash register identification method, system, equipment and storage medium
CN113129121A (en) E-commerce platform financial reconciliation accounting method and device
CN111104426A (en) Data query method and system
CN110647577A (en) Data cube partitioning method and device, computer equipment and storage medium
CN116842106A (en) Resource clue generation method and device
CN115185904A (en) Cloud storage data processing method and device, electronic equipment and readable storage medium
CN110704486A (en) Data processing method, device, system, storage medium and server
CN113625967B (en) Data storage method, data query method and server
CN112905677A (en) Data processing method and device, service processing system and computer equipment
CN114374392A (en) Data compression storage method and device, terminal equipment and readable storage medium
CN111611056A (en) Data processing method and device, computer equipment and storage medium
CN111158994A (en) Pressure testing performance testing method and device
CN112711584A (en) Data checking method, checking device, terminal equipment and readable storage medium
CN111695077A (en) Asset information pushing method, terminal equipment and readable storage medium
CN112579207B (en) Data loading method, device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210716

WD01 Invention patent application deemed withdrawn after publication