CN116431671A - Method and device for screening data and electronic equipment - Google Patents

Method and device for screening data and electronic equipment Download PDF

Info

Publication number
CN116431671A
CN116431671A CN202310318218.0A CN202310318218A CN116431671A CN 116431671 A CN116431671 A CN 116431671A CN 202310318218 A CN202310318218 A CN 202310318218A CN 116431671 A CN116431671 A CN 116431671A
Authority
CN
China
Prior art keywords
screening
data
target
crowd
strategy
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310318218.0A
Other languages
Chinese (zh)
Inventor
张彦超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
58 Chang Life Beijing Information Technology Co ltd
Original Assignee
58 Chang Life Beijing Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 58 Chang Life Beijing Information Technology Co ltd filed Critical 58 Chang Life Beijing Information Technology Co ltd
Priority to CN202310318218.0A priority Critical patent/CN116431671A/en
Publication of CN116431671A publication Critical patent/CN116431671A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2453Query optimisation
    • G06F16/24534Query rewriting; Transformation
    • G06F16/24539Query rewriting; Transformation using cached or materialised query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services

Abstract

The embodiment of the invention provides a method and a device for screening data and electronic equipment. The method comprises the following steps: under the condition of receiving a page display request sent by a target terminal, acquiring a plurality of screening strategies; screening for multiple times in a target database based on the screening strategies to obtain target data; wherein, except for the first screening, each screening is carried out from the previous screening result; and returning the target data to the target terminal so that the target terminal displays the target data. In the multiple screening process, each screening is carried out from the previous screening result except the first screening. Therefore, the data volume screened each time is in a funnel shape, so that screening is carried out from screening results with smaller data volume each time, the time spent for screening target data is shortened undoubtedly, and the target data can be obtained more quickly. Meanwhile, the reaction time of the system is shortened.

Description

Method and device for screening data and electronic equipment
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for screening data, and an electronic device.
Background
With the continuous development of internet technology, it provides more and more convenience for people. With this, the data volume of network data is increasing. By storing a large amount of business data in a background database, the normal operation of business can be ensured.
Currently, in the process of developing a service, relevant data is usually screened from a background database according to a data request triggered by a user, and hit data is returned to the user. The screening strategy generally includes a plurality of screening indexes, and further screening is performed in a background database according to the plurality of screening indexes.
However, in screening according to a plurality of screening criteria, each screening criteria is located at the same level. In the case of a large amount of data in the database, a long time is required to screen the relevant data, which causes a problem of excessively long response time of the system.
Disclosure of Invention
In view of the foregoing, embodiments of the present invention are provided to provide a method and apparatus for screening data, and an electronic device, which overcome or at least partially solve the foregoing problems.
In a first aspect, an embodiment of the present invention provides a method for screening data, where the method includes:
under the condition of receiving a page display request sent by a target terminal, acquiring a plurality of screening strategies;
screening for multiple times in a target database based on the screening strategies to obtain target data; wherein, except for the first screening, each screening is carried out from the previous screening result;
and returning the target data to the target terminal so that the target terminal displays the target data.
Optionally, the plurality of screening strategies includes: at least two of a crowd splitting strategy for screening based on the crowd to which the user belongs, a flow splitting strategy for screening based on a preset access flow proportion and a region splitting strategy for screening based on the region to which the user belongs.
Optionally, the screening strategies include: under the conditions of the crowd diversion strategy, the flow diversion strategy and the regional diversion strategy, the multiple screening is performed in a target database based on the multiple screening strategies to obtain target data, which comprises the following steps:
performing first screening in the target database based on the crowd diversion strategy to obtain a first screening result;
performing secondary screening in the first screening result based on the flow diversion strategy to obtain a second screening result;
and performing third screening in the second screening result based on the regional distribution strategy to obtain the target data.
Optionally, the performing the first screening in the target database based on the crowd-splitting policy to obtain a first screening result includes:
determining a user identification of a target user currently logged in the target terminal based on the page display request;
determining a target crowd based on preset corresponding relations between different crowds and different user identifications, wherein the target crowd is the crowd to which the target user belongs;
and screening the data with the access right of the target crowd from the target database to obtain the first screening result.
Optionally, the performing a second screening in the first screening result based on the flow diversion policy, to obtain a second screening result, includes:
determining the access flow ratio of first type data and second type data in a target duration, wherein the first type data and the second type data are different types of data pre-configured in the target database;
and screening the first type data from the first screening result under the condition that the access flow rate ratio is lower than the preset access flow rate ratio, so as to obtain the second screening result.
Optionally, the third filtering in the second filtering result based on the regional diversion policy, to obtain the target data includes:
determining a target area to which the current position of the target terminal belongs based on the page display request;
and screening the data with the access right of the target area from the second screening result to obtain the target data.
Optionally, in the case that the page display request is used for requesting multi-layer page data in the target page, the performing multiple filtering in the target database based on the multiple filtering strategies to obtain target data includes:
screening in the target database for multiple times by utilizing multiple screening strategies according to each layer in the target page to obtain screening data corresponding to each layer;
and determining the screening data corresponding to each layer as the target data.
In a second aspect, an embodiment of the present invention further provides an apparatus for screening data, where the apparatus includes:
the acquisition module is used for acquiring a plurality of screening strategies under the condition of receiving a page display request sent by the target terminal;
the screening module is used for carrying out multiple screening in the target database based on the screening strategies to obtain target data; wherein, except for the first screening, each screening is carried out from the previous screening result;
and the return module is used for returning the target data to the target terminal so as to enable the target terminal to display the target data.
In a third aspect, embodiments of the present invention also provide an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps in the method of screening data as described above when the computer program is executed.
In a fourth aspect, embodiments of the present invention also provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of a method of screening data as described above.
In the embodiment of the invention, after receiving a page display request triggered by a user at a target terminal, a plurality of screening strategies for screening related data from a target database are acquired. And then multiple screening strategies are utilized to carry out multiple screening in the target database, so as to obtain target data. And finally, returning the screened target data to the target terminal so as to display the target data to the user through the target terminal. Since the target data is screened in the target database, each screening is performed from the previous screening result except the first screening. Therefore, the data volume screened each time is in a funnel shape, so that screening is carried out from screening results with smaller data volume each time, the time spent for screening target data is shortened undoubtedly, and the target data can be obtained more quickly. Meanwhile, the reaction time of the system is shortened.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments of the present invention will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart illustrating steps of a method for screening data according to an embodiment of the present invention;
fig. 2 is a flow chart of an actual application of a method for screening data according to an embodiment of the present invention;
FIG. 3 is a flow chart of an actual application of screening data using crowd-splitting strategy in an embodiment of the invention;
FIG. 4 is a flow chart of an actual application of screening data by using a traffic splitting strategy according to an embodiment of the present invention;
FIG. 5 is a flow chart of an actual application of screening data by using an urban distribution strategy according to an embodiment of the present invention;
fig. 6 is a block diagram of a device for screening data according to an embodiment of the present invention;
fig. 7 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present invention, it should be understood that the sequence numbers of the following processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
Referring to fig. 1, an embodiment of the present invention provides a method for screening data, which may include:
step 101: and under the condition that a page display request sent by the target terminal is received, acquiring a plurality of screening strategies.
In this step, the target terminal is an electronic terminal with a network communication function, which may be a mobile phone, a notebook computer, a desktop computer, a tablet computer, etc., and is not limited herein. It will be appreciated that the user may trigger a page display request for requesting page data by operating in the target terminal. The electronic equipment applying the embodiment of the invention receives the page display request and processes the page display request. The specific case where the user triggers the page display request at the target terminal is not limited herein, and the specific case may be a page display request triggered by an operation of the user when the target terminal displays any page of any application.
The screening policy is a preconfigured screening policy for screening related data. The number of screening strategies may be two, three or more. Wherein different screening policies may be considered as screening policies configured from different dimension considerations. For example, for a database storing user data for a large number of users, where the user data includes both age and gender dimensions. Accordingly, a screening policy may be configured based on age for screening relevant users for age. A screening policy may also be configured based on gender for screening relevant users for gender consideration. It should be noted that the specific content of the filtering policy is related to the data requested by the page display request, which is not limited herein.
Step 102: and screening the target database for multiple times based on multiple screening strategies to obtain target data.
In this step, the first screening is from the target database. Each screen was performed from the previous screening results except for the first screen. Here, the number of screening strategies is equal to the number of screens, that is, each screen is screened with one screening strategy and multiple screens are not screened with the same screening strategy. For example, screening strategies include: a first screening strategy, a second screening strategy, and a third screening strategy. When three screening strategies are used for screening, a first screening strategy is selected to screen from a target database, then a second screening strategy is used for screening from the screening result of the first screening, and finally a third screening strategy is used for screening from the screening result of the second screening.
The target database is a preset database related to the service provided by the electronic equipment. For example, the target database is a database storing service data of all services provided by the electronic device. The target data is the data finally screened after multiple screening by using multiple screening strategies.
Step 103: and returning the target data to the target terminal so that the target terminal displays the target data.
In this step, the target data is the data requested by the target terminal through the page display request. After receiving the target data, the target terminal displays the target data. The target terminal may display the target data in any manner, which is not limited herein. For example, the target terminal may load the target data into the current page, and may play part of the data in the target data by using a voice broadcast manner.
In the embodiment of the invention, after receiving a page display request triggered by a user at a target terminal, a plurality of screening strategies for screening related data from a target database are acquired. And then multiple screening strategies are utilized to carry out multiple screening in the target database, so as to obtain target data. And finally, returning the screened target data to the target terminal so as to display the target data to the user through the target terminal. Since the target data is screened in the target database, each screening is performed from the previous screening result except the first screening. Therefore, the data volume screened each time is in a funnel shape, so that screening is carried out from screening results with smaller data volume each time, the time spent for screening target data is shortened undoubtedly, and the target data can be obtained more quickly. Meanwhile, the reaction time of the system is shortened.
Optionally, the plurality of screening strategies comprises: at least two of a crowd splitting strategy for screening based on the crowd to which the user belongs, a flow splitting strategy for screening based on a preset access flow proportion and a region splitting strategy for screening based on the region to which the user belongs.
It should be noted that the crowd is a group formed by dividing people according to objective factors such as age, sex, etc. For example, age-divided groups of people may include children, young people, old people. The population referred to herein may be a group divided according to any customer factor. It will be appreciated that the data content of interest varies from crowd to crowd, and typically differs significantly. Therefore, a crowd splitting strategy can be set, and data of different contents are respectively returned to users of different crowds, so that crowd splitting is realized. Similarly, the data content of interest to users in different areas differs greatly in a certain dimension. Therefore, the regional distribution strategy can be set, and the data of different contents are respectively returned to the users of different regions, so that regional distribution is realized. Here, the region may be a region in units of cities, but is not limited thereto.
Of course, for the service provider, the user may be further split to change the access flow of various data according to the own requirement. For example, 100 new items in a shopping platform need to be presented to the user. An access traffic ratio may be predetermined, here illustrated as 2:8. If 100 users request the data of the new product within a period of time, the data of part of the new product in the 100 new products is returned to 20 users, and the data of the rest part of the new product is returned to the rest 80 users except the first 20 users. Therefore, a flow diversion strategy can be set, and data is returned to the user according to the preset access flow proportion, so that flow diversion is realized.
It should be noted that any two or any three of the crowd diversion policy, the flow diversion policy, and the area diversion policy may be selected when the screening policy is set. And the screening order of each screening strategy can also be set so that when a plurality of screening strategies are utilized for multiple screening, the screening strategies are sequentially selected according to the set screening order. Here, the order of screening of the respective screening policies may be set to an arbitrary order, which is not limited here.
According to the embodiment of the invention, the user can be shunted from different dimensions through the crowd shunting strategy, the flow shunting strategy and the regional shunting strategy, so that the target data of different contents are screened out, and the personalized display of the target data is realized.
Optionally, the plurality of screening strategies includes: under the conditions of crowd diversion strategy, flow diversion strategy and regional diversion strategy, carrying out multiple screening in a target database based on multiple screening strategies to obtain target data, wherein the method comprises the following steps:
and carrying out first screening in the target database based on the crowd splitting strategy to obtain a first screening result.
In this step, the target database stores data set for different people in terms of the crowd dimension. The first screening result is the data set for a certain crowd in the target database.
And carrying out second screening in the first screening result based on the flow diversion strategy to obtain a second screening result.
In this step, the second screening result is part of the data in the first screening result, and is the data screened by the second screening in the first screening result.
And performing third screening in the second screening result based on the regional distribution strategy to obtain target data.
In this step, the target database stores data set for different areas in terms of the area dimension. The target data is the data set for a certain area in the second screening result.
In the embodiment of the invention, the crowd diversion strategy, the flow diversion strategy and the regional diversion strategy are sequentially utilized to carry out three different screening, and three different dimensionalities can be considered, so that the data meeting the user requirements can be screened.
Optionally, performing the first screening in the target database based on the crowd-splitting policy to obtain a first screening result, including:
and determining the user identification of the target user currently logged in the target terminal based on the page display request.
It should be noted that, when the user triggers a page display request using the target terminal, the user will log in to his/her electronic account. For example, the target terminal is provided with a first application, and the user triggers a page display request in the process of using the first application, so that the server side of the first application can determine the current login user through the page display request. Here, the target user is the electronic account logged into the first application. The user identifier is a server of the first application and is used for distinguishing identifiers of different users. Each user has a different user identification.
And determining a target crowd based on preset corresponding relations between different crowds and different user identifications, wherein the target crowd is the crowd to which the target user belongs.
In this step, different user identities represent different users. Therefore, the preset correspondence between different people and different user identifications may also be referred to as a preset correspondence between different people and different users. Therefore, the target crowd to which the target user belongs, namely the crowd corresponding to the user identification of the target user, can be determined based on the preset corresponding relation. Preferably, different crowd identifications can be set for different crowds, so that two parties with preset corresponding relations are converted into the crowd identifications and the user identifications.
And screening the data with the access right of the target crowd from the target database to obtain a first screening result.
It should be noted that different data are set in the target database for different people, so that different people can access different data, and the data accessed by the people are the data with access rights of the people. Therefore, the data of the target group having the access right can be said to be the data set for the target group. For example, the 1 st to 100 th data in the target database are data set for children, the 101 st to 200 th data are data set for young people, the 201 st to 300 th data are data set for old people, the data with access right of children are the 1 st to 100 th data in the target database, the data with access right of young people are the 101 st to 200 th data in the target database, and the data with access right of old people are the 201 st to 300 th data in the target database.
In the embodiment of the invention, after the target user currently logged in the target terminal is determined, the data corresponding to the crowd setting of the target user can be screened out from the target database, so that the screened data has more pertinence.
Optionally, performing the second screening in the first screening result based on the flow diversion policy to obtain a second screening result, including:
and determining the access flow ratio of the first type of data and the second type of data in the target duration, wherein the first type of data and the second type of data are different types of data which are preconfigured in the target database.
And screening the first type data from the first screening result under the condition that the access flow rate ratio is lower than the preset access flow rate ratio, so as to obtain a second screening result.
It should be noted that the target time period may be any time period from the start of the first time to the end of the second time. The second time is the time when the page display request is received. Here, a specific value of the target time period may be set in advance. After receiving the page display request, the time period of the target duration is calculated from the second moment. For example, the preset target time period is 1 hour. If the page display request is received at 2021, 1, 12, 13:00, the estimated time period is a time period from 2021, 1, 12, 12:00 to 2021, 1, 12, 13:00. And counting the access flow rate ratio of the first type data and the second type data in the time period, namely the access flow rate of the first type data: access traffic for the second type of data. It will be appreciated that when the first type of data and the second type of data are configured in the target database, the types of data may be distinguished in any dimension, and are not limited herein.
The preset access traffic ratio may be understood as a preset target ratio of accessing the first type data and the second type data. If the access flow rate is lower than the preset access flow rate, the access flow rate of the first type data is lower, and the flow rate of the first type data is required to be accessed this time. Correspondingly, under the condition that the access flow rate ratio is higher than the preset access flow rate ratio, screening the second type data from the first screening result to obtain a second screening result.
In the embodiment of the invention, after the first type data and the second type data are configured in the target database, the access flow ratio of the two types of data can be controlled by utilizing the preset access flow ratio.
Optionally, performing third screening in the second screening result based on the regional diversion strategy to obtain target data, including:
and determining a target area to which the current position of the target terminal belongs based on the page display request.
And screening the data with the access right of the target area from the second screening result to obtain target data.
It should be noted that, when the target terminal triggers the page display request, the target terminal sends the self-located position along with the page display request. Thus, after receiving the page display request, the target area where the current position of the target terminal is located can be determined.
Different data are set in the target database aiming at different areas, so that users in different areas can access different data, and the data accessed by the users in the areas are the data with access rights in the areas. Therefore, the data of the target area having the access right can be said to be data set for the target area. For example, the 1 st to 100 th data in the target database are data set for the first region, the 101 st to 200 th data are data set for the second region, the 201 st to 300 th data are data set for the third region, the data with access right in the first region are the 1 st to 100 th data in the target database, the data with access right in the second region are the 101 st to 200 th data in the target database, and the data with access right in the third region are the 201 st to 300 rd data in the target database.
In the embodiment of the invention, after the target area to which the current position of the target terminal belongs is determined, the data set in the corresponding target area can be screened out again from the screening result, so that the screened data has more pertinence.
Optionally, in the case that the page display request is used for requesting multi-layer page data in the target page, performing multiple filtering in the target database based on multiple filtering strategies to obtain target data, including:
and respectively screening the target database for multiple times by utilizing multiple screening strategies aiming at each layer in the target page to obtain screening data corresponding to each layer.
And determining screening data corresponding to each layer as target data.
It should be noted that, in the case where the target terminal triggers a request for page data of a target page, the target page is composed of multiple layers of page data. Therefore, it is necessary to acquire multi-layered page data through a target page request. The electronic device can process the layers of the target page in parallel to shorten the processing time. That is, the processing procedure is the same for each layer, but the resulting data is different.
In the embodiment of the invention, under the condition that the target page comprises multiple layers of page data, parallel processing is carried out on each layer of page data, so that the target data can be rapidly determined, and the waiting time of the target terminal is shortened.
As shown in fig. 2, a flowchart of an actual application of a method for screening data according to an embodiment of the present invention includes:
step 201: and receiving a user request sent by the client. The user request corresponds to the page display request in step 101, and is not described herein. It should be noted that in the embodiment of the present invention, the user requests multi-layer page data for requesting the target page.
Step 202: and acquiring service data. The data requested by the user request is part of the service data.
Step 203: the requested data is selected from the business data. The data requested by the user request comprises multiple layers of page data, so that the page data of each layer can be processed in parallel, namely, each layer of page data is screened by utilizing multiple screening strategies. Here, the process of screening the data of each layer is the same, but the obtained data is different. The screening of one layer of page data is only described here as an example. First, a crowd diversion strategy is utilized to conduct first screening from service data to obtain a first screening result. And then, carrying out secondary screening in the first screening result by utilizing a flow diversion strategy to obtain a second screening result. And finally, carrying out third screening in the second screening result by utilizing the urban distribution strategy to obtain a layer of page data. The crowd splitting policy, the flow splitting policy, and the city splitting policy are respectively equivalent to the crowd splitting policy, the flow splitting policy, and the area splitting policy in the foregoing embodiments, and are not described herein again.
Step 204: the hit data sets are integrated. And integrating the page data of each layer obtained by the final screening to obtain a data set.
Step 205: and returning the data set to the client page. And rendering the target page by the client side by utilizing the data in the data set, so that the data is displayed to the user.
It should be noted that, in the process of performing step 203, the relevant policies and data may be stored in the cache in advance, so as to obtain the data from the cache. Specifically, referring to fig. 3, crowd data may be obtained from the portrait system in advance, and the crowd data may be stored in a cache. And storing the business data in the database into a cache by using the manually-imported heatstroke prevention. Thus, in the execution of step 301: when screening data from service data by using crowd diversion strategy, related data is obtained from the cache. If not, then step 302 is performed to execute the default logic. The default logic here is any logic set in advance. For example, the default logic may be set to filter service data corresponding to a default crowd, but is not limited thereto. Referring to fig. 4, when screening data based on a traffic splitting policy, step 401 is first performed: and obtaining a traffic diversion strategy from the cache. If the traffic splitting policy is available, then step 402 is executed: and directly returning to the flow diversion strategy. If the traffic splitting policy is not available, step 403 is executed: traffic splitting is performed using a fully random algorithm and the results are stored in a cache as a traffic splitting policy. So that the flow diversion strategy can be achieved by simply executing step 401 again. Referring to fig. 5, when screening data based on the urban distribution strategy, step 501 is first performed: and screening the data according to the city in which the user is currently logged. And if city information is not acquired or the business data is not configured for the city in the database, executing default logic. The default logic here is any logic set in advance. For example, the default logic may be set to filter service data corresponding to a default city, but is not limited thereto.
In the embodiment of the invention, the operation can be conveniently configured in a diversified way based on the service requirement, the development workload is reduced, and the operation efficiency is improved.
Having described the method for screening data provided by the embodiment of the present invention, the apparatus for screening data provided by the embodiment of the present invention will be described with reference to the accompanying drawings.
As shown in fig. 6, an embodiment of the present invention provides an apparatus for screening data, including:
an obtaining module 61, configured to obtain a plurality of screening policies when a page display request sent by a target terminal is received;
a screening module 62, configured to perform multiple screening in the target database based on multiple screening policies, to obtain target data; wherein, except for the first screening, each screening is carried out from the previous screening result;
and a return module 63, configured to return the target data to the target terminal, so that the target terminal displays the target data.
Optionally, the plurality of screening strategies comprises: at least two of a crowd splitting strategy for screening based on the crowd to which the user belongs, a flow splitting strategy for screening based on a preset access flow proportion and a region splitting strategy for screening based on the region to which the user belongs.
Optionally, the plurality of screening strategies includes: in the case of crowd diversion policies, traffic diversion policies, and regional diversion policies, the screening module 62 includes:
the first screening unit is used for carrying out first screening in the target database based on the crowd splitting strategy to obtain a first screening result;
the second screening unit is used for carrying out second screening in the first screening result based on the flow diversion strategy to obtain a second screening result;
and the third screening unit is used for carrying out third screening in the second screening result based on the regional distribution strategy to obtain target data.
Optionally, the first screening unit is specifically configured to:
determining a user identification of a target user currently logged in a target terminal based on the page display request;
determining a target crowd based on preset corresponding relations between different crowds and different user identifications, wherein the target crowd is the crowd to which the target user belongs;
and screening the data with the access right of the target crowd from the target database to obtain a first screening result.
The second screening unit is specifically used for:
determining the access flow ratio of the first type data and the second type data in the target duration, wherein the first type data and the second type data are different types of data pre-configured in a target database;
and screening the first type data from the first screening result under the condition that the access flow rate ratio is lower than the preset access flow rate ratio, so as to obtain a second screening result.
The third screening unit is specifically configured to:
determining a target area to which the current position of the target terminal belongs based on the page display request;
and screening the data with the access right of the target area from the second screening result to obtain target data.
Optionally, in the case that the page display request is for requesting multi-layer page data in the target page, the filtering module 62 is specifically configured to:
screening in a target database for multiple times by utilizing multiple screening strategies according to each layer in the target page to obtain screening data corresponding to each layer;
and determining screening data corresponding to each layer as target data.
In the embodiment of the invention, after receiving a page display request triggered by a user at a target terminal, a plurality of screening strategies for screening related data from a target database are acquired. And then multiple screening strategies are utilized to carry out multiple screening in the target database, so as to obtain target data. And finally, returning the screened target data to the target terminal so as to display the target data to the user through the target terminal. Since the target data is screened in the target database, each screening is performed from the previous screening result except the first screening. Therefore, the data volume screened each time is in a funnel shape, so that screening is carried out from screening results with smaller data volume each time, the time spent for screening target data is shortened undoubtedly, and the target data can be obtained more quickly. Meanwhile, the reaction time of the system is shortened.
The data screening device provided in this embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 and fig. 2, and achieve the same technical effects, so that repetition is avoided, and no further description is given here.
In another aspect, an embodiment of the present invention further provides an electronic device, including a memory, a processor, a bus, and a computer program stored in the memory and capable of running on the processor, where the processor implements the steps in the method for screening data when the processor executes the program.
For example, fig. 7 shows a schematic physical structure of an electronic device.
As shown in fig. 7, the electronic device may include: processor 710, communication interface (Communications Interface) 720, memory 730, and communication bus 740, wherein processor 710, communication interface 720, memory 730 communicate with each other via communication bus 740. Processor 710 may call logic instructions in memory 730 to perform the following method:
under the condition of receiving a page display request sent by a target terminal, acquiring a plurality of screening strategies;
screening for multiple times in a target database based on multiple screening strategies to obtain target data; wherein, except for the first screening, each screening is carried out from the previous screening result;
and returning the target data to the target terminal so that the target terminal displays the target data.
Further, the logic instructions in the memory 730 described above may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In still another aspect, an embodiment of the present invention further provides a computer readable storage medium having stored thereon a computer program, where the computer program is implemented when executed by a processor to perform a method for screening data provided in the foregoing embodiments, for example, including:
under the condition of receiving a page display request sent by a target terminal, acquiring a plurality of screening strategies;
screening for multiple times in a target database based on multiple screening strategies to obtain target data; wherein, except for the first screening, each screening is carried out from the previous screening result;
and returning the target data to the target terminal so that the target terminal displays the target data.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method of screening data, the method comprising:
under the condition of receiving a page display request sent by a target terminal, acquiring a plurality of screening strategies;
screening for multiple times in a target database based on the screening strategies to obtain target data; wherein, except for the first screening, each screening is carried out from the previous screening result;
and returning the target data to the target terminal so that the target terminal displays the target data.
2. The method of claim 1, wherein the plurality of screening policies comprises: at least two of a crowd splitting strategy for screening based on the crowd to which the user belongs, a flow splitting strategy for screening based on a preset access flow proportion and a region splitting strategy for screening based on the region to which the user belongs.
3. The method of claim 2, wherein at the plurality of screening policies comprises: under the conditions of the crowd diversion strategy, the flow diversion strategy and the regional diversion strategy, the multiple screening is performed in a target database based on the multiple screening strategies to obtain target data, which comprises the following steps:
performing first screening in the target database based on the crowd diversion strategy to obtain a first screening result;
performing secondary screening in the first screening result based on the flow diversion strategy to obtain a second screening result;
and performing third screening in the second screening result based on the regional distribution strategy to obtain the target data.
4. The method of claim 3, wherein the performing a first screening in the target database based on the crowd-splitting policy results in a first screening result, comprising:
determining a user identification of a target user currently logged in the target terminal based on the page display request;
determining a target crowd based on preset corresponding relations between different crowds and different user identifications, wherein the target crowd is the crowd to which the target user belongs;
and screening the data with the access right of the target crowd from the target database to obtain the first screening result.
5. The method of claim 3, wherein performing a second screening in the first screening results based on the flow diversion policy to obtain second screening results comprises:
determining the access flow ratio of first type data and second type data in a target duration, wherein the first type data and the second type data are different types of data pre-configured in the target database;
and screening the first type data from the first screening result under the condition that the access flow rate ratio is lower than the preset access flow rate ratio, so as to obtain the second screening result.
6. The method of claim 3, wherein the third filtering in the second filtering result based on the regional distribution strategy to obtain the target data comprises:
determining a target area to which the current position of the target terminal belongs based on the page display request;
and screening the data with the access right of the target area from the second screening result to obtain the target data.
7. The method according to claim 1, wherein, in the case that the page display request is used to request multi-layer page data in the target page, the performing multiple filtering in the target database based on the multiple filtering policies to obtain target data includes:
screening in the target database for multiple times by utilizing multiple screening strategies according to each layer in the target page to obtain screening data corresponding to each layer;
and determining the screening data corresponding to each layer as the target data.
8. An apparatus for screening data, the apparatus comprising:
the acquisition module is used for acquiring a plurality of screening strategies under the condition of receiving a page display request sent by the target terminal;
the screening module is used for carrying out multiple screening in the target database based on the screening strategies to obtain target data; wherein, except for the first screening, each screening is carried out from the previous screening result;
and the return module is used for returning the target data to the target terminal so as to enable the target terminal to display the target data.
9. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, characterized in that the computer program when executed by the processor implements the steps of the method of screening data according to any one of claims 1 to 7.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the method of screening data according to any of claims 1 to 7.
CN202310318218.0A 2023-03-28 2023-03-28 Method and device for screening data and electronic equipment Pending CN116431671A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310318218.0A CN116431671A (en) 2023-03-28 2023-03-28 Method and device for screening data and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310318218.0A CN116431671A (en) 2023-03-28 2023-03-28 Method and device for screening data and electronic equipment

Publications (1)

Publication Number Publication Date
CN116431671A true CN116431671A (en) 2023-07-14

Family

ID=87078976

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310318218.0A Pending CN116431671A (en) 2023-03-28 2023-03-28 Method and device for screening data and electronic equipment

Country Status (1)

Country Link
CN (1) CN116431671A (en)

Similar Documents

Publication Publication Date Title
US10694036B1 (en) Applying user preferences, behavioral patterns and/or environmental factors to an automated customer support application
US8171114B1 (en) System using specific geographic area multi-level caches for caching application data
US11257096B1 (en) Applying user preferences, behavioral patterns and/or environmental factors to an automated customer support application
US11770438B2 (en) Network communications
US20170262891A1 (en) Telecommunications call augmentation system
US20120042044A1 (en) System and Method for Mobile Digital Media Content Delivery and Services Marketing
US10567578B1 (en) Applying user preferences, behavioral patterns and environmental factors to an automated customer support application
EP1751954A2 (en) Queuing system, method and computer program product for managing the provision of services over a communications network
US20130159125A1 (en) System and Process for Managing Sale of One or More Items
CN111054078B (en) Object information acquisition method and device
CN109584115A (en) Release method, device and the storage medium of associated client
CN108076042A (en) User information acquiring method, server and computer-readable medium
CN115375339A (en) Multimedia information recommendation method, device and equipment and computer storage medium
CN116431671A (en) Method and device for screening data and electronic equipment
CN113408817B (en) Traffic distribution method, device, equipment and storage medium
CN108881190A (en) A kind of information processing method and device
WO2002025909A2 (en) Smart transfer
US10616293B1 (en) Multiple account binding
US11048821B1 (en) Hosted server system and method for intermediating anonymous firm matching and exit strategy negotiations
CN111192077A (en) Advertisement traffic multiplexing method and device, storage medium and electronic device
CN104618594B (en) A kind of information processing method and electronic equipment
CN110290142B (en) Scene-based authentication method, device, server and storage medium
CN109391642A (en) A kind of order processing method and device, storage medium, server
CN118022305A (en) Game processing method, computing device, storage medium, and computer program product
CN115700697A (en) Recommendation method, device, server and storage medium of media resource

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination