Data screening method and device, equipment and storage medium

By obtaining sample data from the data to be processed, determining and adjusting the logical unit sorting of the data filtering algorithm, the data filtering process is optimized, the problem of limited data filtering efficiency in the existing technology is solved, and the system is realized without increasing hardware resources. Efficient data filtering under.

CN118747181APending Publication Date: 2024-10-08SHENZHEN WORKEC TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410807846.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

The existing technology is difficult to effectively optimize the data screening algorithm without increasing hardware resources, resulting in limited data screening efficiency and the inability to further improve the efficiency of data processing.

Method used

By obtaining multiple sample data from the data to be processed, the filtering results and filtering time of each logical unit in the preset data filtering algorithm for the sample data are determined, and the data filtering algorithm is adjusted according to the sorting of different logical units to optimize the data filtering process. Obtain the shortest total duration, thereby improving data filtering efficiency.

Benefits of technology

It is possible to significantly improve data screening efficiency by optimizing the data screening algorithm without increasing hardware resources, reduce the screening time of data to be processed, and improve the efficiency of data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118747181A_ABST
    Figure CN118747181A_ABST
Patent Text Reader

Abstract

The invention provides a data screening method and device, equipment and a storage medium, relates to the field of data processing, and is used for improving the data screening efficiency. The method comprises the steps of obtaining multiple pieces of sample data from to-be-processed data; and for any sample data in the multiple pieces of sample data, determining a screening result and a screening duration of each logic unit on the sample data in a preset data screening algorithm. And according to the screening result and the screening duration of each piece of sample data by each logic unit, determining a first total duration of screening the plurality of pieces of sample data in sequence under the condition of sorting different logic units by a preset data screening algorithm to obtain a plurality of first total durations. Furthermore, a preset data screening algorithm is adjusted according to the target logic unit sequence, a target data screening algorithm is obtained, the to-be-processed data is screened based on the target data screening algorithm, and the target logic unit sequence corresponds to the shortest first total duration in the multiple first total durations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing, and in particular to a data screening method, device, equipment and storage medium. Background Art

[0002] With the development of big data environment, data is rapidly accumulated. It is very important to analyze the value contained in the massive data and filter out the valuable data. The purpose of data screening is to improve the availability of previously collected and stored related data, which is more conducive to later data analysis. Therefore, data screening plays a vital role in the entire data processing process.

[0003] At present, the efficiency of data screening can be improved by increasing hardware resources, but this will also lead to a corresponding increase in costs. Without increasing hardware resources, methods such as increasing data queues and compressing data are often used to improve the efficiency of data screening by increasing the utilization rate of existing hardware resources. There is a lack of solutions to optimize the data screening algorithm itself, which makes it impossible to further improve the efficiency of data screening. Summary of the invention

[0004] The present application proposes a data screening method, device, equipment and storage medium for optimizing a data screening algorithm and improving the efficiency of data screening.

[0005] In order to achieve the above purpose, this application adopts the following technical solutions:

[0006] In a first aspect, a data screening method is provided, the method comprising: a data screening device obtains a plurality of sample data from the data to be processed; and for any one of the plurality of sample data, determines the screening result and screening duration of each logical unit in the preset data screening algorithm for the sample data. Further, the data screening device determines the first total duration for the preset data screening algorithm to sequentially screen the plurality of sample data under different logical unit sorting conditions according to the screening result and screening duration of each logical unit for each sample data, and obtains a plurality of first total durations corresponding to the plurality of logical unit sortings. Further, the data screening device adjusts the preset data screening algorithm according to the target logical unit sorting, obtains the target data screening algorithm, and screens the data to be processed based on the target data screening algorithm, and the target logical unit sorting corresponds to the shortest first total duration among the plurality of first total durations.

[0007] In the data screening method provided in the present application, by determining the shortest screening time of the data screening algorithm for multiple sample data, a target data screening algorithm with higher screening efficiency for multiple sample data can be obtained. Since the multiple sample data are sampled from the data to be processed, they can reflect the characteristics of the data in the batch of data to be processed to a certain extent. Therefore, based on the optimized target data screening algorithm, it is possible to improve the screening efficiency of the messages to be processed by optimizing the data screening algorithm.

[0008] In a possible design, when there is a first logical unit in which multiple sub-logical units are nested in multiple logical units, the data screening method further includes: the data screening device determines the second total time for the first logical unit to sequentially screen multiple sample data in different sub-logical unit sorting conditions according to the screening results and screening time of each sub-logical unit in the multiple sub-logical units, and obtains multiple second total time corresponding to the sorting of the multiple sub-logical units. Further, the data screening device adjusts the first logical unit according to the sub-logical unit sorting corresponding to the shortest second total time among the multiple second total time.

[0009] In this design, in a logic unit with multiple nested sub-logic units, the efficiency of screening and processing sample data is optimized by sorting the sub-logic units inside the logic unit, thereby further improving the efficiency of the data screening algorithm in screening and processing the data to be processed.

[0010] In a possible design, the data screening device determines the first total time for the preset data screening algorithm to sequentially screen multiple sample data in different logical unit sortings based on the screening results and screening time of each logical unit for each sample data, including: the data screening device determines the sample data to be screened corresponding to each logical unit for any one of the multiple logical unit sortings based on the logical unit sorting and the screening results of the sample data for each logical unit in the preset data screening algorithm. Furthermore, the data screening device determines the third total time corresponding to any one of the multiple logical units based on the screening time of the sample data to be screened; and determines the sum of the third total time corresponding to each of the multiple logical units as the first total time corresponding to the logical unit sorting.

[0011] In this design, it is realized how to determine the total time for the data screening algorithm to screen multiple sample data under different logical unit sorting, providing support for the subsequent determination of the target logical unit sorting based on the first total time.

[0012] In a possible design, the data screening device determines the sample data to be screened corresponding to each logical unit according to the logical unit sorting and the screening result of the sample data by each logical unit in the preset data screening algorithm, including: when the screening result of the second logical unit on the first sample data is that the data is unavailable, the data screening device determines that the sample data to be screened corresponding to the third logical unit does not include the first sample data; the second logical unit and the third logical unit are any two of the multiple logical units, and the second logical unit is before the third logical unit in the logical unit sorting.

[0013] In this design, when counting the total time taken to sort and filter multiple sample data by different logical units, it is ensured that the logical units will not recalculate the time for previously discarded data, thereby avoiding incorrect statistical time and resulting in a failure to obtain a more efficient data filtering algorithm.

[0014] In a possible design, the data screening device obtains a plurality of sample data from the data to be processed, including: the data screening device obtains a plurality of sample data from the data to be processed based on a preset random sampling algorithm.

[0015] In a second aspect, a data screening device is provided, comprising an acquisition unit, a determination unit and a processing unit. The acquisition unit is used to acquire multiple sample data from the data to be processed. The determination unit is used to determine, for any one of the multiple sample data, the screening result and screening duration of each logical unit in the preset data screening algorithm for the sample data. The determination unit is also used to determine, based on the screening result and screening duration of each logical unit for each sample data, the first total duration for the preset data screening algorithm to sequentially screen the multiple sample data under different logical unit sortings, and obtain multiple first total durations corresponding to the multiple logical unit sortings. The processing unit is used to adjust the preset data screening algorithm according to the target logical unit sorting, obtain the target data screening algorithm, and screen the data to be processed based on the target data screening algorithm, and the target logical unit sorting corresponds to the shortest first total duration among the multiple first total durations.

[0016] In a possible design, when there is a first logical unit in which multiple sub-logical units are nested among multiple logical units, the determination unit is further used to determine, based on the screening results and screening duration of each sub-logical unit in the multiple sub-logical units for each sample data, the second total duration for the first logical unit to sequentially screen the multiple sample data when the sub-logical units are sorted differently, to obtain multiple second total durations corresponding to the sorting of the multiple sub-logical units. The processing unit is further used to adjust the first logical unit according to the sub-logical unit sorting corresponding to the shortest second total duration among the multiple second total durations.

[0017] In one possible design, a determination unit is specifically used to determine, for any one of a plurality of logical unit sortings, the sample data to be screened corresponding to each logical unit according to the logical unit sorting and the screening result of the sample data by each logical unit in a preset data screening algorithm; for any one of the plurality of logical units, a third total time corresponding to the logical unit is determined according to the screening time of the sample data to be screened; and the sum of the third total time corresponding to each of the plurality of logical units is determined as the first total time corresponding to the logical unit sorting.

[0018] In one possible design, the determination unit is specifically used to determine that, when the filtering result of the second logical unit on the first sample data is that the data is unavailable, the sample data to be filtered corresponding to the third logical unit does not include the first sample data; the second logical unit and the third logical unit are any two of the multiple logical units, and the second logical unit is before the third logical unit in the logical unit sorting.

[0019] In one possible design, the acquisition unit is specifically used to acquire multiple sample data from the data to be processed based on a preset random sampling algorithm.

[0020] In a third aspect, a data screening device is provided, which includes a memory and a processor; the memory and the processor are coupled, the memory is used to store computer program code, the computer program code includes computer instructions, and when the processor executes the computer instructions, the data screening device executes the data screening method provided by the first aspect or any possible design thereof.

[0021] In a fourth aspect, a computer-readable storage medium is provided, in which instructions are stored. When the instructions are executed on a data screening device, the data screening device executes the data screening method provided in the first aspect or any possible implementation thereof.

[0022] In a fifth aspect, a computer program product is provided, which includes computer instructions. When the computer instructions are executed on a data screening device, the data screening device executes the data screening method provided in the first aspect or any possible implementation thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 A logical diagram of a data screening algorithm provided in an embodiment of the present application Figure 1 ;

[0024] Figure 2 A data screening method process diagram provided in an embodiment of the present application Figure 1 ;

[0025] Figure 3 A logical diagram of a data screening algorithm provided in an embodiment of the present application Figure 2 ;

[0026] Figure 4 A logical diagram of a data screening algorithm provided in an embodiment of the present application Figure 3 ;

[0027] Figure 5 A data screening method process diagram provided in an embodiment of the present application Figure 2 ;

[0028] Figure 6 A schematic diagram of the structure of a data screening device provided in an embodiment of the present application;

[0029] Figure 7 A schematic diagram of a data screening device structure provided in an embodiment of the present application Figure 1 ;

[0030] Figure 8 A schematic diagram of a data screening device structure provided in an embodiment of the present application Figure 2 . DETAILED DESCRIPTION

[0031] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0032] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0033] In the description of this application, unless otherwise specified, " / " means "or", for example, A / B can mean A or B. "And / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, "at least one" and "plurality" refer to two or more. The words "first", "second", etc. do not limit the quantity and execution order, and the words "first", "second", etc. do not limit them to be different.

[0034] In related technologies, such as Figure 1As shown, the data screening algorithm includes multiple logical units, such as logical unit A, logical unit B and logical unit C. The data will be screened by logical unit A, logical unit B and logical unit C. If the screening result after screening by any logical unit is that the data is unavailable (F), the data will be discarded and the next data will be processed; if the screening result after screening by the logical unit is that the data is available (N), it will continue to be passed backward until it is determined that the data is available through all logical units, then the data will be stored and the next data will be processed.

[0035] Among them, logic unit A is exemplified as an if(A) statement, logic unit B is exemplified as an if(B) statement, and logic unit C is exemplified as an if(C) statement, which are respectively used to determine whether the data currently entering the logic unit is available data, and the processing time required for the logic unit to move the data judgment.

[0036] At present, in order to improve the efficiency of the data screening algorithm and speed up the data processing, before the data is screened by the data screening algorithm, the screening results of each logical unit will be counted, and the logical units will be sorted according to the number of unavailable data included in the screening results. In this way, unavailable data can be discarded as early as possible, reducing the amount of data that needs to be screened by subsequent logical units.

[0037] However, if a certain data is determined as unavailable by multiple logical units, when statistics are performed, only the screening results of the logical units ranked first are counted as unavailable, and the screening results of the logical units ranked later cannot be determined, resulting in the inability to accurately obtain the screening results of the logical units for the data to be processed, which leads to limited optimization effects on the screening algorithm. In addition, it takes a certain amount of time to filter and discard a large amount of data in a certain logical unit. If the ranking is too high, it may increase the screening time of the data screening algorithm for the data to be processed.

[0038] To solve the above problems, the present application proposes a data screening method, device, equipment and storage medium, wherein the data screening device obtains multiple sample data from the data to be processed; and for any one of the multiple sample data, determines the screening result and screening duration of each logical unit in the preset data screening algorithm for the sample data. Further, the data screening device determines the first total duration for the preset data screening algorithm to sequentially screen the multiple sample data under different logical unit sorting conditions based on the screening result and screening duration of each logical unit for each sample data, and obtains multiple first total durations corresponding to the multiple logical unit sortings. Further, the data screening device adjusts the preset data screening algorithm according to the target logical unit sorting to obtain the target data screening algorithm, and screens the data to be processed based on the target data screening algorithm, and the target logical unit sorting corresponds to the shortest first total duration among the multiple first total durations.

[0039] In this way, in the data screening method provided by the present application, by determining the shortest screening time of the data screening algorithm for multiple sample data, a target data screening algorithm with higher screening efficiency for multiple sample data can be obtained. Since the multiple sample data are sampled from the data to be processed, they can reflect the characteristics of the data in the batch of data to be processed to a certain extent. Therefore, based on the optimized target data screening algorithm, it is possible to improve the screening efficiency of the messages to be processed by optimizing the data screening algorithm.

[0040] Figure 2 The flowchart of a data screening method according to some exemplary embodiments is shown. The embodiment of the present application takes the data screening method applied to a data screening device as an example to illustrate the above data screening method.

[0041] like Figure 2 As shown, the data screening method provided in the embodiment of the present application includes the following S201-S205.

[0042] S201. The data screening device obtains a plurality of sample data from the data to be processed.

[0043] As a possible implementation manner, the data screening device obtains a plurality of sample data from the data to be processed based on a preset random sampling algorithm in response to the input data to be processed.

[0044] Among them, the data to be processed can be single-queue data, and the preset random sampling algorithm can be set in advance by the operation and maintenance personnel in the data screening device. For example, the preset random sampling algorithm can be a random number algorithm, a reservoir sampling algorithm, etc., and the embodiment of the present application does not make specific limitations on this.

[0045] S202: For any one sample data among the plurality of sample data, the data screening device determines the screening result and screening duration of the sample data by each logic unit in the preset data screening algorithm.

[0046] As a possible implementation method, for any sample data among the multiple sample data obtained from the above step S201, the data screening device screens the sample data based on a preset data screening algorithm, thereby obtaining the screening results and screening time of the sample data by each logical unit in the preset data screening algorithm.

[0047] It should be noted that the preset data screening algorithm can be as follows: Figure 1 The data screening algorithm shown is pre-set in the data screening device by the operation and maintenance personnel, and the preset data screening algorithm is modified to obtain the modified preset data screening algorithm as shown in FIG. Figure 3 As shown, in the modified preset data screening algorithm, when a certain logic unit screens the sample data, the timestamp of the starting time is recorded, and after obtaining the screening result of the sample data, the timestamp of the ending time is recorded, and the timestamp of the starting time, the timestamp of the ending time and the screening result are spliced ​​together, so as to obtain the screening result and screening duration of the sample data by the logic unit.

[0048] For example, the timestamp recorded at the start time is record: "1713498818000", and the timestamp recorded at the end time is record: "1713498819000", and the filtering result is F (data unavailable), then after splicing, the record is obtained: "1713498818000&1713498819000F", so that the filtering time of the logical unit for the sample data can be obtained according to the timestamp of the start time and the timestamp of the end time.

[0049] In addition, the modification of the preset data screening algorithm also includes continuing to flow downward regardless of whether the screening result of the logic unit for the sample data is N (data available) or F (data unavailable), so that the logic units sorted later can still screen and process the sample data, and statistically analyze the screening results and screening time of the sample data by the logic units sorted later.

[0050] It can be understood that the modified preset data filtering algorithm obtained by modifying the preset data filtering algorithm can obtain the filtering results and filtering time of each sample data by each logical unit by performing one screening process on multiple sample data, thereby improving the efficiency of the screening results and screening time obtained by the statistical logic unit through screening the sample data.

[0051] S203. The data screening device determines, based on the screening results and screening duration of each logical unit for each sample data, a first total duration for sequentially screening the multiple sample data with a preset data screening algorithm in different logical unit sorting conditions, and obtains multiple first total durations corresponding one-to-one to the sorting of the multiple logical units.

[0052] As a possible implementation method, for any one of the multiple logical unit sortings, the data screening device determines the sample data to be screened corresponding to each logical unit according to the logical unit sorting and the screening result of the sample data for each logical unit in the preset data screening algorithm.

[0053] Among them, when the screening result of the second logical unit on the first sample data is that the data is unavailable, it is determined that the first sample data is not included in the sample data to be screened corresponding to the third logical unit; the second logical unit and the third logical unit are any two of the multiple logical units, and the second logical unit is before the third logical unit in the logical unit sorting.

[0054] For example, if the multiple sample data include data 1, data 2, data 3, and data 4. The screening result of logical unit A for data 1 is that data is unavailable, and the screening result for data 2, 3, and 4 is that data is available, the screening result of logical unit B for data 2 is that data is unavailable, and the screening result for data 1, 3, and 4 is that data is available, and the screening result of logical unit C for data 3 is that data is unavailable, and the screening result for data 1, 2, and 4 is that data is available. Then, in the case where the logical units are sorted as logical unit C, logical unit A, and logical unit B, the sample data to be screened corresponding to logical unit C are data 1, 2, 3, and 4, the sample data to be screened corresponding to logical unit A are data 1, 2, and 4, and the sample data to be screened corresponding to logical unit B are data 2 and 4.

[0055] Furthermore, for any one of the multiple logical units, the data screening device determines a third total duration corresponding to the logical unit according to the screening duration of the sample data to be screened.

[0056] For example, based on the above example, if the durations of screening of multiple sample data by the logic unit A are t A1 ,t A2 ,t A3 ,t A4 , the duration of screening of multiple sample data by logic unit B is t B1 ,t B2 ,t B3 ,t B4 , the duration of screening of multiple sample data by logic unit C is t C1 ,t C2 ,tC3 ,t C4 The data screening device then determines that the third total duration corresponding to the logic unit A is T A =t A1 +t A2 +t A4 , the third total duration corresponding to logic unit B is T B =t B2 +t B4 , the third total duration corresponding to logic unit C is T C =t C1 +t C2 +t C3 +t C4 .

[0057] Furthermore, the data screening device determines the sum of the third total durations corresponding to each logical unit in the multiple logical units as the first total duration corresponding to the logical unit sorting.

[0058] Exemplarily, based on the above example, when the logical units are arranged as logical unit C, logical unit A, and logical unit B, the first total duration T corresponding to the logical unit arrangement is CAB =T A +T B +T C .

[0059] It should be noted that for any one of the multiple logical unit sortings, for example, the sorting of logical units in the above example also includes ABC, ACB, BAC, BCA, and CBA, the above steps can be used to first determine the sample data to be screened corresponding to each logical unit, and then determine the third total duration corresponding to each logical unit, so as to obtain the first total duration corresponding to the logical unit sorting, which will not be repeated here.

[0060] In some embodiments, after obtaining the first total duration corresponding to each logical unit sorting, the data screening device generates and stores a screening duration table as shown in Table 1 below.

[0061] Table 1: Screening duration table

[0062] Logical unit sorting Screening time ABC <![CDATA[T ABC ]]> ACB <![CDATA[T ACB ]]> BAC <![CDATA[T BAC ]]> BCA <![CDATA[T BCA ]]> CAB <![CDATA[T CAB ]]> CBA <![CDATA[T CBA ]]>

[0063] S204: The data screening device adjusts the preset data screening algorithm according to the target logical unit sorting to obtain a target data screening algorithm.

[0064] The target logic unit sequence corresponds to the shortest first total duration among the multiple first total durations.

[0065] As a possible implementation, the data screening device determines the shortest first total duration among the multiple logical unit sequences obtained in step S203 according to the one-to-one corresponding multiple first total durations, and determines the logical unit sequence corresponding to the shortest first total duration as the target logical unit sequence. Further, the data screening device adjusts the preset data screening algorithm based on the target logical unit sequence to obtain the target data screening algorithm, and the logical unit sequence in the target data screening algorithm is consistent with the target logical unit sequence.

[0066] For example, based on the corresponding relationship between the logical unit order and the screening time shown in Table 1 above, if the size relationship of the screening time is T ABC >T BAC >T BCA >T CAB >T ACB >T CBA , then the data screening device determines T CBA The corresponding logical unit order (logical unit C, logical unit B, logical unit A) is the target logical unit order. The preset data screening algorithm is further adjusted according to the target logical unit order to obtain the following: Figure 4 The target data screening algorithm shown.

[0067] S205: The data screening device screens the data to be processed based on the target data screening algorithm.

[0068] As a possible implementation method, the data screening device inputs the data to be processed into a target data screening algorithm, and the target data screening algorithm completes the screening of the data to be processed.

[0069] In some embodiments, the data screening device discards the unusable data in the plurality of sample data and stores the usable data in the plurality of sample data based on the sample data screening result of each logic unit in the preset data screening algorithm in the above step S202. Further, the data screening device inputs the other data in the data to be processed except the sample data into the target data screening algorithm to complete the screening of the data to be processed. In this way, repeated screening of the sample data is avoided, the load of hardware resources is reduced, and the screening efficiency of the data to be processed is improved.

[0070] It can be understood that in the data screening method provided in the above-mentioned embodiment of the present application, by determining the shortest screening time of the data screening algorithm for multiple sample data, a target data screening algorithm with higher screening efficiency for multiple sample data can be obtained. Since the multiple sample data are sampled from the data to be processed, they can reflect the characteristics of the data in the batch of data to be processed to a certain extent. Therefore, based on the optimized target data screening algorithm, it is possible to improve the screening efficiency of the messages to be processed by optimizing the data screening algorithm.

[0071] In one design, when there is a first logical unit with multiple sub-logical units nested in the multiple logical units in the preset data screening algorithm, in order to ensure the screening efficiency of the data screening algorithm for the data to be processed, the data screening method provided in the embodiment of the present application is as follows: Figure 5 As shown, it also includes S501-S502.

[0072] S501. The data screening device determines, according to the screening result and screening duration of each sample data by each sub-logical unit in the multiple sub-logical units, a second total duration for the first logical unit to sequentially screen the multiple sample data when the sub-logical units are sorted in different ways, and obtains multiple second total durations corresponding one-to-one to the sorting of the multiple sub-logical units.

[0073] As a possible implementation, the data screening device determines the screening result and screening duration of each sub-logical unit for each sample data based on the method for determining the screening result and screening duration of each logical unit for each sample data in step S202. Further, the data screening device determines the second total duration corresponding to the sorting of each sub-logical unit based on the method for determining the first total duration corresponding to the sorting of each logical unit in step S203, which will not be described in detail here.

[0074] For example, the first logic unit is logic unit A (if (A)), and the nested sub-logic units are sub-logic units A-1, A-2, and A-3 (if (A-1), if (A-2), and if (A-3)). Then the sub-logic units are sorted as A-123, A-132, A-213, A-231, A-312, and A-321, respectively. Based on the above method steps, the sub-logic unit screening time table shown in Table 2 below can be obtained.

[0075] Table 2: Sub-logic unit screening time table

[0076] Sub-logical unit sorting Screening time A-123 <![CDATA[T 123 ]]> A-132 <![CDATA[T 132 ]]> A-213 <![CDATA[T 213 ]]> A-231 <![CDATA[T 231 ]]> A-312 <![CDATA[T 312 <!-- 7 -->]]> A-321 <![CDATA[T 321 ]]>

[0077] S502: The data screening device adjusts the first logical unit by sorting the sub-logical units corresponding to the shortest second total time length among the multiple second total time lengths.

[0078] As a possible implementation method, the data screening device determines the shortest second total duration among multiple second total durations, further sorts the first logical unit based on the sub-logical unit sorting corresponding to the shortest second total duration, obtains the adjusted first logical unit, and screens the sample data based on the adjusted first logical unit, and determines the screening result and screening duration of the sample data by the logical unit as the screening result and screening duration.

[0079] For example, the order of the first logic unit before adjustment is A-123. 132 >T 123 >T 231 >T 312 >T 213 >T 321 , the first logical unit is adjusted according to the sub-logical unit sorting of T-321. Compared with the first logical unit before the adjustment, the adjusted first logical unit takes less time to screen the sample data and is more efficient, thereby further improving the screening efficiency of the data screening algorithm for the data to be processed.

[0080] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiment disclosed herein, the embodiment of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware 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 exceed the scope of the present application.

[0081] The embodiment of the present application can divide the functional modules of the user equipment according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. Optionally, the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0082] Figure 6 Schematic diagram of the structure of a data screening device provided in an embodiment of the present application. The data screening device is used to execute the above-mentioned data screening method. Figure 6 As shown, the data screening device 60 includes an acquisition unit 601 , a determination unit 602 and a processing unit 603 .

[0083] The acquisition unit 601 is used to acquire a plurality of sample data from the data to be processed. Figure 2 As shown, the acquisition unit 601 can be used to execute S201.

[0084] The determination unit 602 is used to determine the screening result and screening time of each logic unit in the preset data screening algorithm for any sample data among the multiple sample data. Figure 2As shown, the determining unit 602 can be used to execute S202.

[0085] The determination unit 602 is further configured to determine, based on the screening results and screening duration of each logical unit for each sample data, a first total duration for the preset data screening algorithm to sequentially screen the plurality of sample data in different logical unit sorting conditions, and obtain a plurality of first total durations corresponding to the plurality of logical unit sorting conditions. Figure 2 As shown, the determining unit 602 can be used to execute S203.

[0086] The processing unit 603 is used to adjust the preset data screening algorithm according to the target logical unit ranking to obtain the target data screening algorithm, and screen the data to be processed based on the target data screening algorithm, wherein the target logical unit ranking corresponds to the shortest first total duration among the multiple first total durations. Figure 2 As shown, the processing unit 603 can be used to execute S204-S205.

[0087] Optional, such as Figure 6 As shown, in the data screening device 60 provided in the embodiment of the present application, when there is a first logical unit with multiple sub-logical units nested in the multiple logical units, the determination unit 602 is further used to determine the second total duration for the first logical unit to sequentially screen the multiple sample data when the sub-logical units are sorted in different ways, based on the screening results and screening duration of each sample data by each sub-logical unit in the multiple sub-logical units, to obtain multiple second total durations corresponding to the sorting of the multiple sub-logical units. For example, Figure 5 As shown, the determining unit 602 can be used to execute S501.

[0088] The processing unit 603 is further configured to adjust the first logical unit by sorting the sub-logical units corresponding to the shortest second total duration among the plurality of second total durations. Figure 5 As shown, the processing unit 603 can be used to execute S502.

[0089] Optional, such as Figure 6 As shown, in the data screening device 60 provided in the embodiment of the present application, the determination unit 602 is specifically used to determine, for any one of the multiple logical unit sortings, the sample data to be screened corresponding to each logical unit according to the screening result of the sample data on the logical unit sorting and each logical unit in the preset data screening algorithm; for any one of the multiple logical units, determine the third total time corresponding to the logical unit according to the screening time of the sample data to be screened; and determine the sum of the third total time corresponding to each logical unit in the multiple logical units as the first total time corresponding to the logical unit sorting.

[0090] Optional, such as Figure 6 As shown, in the data screening device 60 provided in the embodiment of the present application, the determination unit 602 is specifically used to determine that the sample data to be screened corresponding to the third logical unit does not include the first sample data when the screening result of the second logical unit on the first sample data is that the data is unavailable; the second logical unit and the third logical unit are any two of the multiple logical units, and the second logical unit is before the third logical unit in the logical unit sorting.

[0091] Optional, such as Figure 6 As shown, in the data screening device 60 provided in the embodiment of the present application, the acquisition unit 601 is specifically used to acquire multiple sample data from the data to be processed based on a preset random sampling algorithm.

[0092] In the case of implementing the functions of the above-mentioned integrated modules in the form of hardware, the embodiment of the present application provides a possible structural diagram of a data screening device. The data screening device is used to execute the data screening method executed by the data screening device in the above-mentioned embodiment. Figure 7 As shown, the data screening device 70 includes a processor 701, a memory 702 and a bus 703. The processor 701 and the memory 702 may be connected via the bus 703.

[0093] The processor 701 is the control center of the data screening device, which can be a processor or a general term for multiple processing elements. For example, the processor 701 can be a general-purpose central processing unit (CPU) or other general-purpose processors. Among them, the general-purpose processor can be a microprocessor or any conventional processor.

[0094] As an embodiment, the processor 701 may include one or more CPUs, such as Figure 7 CPU 0 and CPU 1 are shown in .

[0095] The memory 702 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.

[0096] As a possible implementation, the memory 702 can exist independently of the processor 701, and the memory 702 can be connected to the processor 701 via a bus 703 to store instructions or program codes. When the processor 701 calls and executes the instructions or program codes stored in the memory 702, the data screening method provided in the embodiment of the present application can be implemented.

[0097] In another possible implementation, the memory 702 may also be integrated with the processor 701 .

[0098] The bus 703 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0099] It should be pointed out that Figure 7 The structure shown does not constitute a limitation on the data screening device 70. Figure 7 In addition to the components shown, the data screening device 70 may include Figure 7 More or fewer components, or combinations of certain components, or different arrangements of components may be shown.

[0100] As an example, combining Figure 6 The functions implemented by the acquisition unit 601, the determination unit 602 and the processing unit 603 in the data screening device 60 are similar to those Figure 7 The function of processor 701 in is the same.

[0101] Optional, such as Figure 7 As shown, the data screening device provided in the embodiment of the present application may also include a communication interface 704.

[0102] The communication interface 704 is used to connect with other devices through a communication network. The communication network may be Ethernet, wireless access network, wireless local area network (WLAN), etc. The communication interface 704 may include an acquisition unit for receiving data and a sending unit for sending data.

[0103] In one design, in the data screening device provided in an embodiment of the present application, the communication interface can also be integrated into the processor.

[0104] Figure 8 FIG. 2 shows another hardware structure of the data screening device in the embodiment of the present application. Figure 8 As shown, the data screening device 80 may include a processor 801 and a communication interface 802. The processor 801 is coupled to the communication interface 802.

[0105] The functions of the processor 801 may refer to the description of the processor 701. In addition, the processor 801 also has a storage function, which may refer to the function of the memory 702.

[0106] The communication interface 802 is used to provide data to the processor 801. The communication interface 802 can be an internal interface of the data screening device, or an external interface of the data screening device (equivalent to the communication interface 704).

[0107] It should be pointed out that Figure 8 The structure shown in the figure does not constitute a limitation on the data screening device, except Figure 8 In addition to the components shown, the data screening device 80 may include more or fewer components than shown, or combine certain components, or arrange the components differently.

[0108] Through the description of the above implementation methods, those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above functional units is used as an example. In practical applications, the above functions can be assigned to different functional units as needed, that is, the internal structure of the device can be divided into different functional units to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0109] An embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When a computer executes the instructions, the computer executes each step in the method flow shown in the above method embodiment.

[0110] An embodiment of the present application provides a computer program product including instructions. When the instructions are executed on a computer, the computer executes the data screening method in the above method embodiment.

[0111] Among them, the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, and a hard disk. Random Access Memory (RAM), Read-Only Memory (ROM), Erasable Programmable Read Only Memory (EPROM), registers, hard disks, optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any other form of computer-readable storage medium in a suitable combination of the above, or numerical values ​​in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an Application Specific Integrated Circuit (ASIC). In the embodiments of the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program, which may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0112] Since the apparatus, device computer-readable storage medium, and computer program product in the embodiments of the present application can be applied to the above-mentioned method, the technical effects that can be obtained can also refer to the above-mentioned method embodiments, and the embodiments of the present application will not be described in detail here.

[0113] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A data screening method, characterized in that: The method comprises: Obtain multiple sample data from the data to be processed; For any one of the plurality of sample data, determining a screening result and a screening duration of the sample data by each logic unit in a preset data screening algorithm; According to the screening results and screening duration of each logical unit for each sample data, determining the first total duration for the preset data screening algorithm to sequentially screen the plurality of sample data in the case of different logical unit sortings, and obtaining a plurality of first total durations corresponding one-to-one to the plurality of logical unit sortings; The preset data screening algorithm is adjusted according to the target logical unit sorting to obtain the target data screening algorithm, and the to-be-processed data is screened based on the target data screening algorithm, wherein the target logical unit sorting corresponds to the shortest first total duration among the multiple first total durations.

2. The data screening method according to claim 1, characterized in that: In the case that there is a first logical unit in which a plurality of sub-logical units are nested among the plurality of logical units, the method further includes: Determine, according to the screening result and screening duration of each sample data by each sub-logical unit in the multiple sub-logical units, a second total duration for the first logical unit to sequentially screen the multiple sample data when the sub-logical units are sorted in different ways, to obtain multiple second total durations corresponding one-to-one to the sorting of the multiple sub-logical units; The first logic unit is adjusted according to the order of the sub-logic units corresponding to the shortest second total duration among the multiple second total durations.

3. The data screening method according to claim 1 or 2, characterized in that: The determining, according to the screening result and screening duration of each logical unit for each sample data, a first total duration for the preset data screening algorithm to sequentially screen the plurality of sample data when the different logical units are sorted, comprises: For any one of the plurality of logical unit sortings, determining the sample data to be screened corresponding to each logical unit according to the logical unit sorting and the screening result of the sample data by each logical unit in the preset data screening algorithm; For any one of the plurality of logical units, determining a third total duration corresponding to the logical unit according to a screening duration of the sample data to be screened; The sum of the third total durations corresponding to each logical unit in the multiple logical units is determined as the first total duration corresponding to the order of the logical units.

4. The data screening method according to claim 3, characterized in that: The determining the sample data to be screened corresponding to each logical unit according to the logical unit sorting and the screening result of the sample data by each logical unit in the preset data screening algorithm comprises: When the result of filtering the first sample data by the second logical unit is that the data is unavailable, it is determined that the sample data to be filtered corresponding to the third logical unit does not include the first sample data; the second logical unit and the third logical unit are any two of the multiple logical units, and the second logical unit is before the third logical unit in the logical unit sorting.

5. The data screening method according to claim 1 or 2, characterized in that: The step of obtaining a plurality of sample data from the data to be processed includes: Based on a preset random sampling algorithm, the plurality of sample data are obtained from the data to be processed.

6. A data screening device, characterized in that: It includes an acquisition unit, a determination unit and a processing unit; The acquisition unit is used to acquire a plurality of sample data from the data to be processed; The determining unit is used to determine, for any one of the plurality of sample data, a screening result and a screening duration of the sample data by each logic unit in a preset data screening algorithm; The determining unit is further configured to determine, based on the screening result and screening duration of each logical unit for each sample data, a first total duration for the preset data screening algorithm to sequentially screen the plurality of sample data in the case of different logical unit sortings, to obtain a plurality of first total durations corresponding one-to-one to the plurality of logical unit sortings; The processing unit is used to adjust the preset data screening algorithm according to the target logical unit sorting to obtain the target data screening algorithm, and screen the data to be processed based on the target data screening algorithm, and the target logical unit sorting corresponds to the shortest first total duration among the multiple first total durations.

7. The data screening device according to claim 6, characterized in that: In the case where there is a first logical unit with multiple nested sub-logical units in the multiple logical units, the determining unit is further configured to determine, based on the screening result and screening duration of each sub-logical unit in the multiple sub-logical units for each sample data, a second total duration for the first logical unit to sequentially screen the multiple sample data when the sub-logical units are sorted in different ways, to obtain multiple second total durations corresponding one-to-one to the sorting of the multiple sub-logical units; The processing unit is further configured to adjust the first logic unit by sorting the sub-logic units corresponding to the shortest second total duration among the multiple second total durations.

8. The data screening device according to claim 6 or 7, characterized in that: The determining unit is specifically configured to determine, for any one of the plurality of logical unit sortings, sample data to be screened corresponding to each logical unit according to the logical unit sorting and a screening result of the sample data by each logical unit in the preset data screening algorithm; For any one of the plurality of logical units, determining a third total duration corresponding to the logical unit according to a screening duration of the sample data to be screened; The sum of the third total durations corresponding to each logical unit in the multiple logical units is determined as the first total duration corresponding to the order of the logical units.

9. A data screening device, characterized in that: including memory and processor; The memory is coupled to the processor; The memory is used to store computer program code, wherein the computer program code includes computer instructions; When the processor executes the computer instructions, the data screening device performs the data screening method as described in any one of claims 1-5.

10. A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, characterized in that: When the instruction is executed on a data screening device, the data screening device executes the data screening method as described in any one of claims 1 to 5.