Data storage method and system based on big data

Through the analysis of the characteristics of transaction objects and the processing of hierarchical storage, and the adjustment of storage methods in real-time monitoring, the problems of low efficiency and difficulty of access in the transaction data storage in the e-commerce and financial industries are solved, and efficient and reasonable data storage and access are achieved.

CN118963655AInactive Publication Date: 2024-11-15ZHOUSHAN YUNZONG INTELLIGENT TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411005360.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-11-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The storage of transaction data in the prior art in the e-commerce and financial industries is confusing and difficult to access, resulting in low storage efficiency and high pressure for data access, and lack of effective data analysis and optimization methods.

Method used

By combining historical transaction data for characteristic analysis based on transaction objects, a personalized periodic data storage model is established, and a hierarchical storage analysis unit is used for hierarchical cache processing, the storage space is monitored in real time, and the data storage method is adjusted to optimize storage mode and access efficiency.

Benefits of technology

It realizes efficient, reasonable storage and convenient access of transaction data, alleviates database storage pressure, improves data access efficiency, and optimizes storage space utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118963655A_ABST
    Figure CN118963655A_ABST
Patent Text Reader

Abstract

The invention provides a data storage method and system based on big data, and relates to the technical field of big data. The method comprises the following steps: acquiring historical transaction storage data of all transaction objects, and performing object-based storage information hierarchical storage analysis to form object storage hierarchical processing data; acquiring real-time transaction storage data of different transaction objects in the storage period, and performing hierarchical storage on the real-time transaction storage data according to the object storage hierarchical processing data; monitoring the data storage space in real time, and performing storage adjustment analysis according to the storage margin of the data storage space to form storage adjustment analysis result data; and adjusting the data storage space according to the storage adjustment analysis result data. According to the method, the transaction data needing to be stored is reasonably and automatically stored and analyzed, so that systematic automatic storage of the transaction data is realized, and the efficiency and convenience of data access are greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of big data technology, and in particular to a data storage method and system based on big data. Background Art

[0002] In the field of e-commerce, the larger the platform, the greater the amount of transaction data generated. In order to ensure that the transaction information has legal traceability and facilitate timely inquiries by customers, service providers and merchants, it is necessary to store these transaction data. Such large transaction data also appears in the logistics and transportation industry, thus bringing huge challenges to the industry's data storage operations.

[0003] Currently, most of the storage of transaction data is still simply to associate transaction objects and then put them into the data pool or store them as a whole in a designated database. On the one hand, there is no reasonable analysis and processing of transaction data to reduce the chaos of stored data and improve the systematic nature of data storage. On the other hand, since a large amount of transaction data is directly stored in the database at the first time, not only does it cause a huge storage volume, which makes it difficult to upload data, but it also increases the difficulty of accessing data later.

[0004] Therefore, it is an urgent problem to be solved to design a data storage method and system based on big data, to realize systematic automatic storage of transaction data by performing reasonable automatic storage and analysis on the transaction data that needs to be stored, and to greatly improve the efficiency and convenience of data access. Summary of the invention

[0005] The purpose of the present invention is to provide a data storage method based on big data, which determines the transaction data characteristic information of different transaction objects by combining historical transaction storage data to analyze the transaction characteristics of transaction objects, and establishes a reasonable periodic data storage model for transaction objects. On the one hand, it can realize personalized transaction data automatic storage while fully grasping the transaction characteristics of different transaction objects, and on the other hand, it can fully consider the storage characteristics of transaction data of transaction objects to optimize the storage mode, and provide a more reasonable, efficient and convenient storage method. In addition, based on the personalized data storage of transaction objects, the storage space is monitored in real time, and the real-time stored transaction data is reasonably adjusted and controlled according to the results of monitoring and analysis, so as to ensure that the storage space can be optimized while meeting the requirements of efficient and reasonable storage, forming a storage form that is more conducive to efficient storage and convenient access.

[0006] The purpose of the present invention is also to provide an e-commerce and financial big data storage system based on artificial intelligence, which collects transaction data generated by different transaction objects through a collection unit, uses a hierarchical storage and analysis unit to implement hierarchical cache storage and analysis of the collected transaction data, and hands it over to a hierarchical storage processing unit for hierarchical cache storage processing to relieve the storage pressure of the database storage unit. The cache storage unit greatly improves the transaction data storage mode, makes the storage of transaction data more reasonable, and greatly facilitates access to stored data, improving access efficiency. The real-time monitoring transfer analysis processing unit can monitor the storage capacity of the cache storage unit for real-time caching, and timely adjust the storage capacity of the cache storage unit to ensure that it meets the needs of the new transaction data cache. The various units of the entire system are closely connected, providing an important material basis for efficient and reasonable customized transaction data storage.

[0007] In a first aspect, the present invention provides a data storage method based on big data, comprising acquiring historical transaction storage data of all transaction objects, and performing object-based storage information hierarchical storage analysis to form object storage hierarchical processing data; acquiring real-time transaction storage data of different transaction objects within a storage period, and performing hierarchical storage on the real-time transaction storage data according to the object storage hierarchical processing data; performing real-time monitoring of the data storage space, and performing storage adjustment analysis according to the storage margin of the data storage space to form storage adjustment analysis result data; and adjusting the data storage space according to the storage adjustment analysis result data.

[0008] In the present invention, the method determines the transaction data characteristic information of different transaction objects by combining historical transaction storage data to analyze based on the transaction characteristics of the transaction object, and establishes a reasonable periodic data storage model for the transaction object. On the one hand, it can realize the automatic storage of personalized transaction data while fully grasping the transaction characteristics of different transaction objects, and on the other hand, it also fully considers the storage characteristics of the transaction data of the transaction object to optimize the storage mode, and provides a more reasonable, efficient and convenient storage method. In addition, based on the personalized data storage of the transaction object, the storage space is monitored in real time, and the real-time stored transaction data is reasonably adjusted and controlled according to the results of the monitoring and analysis, so as to ensure that the storage space can be optimized while meeting the requirements of efficient and reasonable storage, forming a storage form that is more conducive to efficient storage and convenient access.

[0009] As a possible implementation method, historical transaction storage data of all transaction objects is obtained, and object-based storage information hierarchical storage analysis is performed to form object storage hierarchical processing data, including: taking the transaction storage data formed by each transaction as the smallest data storage unit, collecting the storage data formed by each transaction of all transaction objects to form transaction storage unit data; obtaining multiple transaction storage unit data formed by different transaction objects in the previous N storage cycles, and associating the transaction storage unit data with the transaction objects; performing storage capacity analysis on each transaction object in the previous N storage cycles to form storage capacity cache classification data; performing access depth analysis on each transaction object in the storage cycle based on the storage capacity cache classification data to form object transfer classification data.

[0010] In the present invention, the storage of transaction data is a continuous and frequent process, because the total transaction data volume generated by different transaction objects is huge, and when storing these transaction data in a dynamic process, it is also necessary to respond to the data access request of the transaction object or the related party to access the stored data, so the data volume in the uplink and downlink directions of the transaction data storage is huge. The hierarchical processing of the storage of transaction data can alleviate the storage of transaction data and also reduce the processing pressure of access requests on the stored data. From the analysis of transaction data based on transaction objects and considering the access depth of data access, it is necessary to trace back multiple storage cycles for the historical transaction data analyzed and processed, so that the acquisition of storage feature information for the transaction data of the transaction object will be more accurate, and the data required for access will be clearer, so as to consider the storage form when storing transaction data according to the access depth. The reason for the hierarchical processing of the storage of transaction data is the huge storage volume, so when considering the hierarchical storage processing, the main consideration is the amount of transaction data for hierarchical analysis, and the access to data is mainly considered to be the depth of access so as to better hierarchical storage processing of transaction data within a reasonable cycle range.

[0011] As a possible implementation method, the storage capacity of each transaction object in the first N storage cycles is analyzed to form storage capacity cache classification data, including: obtaining all transaction storage unit data of the transaction object in each storage cycle in the first N storage cycles, and determining the total transaction storage amount A generated by the transaction object in each storage cycle n , n represents the number corresponding to the first N storage cycles; set the cache storage capacity division threshold α, and store the first N transaction total A for each transaction object n Perform the following storage analysis to form storage cache classification data: If A n ≥α, all transaction storage unit data in the corresponding storage cycle are determined as cache storage unit data; if A n<α, then all transaction storage unit data in the corresponding storage period are determined as database storage unit data.

[0012] In the present invention, the cache classification of transaction data is based on the storage volume. Considering that the storage of transaction data is periodic, and the analysis of transaction data is also carried out in cycles in order to accurately grasp the characteristics of transaction data generated by different transaction objects, and considering that the access to the stored transaction data is determined based on the time unit, the storage cycle is used as the reference unit for storage volume analysis when analyzing the storage volume of transaction data. It can be understood that for transaction data with a large total storage volume, if the database is stored in real time, it will undoubtedly increase the storage pressure. At the same time, when accessing this part of the transaction data, it will also cause the pressure of database access processing. Therefore, transaction data with a large storage volume should be an important object of cache storage. Correspondingly, transaction data with a small total storage volume in the storage cycle is the main object for direct database storage because of the small storage pressure and easy to quickly access the corresponding data. In this way, the storage type division based on the total amount of transaction data of different transaction objects in the storage cycle makes the storage of transaction data more reasonable and clear. The cache storage volume division threshold can be determined according to needs, and can also be determined based on big data analysis, so that reasonable type division has been achieved.

[0013] As a possible implementation method, according to the storage capacity cache classification data, the access depth analysis of each transaction object in the storage cycle is performed to form the object transfer classification data, including: for each transaction object, obtaining the access depth that occurred in each storage cycle in the first N storage cycles, and determining the maximum access depth t that occurred in each storage cycle n ; Get all maximum access depths t corresponding to the first N storage cycles of the transaction object n , and determine the average access depth t0 of the transaction object, where Determine the time depth T0 of the storage cycle, and perform the following access depth analysis based on the average access depth t0 of different transaction objects and the storage cache classification data to form object transfer classification data: When t0≤T0, for the corresponding transaction object: if the transaction storage unit data on the Nth storage cycle is cache storage unit data, then the transaction storage unit data within the first N-1 storage cycles of the transaction object are stored in the database, and the transaction storage unit data on the Nth storage cycle of the transaction object are cached; if the transaction storage unit data on the Nth storage cycle is database storage unit data, then the transaction storage unit data within the first N-1 storage cycles of the transaction object are stored in the database, and the transaction storage unit data on the Nth storage cycle of the transaction object are cached; when t0>T0, determine the cycle span B of the average access depth t0, then for the corresponding transaction object, where, Express A further method of rounding the value is as follows: for the transaction object's most recent first B storage cycles, the transaction storage unit data determined as cache storage unit data are stored in the database, and access calibration is performed; the transaction storage unit data determined as database storage unit data are cached and stored, and access calibration is performed; the transaction storage unit data on other storage cycles of the transaction object are stored in the database.

[0014] In the present invention, after the total storage amount of the transaction object is divided into storage types based on the storage cycle, the storage type needs to be adjusted to a certain extent considering the depth of access to the transaction data. After all, even if the transaction data with a large storage amount generated in real time is cached to relieve the pressure of database storage, if the transaction data of most transaction objects is accessed at a deep depth, the amount of data accessed in the database is also huge, which will cause considerable pressure on the data storage of the database. It should be noted here that the adjustment of the storage type is mainly based on the access depth, but regardless of whether the transaction data will be accessed, the cached transaction data will always be transferred to the database for long-term storage. The access depth is determined by the time span of the storage cycle as a reference. When performing transfer analysis and judgment, it is worth noting that if the average access depth of the transaction data of the transaction object is accessed within a storage cycle, then whether there is a large total amount of transaction data or a small total amount of transaction data stored, it will be quickly accessed in a short time. Therefore, in order to reduce the frequency of database access, consider caching the transaction data with an average access depth less than the time span of the storage cycle first, and then transfer it to the database after determining that the accessed task is completed. After all, accessing and querying transaction data in the database will reduce the access efficiency due to the large amount of data in the database, while the cache stores less data and can quickly determine the accessed data. However, when the average access depth exceeds the storage cycle, if the corresponding transaction data with a large total storage volume is cached, the utilization rate of the cache storage space will be low due to the long-term occupation of the cache storage space. Therefore, when the average access depth exceeds the storage cycle, the transaction data with a large total storage volume is directly stored in the database and calibrated so that it can be quickly obtained when it is accessed.

[0015] As a possible implementation method, data is classified according to the storage capacity cache, and the access depth analysis of each transaction object within the storage cycle is performed to form object transfer classification data, including: for all transaction objects, all cache storage unit data for caching are obtained, and according to the storage capacity of the cache storage unit data, the average storage capacity D0 of the cache storage unit data is determined; for all transaction objects, all database storage unit data for caching are determined, and according to the database storage unit data, the total storage capacity D1 of the database storage unit data for cache storage is determined.

[0016] In the present invention, after completing the cache and database storage of different transaction data, it is necessary to obtain the average storage capacity of transaction data with larger storage capacity and the total storage capacity of transaction data with smaller storage capacity in the cache storage space. This is because the usage rate of the cache storage space is subsequently accurately analyzed and judged to ensure the rationality of the subsequent storage adjustment for insufficient cache storage space.

[0017] As a possible implementation method, the data storage space is monitored in real time, and a storage adjustment analysis is performed based on the storage margin of the data storage space to form storage adjustment analysis result data, including: setting a cache storage adjustment threshold β, and obtaining the real-time total storage amount G of the cache storage space for the following analysis and judgment: if G<β, then hierarchical storage retention information is formed; if G≥β, then a storage adjustment analysis is performed to form storage adjustment analysis processing information.

[0018] In the present invention, the adjustment of the storage data of the cache storage space is mainly based on the total cache storage volume monitored and determined in real time for analysis and judgment. The cache storage volume adjustment threshold can be determined according to actual needs or based on big data analysis.

[0019] As a possible implementation method, if G≥β, a storage adjustment analysis is performed to form storage adjustment analysis processing information, including: setting a storage adjustment analysis coefficient e, and e≥1, determining the remaining storage capacity F of the cache storage space, and performing the following analysis and judgment: when F≤(n*D0+D1)*e, a first storage adjustment analysis is performed on the transaction storage unit data in the cache storage space to form first storage adjustment analysis result information; when F>(n*D0+D1)*e, a second storage adjustment analysis is performed on the transaction storage unit data in the cache storage space to form second storage adjustment analysis result information.

[0020] In the present invention, when the total amount of cache storage exceeds the set threshold, an adjustment process based on the remaining storage size data is required. The parameters compared by the remaining storage are based on the situation that the total amount of storage of different transaction objects is large, and whether the cache space is satisfied. The analysis conditions of the remaining storage are different, and the corresponding storage adjustment analysis content is also different.

[0021] As a possible implementation method, a first storage adjustment analysis is performed on the transaction storage unit data in the cache storage space to form first storage adjustment analysis result information, including: for the transaction storage unit data determined as cache storage unit data in the cache storage space, the cache remaining waiting time to be accessed relative to the average access depth t0 corresponding to the cache storage unit data is determined; for all cache storage unit data in the cache storage space, the cache storage unit data are transferred to the database one by one in descending order according to the corresponding cache remaining waiting time to be accessed, and after each transfer, the real-time total storage amount G of the cache storage space is compared and judged until G<β; and the cache storage unit data that has undergone database transfer is marked for transfer.

[0022] In the present invention, for the case where the remaining storage capacity is low, considering that the cache storage space needs to provide cache space for the transaction data with a large total storage volume that has not been replaced in the next cycle and the current cycle, it is necessary to transfer the transaction data with a large storage capacity in the current cache storage space to quickly and reasonably reserve more cache space.

[0023] As a possible implementation, a second storage adjustment analysis is performed on the transaction storage unit data in the cache storage space to form second storage adjustment analysis result information, including: for the transaction storage unit data in the cache storage space determined as database storage unit data, according to the average access depth t0 corresponding to the database storage unit data, determining the database remaining waiting time for the database storage unit data relative to the average access depth t0 k is the number of different database storage unit data in the cache storage space; determine the storage amount S of transaction storage unit data determined as database storage unit data in the cache storage space; k ; For each database storage unit data, according to the corresponding database remaining waiting to be accessed length and storage capacity S k , determine the transfer reference value R k ,in: η1 represents the time dimension unification factor, η2 represents the storage dimension unification factor; according to the transfer reference value R k The corresponding database storage unit data are transferred one by one in order from large to small, and the real-time storage total amount G of the cache storage space is compared and judged after each transfer until G < β; the database storage unit data that undergoes database transfer is marked for transfer.

[0024] In the present invention, in the case where the remaining storage capacity is still large and cannot reach the preset value, it is considered that the existing transaction data with a large storage capacity in the cache storage has not been accessed, and if it is transferred, it will cause pressure on the database storage access. Therefore, based on the storage capacity and the remaining access time, the transaction data with a smaller storage capacity is transferred to ensure that the adjustment is made on the basis of minimizing the pressure on data access.

[0025] In a second aspect, the present invention provides an e-commerce and financial big data storage system based on artificial intelligence, which is applied to a data storage method based on big data as mentioned in the first aspect, including a transaction storage data collection unit, which is used to collect historical transaction storage data and real-time transaction storage data of different transaction objects; a hierarchical storage analysis unit, which is used to obtain the historical transaction storage data collected by the transaction storage data collection unit for analysis and storage analysis, and form object storage hierarchical processing data; a hierarchical storage processing unit, which is used to obtain the object storage hierarchical processing data formed by the hierarchical storage analysis unit, and perform hierarchical processing, and is used to obtain the real-time transaction storage data collected by the transaction storage data collection unit, and perform hierarchical storage processing according to the object storage hierarchical processing data; a cache storage unit, which is used to cache and store the transaction data hierarchically processed by the hierarchical storage processing unit; a database storage unit, which is used to store the transaction data hierarchically processed by the hierarchical storage processing unit in a database, and transfer the transaction data stored in the cache storage unit; a real-time monitoring transfer analysis processing unit, which is used to perform storage adjustment analysis on the storage margin of the cache storage unit, form storage adjustment analysis result data, and perform adjustment processing according to the storage adjustment analysis result data.

[0026] In the present invention, the system collects transaction data generated by different transaction objects through a collection unit, uses a hierarchical storage and analysis unit to implement storage analysis of the collected transaction data in a hierarchical cache, and hands it over to a hierarchical storage processing unit for storage processing of the hierarchical cache to relieve the storage pressure of the database storage unit. The cache storage unit greatly improves the transaction data storage mode, making the storage of transaction data more reasonable, and greatly facilitates access to stored data, improving access efficiency. The real-time monitoring transfer analysis processing unit can monitor the storage capacity of the cache storage unit for real-time caching, and timely adjust the storage capacity of the cache storage unit to ensure that it meets the needs of the new transaction data cache. The various units of the entire system are closely connected, providing an important material basis for efficient and reasonable customized transaction data storage.

[0027] The beneficial effects of the e-commerce and financial big data storage method and system based on artificial intelligence provided by the present invention are as follows:

[0028] This method combines historical transaction storage data to analyze the transaction characteristics of the transaction object, determines the transaction data characteristic information of different transaction objects, and establishes a reasonable periodic data storage model for the transaction object. On the one hand, it can realize personalized automatic storage of transaction data while fully grasping the transaction characteristics of different transaction objects. On the other hand, it also fully considers the storage characteristics of the transaction data of the transaction object to optimize the storage mode and provide a more reasonable, efficient and convenient storage method. In addition, based on the personalized data storage of the transaction object, the storage space is monitored in real time, and the real-time stored transaction data is reasonably adjusted and controlled according to the results of the monitoring and analysis, so as to ensure that the storage space can be optimized while meeting the requirements of efficient and reasonable storage, forming a storage form that is more conducive to efficient storage and convenient access.

[0029] The system collects transaction data generated by different transaction objects through the collection unit, uses the hierarchical storage and analysis unit to implement hierarchical cache storage and analysis of the collected transaction data, and hands it over to the hierarchical storage processing unit for hierarchical cache storage processing to relieve the storage pressure of the database storage unit. The cache storage unit greatly improves the transaction data storage mode, making the storage of transaction data more reasonable, and greatly facilitates the access to the stored data and improves the access efficiency. The real-time monitoring transfer analysis processing unit can monitor the storage capacity of the cache storage unit for real-time caching, and timely adjust the storage capacity of the cache storage unit to ensure that it meets the needs of the new transaction data cache. The various units of the entire system are closely connected, providing an important material basis for efficient and reasonable customized transaction data storage. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments of the present invention are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0031] Figure 1 A step diagram of a data storage method based on big data provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0032] The technical solutions in the embodiments of the present invention will be described below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0033] In the e-commerce field, the larger the platform, the greater the amount of transaction data generated. In order to ensure that the transaction information has legal traceability and facilitate timely inquiries by customers, service providers and merchants, it is necessary to store these transaction data. Such large transaction data also appears in the financial industry, thus bringing huge challenges to the storage operations of e-commerce and financial industries.

[0034] At present, most of the storage of e-commerce and financial transaction data is still simply to associate transaction objects and then put them into the data pool or store them as a whole in a designated database. On the one hand, there is no reasonable analysis and processing of transaction data to reduce the chaos of stored data and improve the systematic nature of data storage. On the other hand, since a large amount of transaction data is directly stored in the database at the first time, not only does it cause a huge storage volume, which makes it difficult to upload data, but it also increases the difficulty of accessing data later.

[0035] refer to Figure 1 , the embodiment of the present invention provides a data storage method based on big data, which determines the transaction data characteristic information of different transaction objects by combining historical transaction storage data to analyze based on the transaction characteristics of the transaction object, and establishes a reasonable periodic data storage model for the transaction object. On the one hand, it can realize the automatic storage of personalized transaction data while fully grasping the transaction characteristics of different transaction objects, and on the other hand, it also fully considers the storage characteristics of the transaction data of the transaction object to optimize the storage mode, and provides a more reasonable, efficient and convenient storage method. In addition, based on the personalized data storage of the transaction object, the storage space is monitored in real time, and the real-time stored transaction data is reasonably adjusted and controlled according to the results of the monitoring and analysis, so as to ensure that the storage space can be optimized while meeting the requirements of efficient and reasonable storage, forming a storage form that is more conducive to efficient storage and convenient access.

[0036] The data storage method based on big data specifically includes the following steps:

[0037] S1: Obtain the historical transaction storage data of all transaction objects, and perform hierarchical storage analysis based on the object-based storage information to form object storage hierarchical processing data.

[0038] Obtain historical transaction storage data of all transaction objects, and perform object-based storage information hierarchical storage analysis to form object storage hierarchical processing data, including: taking the transaction storage data formed by each transaction as the smallest data storage unit, collecting the storage data formed by each transaction of all transaction objects to form transaction storage unit data; obtaining multiple transaction storage unit data formed by different transaction objects in the previous N storage cycles, and associating the transaction storage unit data with the transaction objects; performing storage capacity analysis on each transaction object in the previous N storage cycles to form storage capacity cache classification data; performing access depth analysis on each transaction object in the storage cycle based on the storage capacity cache classification data to form object transfer classification data.

[0039] The storage of transaction data is a continuous and frequent process, because the total transaction data generated by different transaction objects is huge, and when storing these transaction data in a dynamic process, it is also necessary to respond to the data access request of the transaction object or the relevant party to access the stored data, so the data volume in the upstream and downstream directions of the transaction data storage is huge. The hierarchical processing of the storage of transaction data can alleviate the storage of transaction data and reduce the processing pressure of access requests on the stored data. From the analysis of transaction data based on transaction objects and considering the access depth of data access, the historical transaction data for analysis and processing needs to be traced back to multiple storage cycles, so that the acquisition of storage feature information for the transaction data of the transaction object will be more accurate, and the data required for access will be clearer, so as to consider the storage form when storing transaction data according to the access depth. The reason for the hierarchical processing of the storage of transaction data is the huge storage volume. Therefore, when considering hierarchical storage processing, the main consideration is the amount of transaction data for hierarchical analysis, while the access to data mainly considers the access depth to better hierarchical storage processing of transaction data within a reasonable cycle.

[0040] Perform storage analysis on each transaction object in the previous N storage cycles to form storage cache classification data, including: obtaining all transaction storage unit data of the transaction object in each storage cycle in the previous N storage cycles, and determining the total transaction storage amount A generated by the transaction object in each storage cycle n , n represents the number corresponding to the first N storage cycles; set the cache storage capacity division threshold α, and store the first N transaction total A for each transaction object n Perform the following storage analysis to form storage cache classification data: If A n ≥α, all transaction storage unit data in the corresponding storage cycle are determined as cache storage unit data; if A n <α, then all transaction storage unit data in the corresponding storage period are determined as database storage unit data.

[0041] The cache classification of transaction data is based on storage capacity. Considering that the storage of transaction data is periodic, and the analysis of transaction data is also carried out in cycles in order to accurately grasp the characteristics of transaction data generated by different transaction objects, and considering that the access to the stored transaction data is determined based on the time unit, the storage cycle is used as the reference unit for storage capacity analysis when analyzing the storage capacity of transaction data. It can be understood that for transaction data with a large total storage volume, if the database is stored in real time, it will undoubtedly increase the storage pressure. At the same time, when accessing this part of the transaction data, it will also cause database access processing pressure. Therefore, transaction data with a large storage volume should be an important object of cache storage. Correspondingly, transaction data with a small total storage volume in the storage cycle is the main object for direct database storage because it has less storage pressure and is easy to quickly access the corresponding data. In this way, the storage type division based on the total amount of transaction data of different transaction objects in the storage cycle makes the storage of transaction data more reasonable and clear. The cache storage volume division threshold can be determined as needed, or it can be determined based on big data analysis, and a reasonable type division has been achieved.

[0042] According to the storage capacity cache classification data, the access depth analysis of each transaction object in the storage cycle is performed to form the object transfer classification data, including: for each transaction object, obtaining the access depth that occurred in each storage cycle in the previous N storage cycles, and determining the maximum access depth t that occurred in each storage cycle n ; Get all maximum access depths t corresponding to the first N storage cycles of the transaction object n , and determine the average access depth t0 of the transaction object, where Determine the time depth T0 of the storage cycle, and perform the following access depth analysis based on the average access depth t0 of different transaction objects and the storage cache classification data to form object transfer classification data: When t0≤T0, for the corresponding transaction object: if the transaction storage unit data on the Nth storage cycle is cache storage unit data, then the transaction storage unit data within the first N-1 storage cycles of the transaction object are stored in the database, and the transaction storage unit data on the Nth storage cycle of the transaction object are cached; if the transaction storage unit data on the Nth storage cycle is database storage unit data, then the transaction storage unit data within the first N-1 storage cycles of the transaction object are stored in the database, and the transaction storage unit data on the Nth storage cycle of the transaction object are cached; when t0>T0, determine the cycle span B of the average access depth t0, then for the corresponding transaction object, where, Express A further method of rounding the value is as follows: for the transaction object's most recent first B storage cycles, the transaction storage unit data determined as cache storage unit data are stored in the database, and access calibration is performed; the transaction storage unit data determined as database storage unit data are cached and stored, and access calibration is performed; the transaction storage unit data on other storage cycles of the transaction object are stored in the database.

[0043] After dividing the total storage amount of transaction objects into storage types based on the storage cycle, the storage type needs to be adjusted to a certain extent considering the depth of access to transaction data. After all, even if caching transaction data with a large storage amount generated in real time can alleviate the pressure on database storage, if the transaction data of most transaction objects is accessed at a deep depth, the amount of data accessed in the database is also huge, which will cause considerable pressure on the data storage of the database. It should be noted here that the adjustment of storage types is mainly based on the access depth, but regardless of whether the transaction data will be accessed, the cached transaction data will always be transferred to the database for long-term storage. The access depth is determined based on the time span of the storage cycle as a reference. When performing transfer analysis and judgment, it is worth noting that if the average access depth of the transaction data of the transaction object is within a storage cycle, then whether there is a large total amount of transaction data or a small total amount of transaction data, it will be quickly accessed in a short time. Therefore, in order to reduce the frequency of database access, consider caching the transaction data with an average access depth less than the time span of the storage cycle first, and then transfer it to the database after the access task is completed. After all, accessing and querying transaction data in the database will reduce the access efficiency due to the large amount of data in the database, while the cache stores less data and can quickly determine the accessed data. However, when the average access depth exceeds the storage cycle, if the corresponding transaction data with a large total storage volume is cached, the utilization rate of the cache storage space will be low due to the long-term occupation of the cache storage space. Therefore, when the average access depth exceeds the storage cycle, the transaction data with a large total storage volume is directly stored in the database and calibrated so that it can be quickly obtained when it is accessed.

[0044] According to the storage capacity cache classification data, the access depth analysis of each transaction object within the storage cycle is performed to form object transfer classification data, including: for all transaction objects, all cache storage unit data for caching are obtained, and according to the storage capacity of the cache storage unit data, the average storage capacity D0 of the cache storage unit data is determined; for all transaction objects, all database storage unit data for caching are determined, and according to the database storage unit data, the total storage capacity D1 of the database storage unit data for caching is determined.

[0045] After completing the cache and database storage for different transaction data, it is necessary to obtain the average storage capacity of transaction data with larger storage capacity and the total storage capacity of transaction data with smaller storage capacity in the cache storage space. This is because the subsequent accurate analysis and judgment of the usage rate of the cache storage space ensures the rationality of the subsequent storage adjustment for insufficient cache storage space.

[0046] S2: Acquire the real-time transaction storage data of different transaction objects within the storage cycle, and perform hierarchical storage on the real-time transaction storage data according to the object storage hierarchical processing data.

[0047] After determining the transaction data types of different transaction objects, the transaction data within the analysis period is stored and processed in a hierarchical manner.

[0048] S3: Monitor the data storage space in real time, and perform storage adjustment analysis according to the storage margin of the data storage space to generate storage adjustment analysis result data.

[0049] The data storage space is monitored in real time, and storage adjustment analysis is performed according to the storage margin of the data storage space to form storage adjustment analysis result data, including: setting a cache storage adjustment threshold β, and obtaining the real-time total storage amount G of the cache storage space for the following analysis and judgment: if G<β, hierarchical storage retention information is formed; if G≥β, storage adjustment analysis is performed to form storage adjustment analysis processing information.

[0050] The adjustment of the storage data of the cache storage space is mainly based on the total cache storage volume determined by real-time monitoring. The cache storage volume adjustment threshold can be determined according to actual needs or based on big data analysis.

[0051] If G≥β, a storage adjustment analysis is performed to form storage adjustment analysis processing information, including: setting a storage adjustment analysis coefficient e, and e≥1, determining the remaining storage capacity F of the cache storage space, and performing the following analysis and judgment: when F≤(n*D0+D1)*e, a first storage adjustment analysis is performed on the transaction storage unit data in the cache storage space to form first storage adjustment analysis result information; when F>(n*D0+D1)*e, a second storage adjustment analysis is performed on the transaction storage unit data in the cache storage space to form second storage adjustment analysis result information.

[0052] When the total amount of cache storage exceeds the set threshold, it is necessary to adjust the remaining storage size data. The parameters for comparing the remaining storage are based on the situation that the total amount of storage of different transaction objects is large to determine whether the cache space is sufficient. The analysis conditions of the remaining storage are different, and the corresponding storage adjustment analysis content is also different.

[0053] A first storage adjustment analysis is performed on the transaction storage unit data in the cache storage space to form first storage adjustment analysis result information, including: for the transaction storage unit data determined as the cache storage unit data in the cache storage space, the cache remaining waiting time to be accessed relative to the average access depth t0 corresponding to the cache storage unit data is determined; for all the cache storage unit data in the cache storage space, the cache storage unit data are transferred to the database one by one in descending order according to the corresponding cache remaining waiting time to be accessed, and the real-time total storage amount G of the cache storage space is compared and judged after each transfer until G<β; and the cache storage unit data that has undergone database transfer is marked for transfer.

[0054] In the case of low remaining storage capacity, considering that the cache storage space needs to provide cache space for the next cycle and the transaction data with a large total storage volume that has not been replaced in this cycle, it is necessary to transfer the transaction data with a large storage volume in the current cache storage space to quickly and reasonably reserve more cache space.

[0055] Performing a second storage adjustment analysis on the transaction storage unit data in the cache storage space to form second storage adjustment analysis result information, including: determining the remaining database waiting time for the database storage unit data relative to the average access depth t0 according to the average access depth t0 corresponding to the database storage unit data for the transaction storage unit data in the cache storage space. k is the number of different database storage unit data in the cache storage space; determine the storage amount S of transaction storage unit data determined as database storage unit data in the cache storage space; k ; For each database storage unit data, according to the corresponding database remaining waiting to be accessed length and storage capacity S k , determine the transfer reference value R k ,in: η1 represents the time dimension unification factor, η2 represents the storage dimension unification factor; according to the transfer reference value R k The corresponding database storage unit data are transferred one by one in order from large to small, and the real-time storage total amount G of the cache storage space is compared and judged after each transfer until G < β; the database storage unit data that undergoes database transfer is marked for transfer.

[0056] In the case where the remaining storage volume is still large and cannot reach the preset value, it is considered that the existing transaction data with a large storage volume in the cache storage has not been accessed. If it is transferred, it will cause pressure on the database storage access. Therefore, based on the storage volume and the remaining access time, the transaction data with a smaller storage volume is transferred to ensure that the pressure on data access is reduced as much as possible.

[0057] S4: Adjust the data storage space according to the storage adjustment analysis result data.

[0058] After obtaining reasonable adjustment analysis results, the cache storage space is adjusted and released to provide timely storage space for subsequent transaction data cache, which is conducive to ensuring the stability and continuity of the cache storage method.

[0059] The present invention also provides an e-commerce and financial big data storage system based on artificial intelligence. The system adopts the data storage method based on big data provided by the present invention, including a transaction storage data collection unit, which is used to collect historical transaction storage data and real-time transaction storage data of different transaction objects; a hierarchical storage analysis unit, which is used to obtain the historical transaction storage data collected by the transaction storage data collection unit for analysis and storage analysis, and form object storage hierarchical processing data; a hierarchical storage processing unit, which is used to obtain the object storage hierarchical processing data formed by the hierarchical storage analysis unit, and perform hierarchical processing, and is used to obtain the real-time transaction storage data collected by the transaction storage data collection unit, and perform hierarchical storage processing according to the object storage hierarchical processing data; a cache storage unit, which is used to cache and store the transaction data hierarchically processed by the hierarchical storage processing unit; a database storage unit, which is used to store the transaction data hierarchically processed by the hierarchical storage processing unit in a database, and transfer the transaction data stored in the cache storage unit; a real-time monitoring transfer analysis processing unit, which is used to perform storage adjustment analysis on the storage margin of the cache storage unit, form storage adjustment analysis result data, and perform adjustment processing according to the storage adjustment analysis result data.

[0060] The system collects transaction data generated by different transaction objects through the collection unit, uses the hierarchical storage and analysis unit to implement hierarchical cache storage and analysis of the collected transaction data, and hands it over to the hierarchical storage processing unit for hierarchical cache storage processing to relieve the storage pressure of the database storage unit. The cache storage unit greatly improves the transaction data storage mode, making the storage of transaction data more reasonable, and greatly facilitates the access to the stored data and improves the access efficiency. The real-time monitoring transfer analysis processing unit can monitor the storage capacity of the cache storage unit for real-time caching, and timely adjust the storage capacity of the cache storage unit to ensure that it meets the needs of the new transaction data cache. The various units of the entire system are closely connected, providing an important material basis for efficient and reasonable customized transaction data storage.

[0061] In summary, the data storage method and system based on big data provided by the embodiments of the present invention have the following beneficial effects:

[0062] This method combines historical transaction storage data to analyze the transaction characteristics of the transaction object, determines the transaction data characteristic information of different transaction objects, and establishes a reasonable periodic data storage model for the transaction object. On the one hand, it can realize personalized automatic storage of transaction data while fully grasping the transaction characteristics of different transaction objects. On the other hand, it also fully considers the storage characteristics of the transaction data of the transaction object to optimize the storage mode and provide a more reasonable, efficient and convenient storage method. In addition, based on the personalized data storage of the transaction object, the storage space is monitored in real time, and the real-time stored transaction data is reasonably adjusted and controlled according to the results of the monitoring and analysis, so as to ensure that the storage space can be optimized while meeting the requirements of efficient and reasonable storage, forming a storage form that is more conducive to efficient storage and convenient access.

[0063] The system collects transaction data generated by different transaction objects through the collection unit, uses the hierarchical storage and analysis unit to implement hierarchical cache storage and analysis of the collected transaction data, and hands it over to the hierarchical storage processing unit for hierarchical cache storage processing to relieve the storage pressure of the database storage unit. The cache storage unit greatly improves the transaction data storage mode, making the storage of transaction data more reasonable, and greatly facilitates the access to the stored data and improves the access efficiency. The real-time monitoring transfer analysis processing unit can monitor the storage capacity of the cache storage unit for real-time caching, and timely adjust the storage capacity of the cache storage unit to ensure that it meets the needs of the new transaction data cache. The various units of the entire system are closely connected, providing an important material basis for efficient and reasonable customized transaction data storage.

[0064] In the present invention, "at least one" means one or more, and "more than one" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0065] It should be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean 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 the present invention.

[0066] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0067] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0068] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

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

[0070] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0071] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

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

[0073] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for those of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A data storage method based on big data, It is characterized in that include: Obtain the historical transaction storage data of all transaction objects, and perform hierarchical storage analysis based on the object storage information to form object storage hierarchical processing data; Acquire real-time transaction storage data of different transaction objects within a storage period, and perform hierarchical storage on the real-time transaction storage data according to the object storage hierarchical processing data; Real-time monitoring of the data storage space, and performing storage adjustment analysis according to the storage margin of the data storage space to form storage adjustment analysis result data; The data storage space is adjusted according to the storage adjustment analysis result data.

2. The data storage method based on big data according to claim 1, It is characterized in that The acquisition of historical transaction storage data of all transaction objects and the hierarchical storage analysis of the storage information based on the objects to form object storage hierarchical processing data include: Taking the transaction storage data generated by each transaction as the smallest data storage unit, the storage data generated by each transaction of all the transaction objects are collected to form transaction storage unit data; Acquire a plurality of transaction storage unit data formed by different transaction objects in the first N storage cycles, and associate the transaction storage unit data with the transaction objects; Performing storage capacity analysis on each of the transaction objects in the first N storage cycles to form storage capacity cache classification data; The classified data is cached according to the storage capacity, and the access depth analysis is performed on each of the transaction objects within the storage period to form object transfer classified data.

3. The data storage method based on big data according to claim 2, It is characterized in that The performing of storage capacity analysis on each transaction object in the first N storage cycles to form storage capacity cache classification data includes: Obtain all the transaction storage unit data of the transaction object in each storage cycle in the first N storage cycles, and determine the total transaction storage amount A generated by the transaction object in each storage cycle n , n represents the numbers corresponding to the first N storage cycles; Set the cache storage capacity division threshold α, and store the total amount A of the first N transactions of each transaction object. n The following storage analysis is performed to form the storage cache classification data: If A n ≥α, all the transaction storage unit data corresponding to the storage period are determined as cache storage unit data; If A n <α, then all the transaction storage unit data corresponding to the storage period are determined as database storage unit data.

4. The data storage method based on big data according to claim 3, It is characterized in that The caching classification data according to the storage amount, performing access depth analysis on each transaction object within the storage period, and forming object transfer classification data, includes: For each of the transaction objects, the access depth occurring in each of the storage cycles in the first N storage cycles is obtained, and the maximum access depth t occurring in each storage cycle is determined. n ; Obtain all the maximum access depths t corresponding to the first N storage cycles of the transaction object n , and determine the average access depth t of the transaction object 0 ,in, Determine the time depth T of the storage cycle 0 , and according to the average access depth t of different transaction objects 0 The storage cache classification data is analyzed for the following access depth to form the object transfer classification data: When t 0 ≤T 0 , then for the corresponding transaction object: If the transaction storage unit data in the Nth storage cycle is the cache storage unit data, the transaction storage unit data in the first N-1 storage cycles of the transaction object are stored in the database, and the transaction storage unit data in the Nth storage cycle of the transaction object are stored in the cache; If the transaction storage unit data in the Nth storage cycle is database storage unit data, the transaction storage unit data in the first N-1 storage cycles of the transaction object are stored in the database, and the transaction storage unit data in the Nth storage cycle of the transaction object are stored in the cache; When t 0 >T 0 , determine the average access depth t 0 The period span B, then for the corresponding transaction object, Express A further method to round the value of : For the most recent B storage cycles of the transaction object, the transaction storage unit data determined as the cache storage unit data will be stored in the database and access calibration will be performed; the transaction storage unit data determined as the database storage unit data will be cached and access calibration will be performed; the transaction storage unit data in other storage cycles of the transaction object will be stored in the database.

5. The data storage method based on big data according to claim 4, It is characterized in that The caching classification data according to the storage amount, performing access depth analysis on each transaction object within the storage period, and forming object transfer classification data, includes: For all the transaction objects, all the cache storage unit data to be cached are obtained, and according to the storage capacity of the cache storage unit data, the average storage capacity D of the cache storage unit data is determined. 0 ; For all the transaction objects, all the database storage unit data to be cached are determined, and based on the database storage unit data, a total storage volume D of the database storage unit data to be cached is determined. 1 .

6. The data storage method based on big data according to claim 5, It is characterized in that The real-time monitoring of the data storage space and the storage adjustment analysis based on the storage margin of the data storage space to form storage adjustment analysis result data include: Set the cache storage adjustment threshold β and obtain the real-time total storage volume G of the cache storage space to perform the following analysis and judgment: If G < β, a hierarchical storage is formed to hold information; If G≥β, storage adjustment analysis is performed to form storage adjustment analysis processing information.

7. The data storage method based on big data according to claim 6, It is characterized in that If G≥β, then storage adjustment analysis is performed to form storage adjustment analysis processing information, including: The storage adjustment analysis coefficient e is set, and e≥1, the remaining storage capacity F of the cache storage space is determined, and the following analysis and judgment are performed: When F≤(n*D 0 +D 1 )*e, performing a first storage adjustment analysis on the transaction storage unit data in the cache storage space to form first storage adjustment analysis result information; When F>(n*D 0 +D 1 )*e, then a second storage adjustment analysis is performed on the transaction storage unit data in the cache storage space to form second storage adjustment analysis result information.

8. The data storage method based on big data according to claim 7, It is characterized in that The performing a first storage adjustment analysis on the transaction storage unit data in the cache storage space to form first storage adjustment analysis result information includes: For the transaction storage unit data determined as the cache storage unit data in the cache storage space, according to the average access depth t corresponding to the cache storage unit data 0 Determine the cache storage unit data relative to the average access depth t 0 The remaining waiting time for the cache to be accessed; For all the cache storage unit data in the cache storage space, the cache storage unit data are transferred to the database one by one according to the corresponding cache remaining waiting time to be accessed from large to small, and the real-time storage total amount G of the cache storage space is compared and judged after each transfer until G<β; The cache storage unit data that has undergone database transfer is marked for transfer.

9. The data storage method based on big data according to claim 8, It is characterized in that The performing a second storage adjustment analysis on the transaction storage unit data in the cache storage space to form second storage adjustment analysis result information includes: For the transaction storage unit data determined as the database storage unit data in the cache storage space, according to the average access depth t corresponding to the database storage unit data 0 Determine the database storage unit data relative to the average access depth t 0 The remaining waiting time for the database to be accessed is T s k pa , k is the serial number of different database storage unit data in the cache storage space; Determine the storage amount S of the transaction storage unit data determined as the database storage unit data in the cache storage space k ; For each unit of data stored in the database, the corresponding remaining waiting time for access to the database and the storage capacity S k , determine the transfer reference value R k ,in: η 1 represents the time dimension unification factor, η 2 Unification factor for storage dimension quantity; Transfer the reference value R as described k The corresponding database storage unit data are transferred to the database one by one in order from large to small, and the real-time storage total amount G of the cache storage space is compared and judged after each transfer, until G<β; The database storage unit data that has undergone database transfer is marked for transfer.

10. A data storage system based on big data, using the data storage method based on big data according to any one of claims 1 to 9, It is characterized in that include: A transaction storage data collection unit, used to collect historical transaction storage data and real-time transaction storage data of different transaction objects; A hierarchical storage analysis unit, used to obtain the historical transaction storage data collected by the transaction storage data collection unit for analysis and storage analysis to form object storage hierarchical processing data; a hierarchical storage processing unit, used to obtain the object storage hierarchical processing data formed by the hierarchical storage analysis unit and perform hierarchical processing, and to obtain the real-time transaction storage data collected by the transaction storage data collection unit and perform hierarchical storage processing according to the object storage hierarchical processing data; a cache storage unit, used for caching and storing the transaction data hierarchically processed by the hierarchical storage processing unit; A database storage unit, used to store the transaction data hierarchically processed by the hierarchical storage processing unit in a database, and to transfer the transaction data stored by the cache storage unit; The real-time monitoring transfer analysis processing unit is used to perform storage adjustment analysis on the storage margin of the cache storage unit, form storage adjustment analysis result data, and perform adjustment processing according to the storage adjustment analysis result data.