Method for feeding back target data to user terminal, electronic device and program product
By preprocessing to generate target data and determining the storage period based on service orders, the problems of low data sharing and storage efficiency in big data systems are solved, achieving efficient storage for data sharing and management.
Patent Information
- Application Number
- CN202111609892.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-27
- Publication Date
- 2025-11-28
- Estimated Expiration
- 2041-12-27
AI Technical Summary
In existing technologies, big data systems cannot effectively share overlapping data when providing services to multiple users, resulting in increased storage pressure and low management efficiency.
The source data is pre-processed according to the data filtering conditions to generate target data, and the target service cycle is determined according to the user's service order information. The target data is then stored in the database to achieve data sharing and effective management.
It improves the data storage efficiency of big data systems, reduces storage space usage through data sharing, and facilitates the management of expired data.
Smart Images

Figure CN114329197B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to big data technology, data storage technology in computer technology, and particularly relates to a method for feeding back target data to a user terminal, an electronic device and a program product. BACKGROUND
[0002] In a big data scenario, a system often needs to provide services for multiple users, and these services are various, and service data may overlap or may not overlap.
[0003] Some systems in the prior art isolate the data of each user as much as possible by using different databases for different users, which results in that the overlapping data cannot be shared by multiple users, and the storage pressure of the system is increased.
[0004] Therefore, how to improve the effective storage of shared data of different users by the system to improve the storage efficiency of the system is a technical problem to be solved by those skilled in the art. SUMMARY
[0005] The present disclosure provides a method for feeding back target data to a user terminal, an electronic device and a program product, to improve the data storage efficiency in a big data scenario.
[0006] According to a first aspect of the present disclosure, a method for feeding back target data to a user terminal is provided, comprising:
[0007] receiving an acquisition request for acquiring target data from source data, wherein the acquisition request comprises a data filtering condition for acquiring target data from the source data;
[0008] acquiring target data corresponding to the data filtering condition from the database, and sending the target data; wherein the target data is obtained by pre-processing the source data according to the data filtering condition, and the storage period of the target data in the database is a target service period, and the target service period is determined according to service order information of each user.
[0009] According to a second aspect of the present disclosure, an apparatus for feeding back target data to a user terminal is provided, comprising:
[0010] a receiving unit configured to receive an acquisition request; the acquisition request is used to acquire target data from source data, and the acquisition request comprises a data filtering condition for acquiring target data from the source data;
[0011] The acquisition unit is configured to acquire target data corresponding to the data screening condition from the database; wherein the target data is obtained by processing the source data according to the data screening condition in advance, and a storage period of the target data in the database is a target service period, and the target service period is determined according to service order information of each user.
[0012] The sending unit is configured to send the target data.
[0013] According to a third aspect of the present disclosure, an electronic device is provided, comprising:
[0014] at least one processor; and
[0015] a memory connected with the at least one processor in communication; wherein
[0016] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of the first aspect.
[0017] According to a fourth aspect of the present disclosure, a non-transitory computer readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to perform the method of the first aspect.
[0018] According to a fifth aspect of the present disclosure, a computer program product is provided, comprising: a computer program stored in a readable storage medium, and at least one processor of an electronic device can read the computer program from the readable storage medium, and the at least one processor executes the computer program to enable the electronic device to perform the method of the first aspect.
[0019] It should be understood that the contents described in this part are not intended to identify key or important features of the embodiments of the present disclosure, nor to limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS
[0020] The accompanying drawings are used to better understand the present scheme, and do not constitute a limitation on the present disclosure. Among them:
[0021] Figure 1 A flowchart of a method for feeding back target data to a user terminal is shown for an exemplary embodiment of the present disclosure;
[0022] Figure 2 A flowchart of a method for feeding back target data to a user terminal is shown for another exemplary embodiment of the present disclosure;
[0023] Figure 3 A scene diagram is shown for an exemplary embodiment of the present disclosure;
[0024] Figure 4 A structure diagram of an apparatus for feeding back target data to a user terminal according to an example embodiment of the present disclosure is shown in the figure.
[0025] Figure 5 A structure diagram of an apparatus for feeding back target data to a user terminal according to another example embodiment of the present disclosure is shown in the figure.
[0026] Figure 6 A block diagram of an electronic device for implementing the method according to an example embodiment of the present disclosure is shown in the figure. DETAILED DESCRIPTION
[0027] The exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, which include various details of the embodiments of the present disclosure to assist in understanding, and should be considered as merely exemplary. Thus, those of ordinary skill in the art will recognize various changes and modifications of the embodiments described herein, without departing from the scope and spirit of the present disclosure. Also, in the following description, descriptions of well-known functions and constructions are omitted for clarity and conciseness.
[0028] At present, many big data systems usually provide services for multiple users, and each user can obtain data from the big data system. The service data used by each user can be overlapped or different. At the same time, the service data of each user needs to be isolated to protect the security of the service data.
[0029] In order to store the data in this application scenario, there are approximately two kinds of existing multi-storage solutions:
[0030] Different customers use different databases for storage, that is, each customer stores a data model. This solution cannot share data with the same customer needs, increases the system storage pressure, and frequently building tables puts a large pressure on the database.
[0031] All customers can use the same data for storage, and the data contains the needs of all customers. Although this solution can share service data, it cannot effectively manage and delete some obviously unnecessary data, thereby wasting storage space.
[0032] In order to solve the above technical problems, the solution provided by the present disclosure pre-processes source data according to data filtering conditions to obtain target data, and determines a target service period according to service order information of each user, so as to store the target data in the database based on the target service period. This way can not only share data with the same customer needs, but also effectively manage each target data according to the target service period, thereby improving the data management efficiency under the big data system.
[0033] Figure 1A flowchart of a method for feeding back target data to a user terminal is shown for an exemplary embodiment of the present disclosure.
[0034] As shown in Figure 1 The method for feeding back target data to a user terminal provided by the present disclosure comprises:
[0035] In step 101, a request for obtaining target data from source data is received, and the request includes data filtering conditions for obtaining target data from source data.
[0036] The scheme provided by the present disclosure is executed by a big data background server, and the server stores target data, which is obtained by processing source data according to data filtering conditions in advance. The storage period of the target data in the database is the target service period, which is determined according to the service order information of each user.
[0037] Among them, the server can store source data, and when the user terminal accesses the server, it generally obtains data from the source data based on certain data filtering conditions, and uses these data for big data processing.
[0038] Specifically, a plurality of target data can be obtained by processing source data according to data filtering conditions in advance, for example, there are 50 data filtering conditions, and the user terminal can obtain data from the source data based on these 50 conditions, and the server can determine the corresponding target data according to these data filtering conditions.
[0039] Further, the corresponding target data can be determined for each data filtering condition.
[0040] In actual application, the user can also operate the user terminal to order services in the server, thereby generating service order information, for example, user A operates user terminal PC A to order services corresponding to data filtering conditions 1-10, and the service period is M days, and user B operates user terminal PC B to order services corresponding to data filtering conditions 3-20, and the service period is N days.
[0041] The server can also determine the target service period corresponding to each data filtering condition according to the service order information of each user. If multiple users have ordered services corresponding to the data filtering conditions, the target service period of the service can be determined according to the service period in the service order information of these users. If only one user has ordered services corresponding to the data filtering conditions, the service period in the service order information of the user can be determined as the target service period of the service.
[0042] For example, the service period corresponding to the data filtering condition 1 is M days, and the service period corresponding to the data filtering condition 3 is M days and N days. The target service period of the data filtering condition 1 is M days, and the target service period of the data filtering condition 3 is the longest time between M days and N days.
[0043] Further, when the user terminal needs to use the service provided by the big data server, the server can be sent an acquisition request for obtaining target data from source data.
[0044] In an optional implementation, if the server stores a plurality of source data, the acquisition request can further include a source data identifier. For example, the identifier represents the identifier of population data, and for another example, the identifier represents the identifier of existing vehicle data.
[0045] In actual application, the acquisition request includes a data filtering condition for obtaining target data from source data. For example, the user terminal sends the acquisition request including the data filtering condition 1 to the server, and the server can send the target data corresponding to the data filtering condition 1 to the user terminal, so that the user terminal can process based on the target data.
[0046] Step 102, obtaining target data corresponding to the data filtering condition from the database and sending the target data; wherein the target data is obtained by processing the source data according to the data filtering condition in advance, the storage period of the target data in the database is a target service period, and the target service period is determined according to the service order information of each user.
[0047] Specifically, after the server receives the acquisition request, the target data corresponding to the data filtering condition in the acquisition request can be determined from the stored target data.
[0048] For example, the server stores target data corresponding to data filtering conditions 1-10 respectively, and if the acquisition request includes the data filtering condition 1, the server can obtain the target data corresponding to the data filtering condition 1 and feed back to the user terminal.
[0049] For another example, the server stores target data corresponding to data filtering conditions 1-10 respectively, and if the acquisition request includes the data filtering condition 1 and the data filtering condition 2, the server can obtain the target data corresponding to the data filtering conditions 1 and 2 respectively, and feed back to the user terminal.
[0050] In this implementation, the target data can be shared by the user terminals, thereby reducing the space occupied when storing the data. In this implementation, the server can directly obtain the target data obtained in advance and feed back to the user terminals, without the need to filter the data from the source data according to the acquisition request sent by the user terminals, thereby improving the efficiency of feeding back the data to the user terminals. In addition, in the scheme provided by the present disclosure, the target data is stored in the database according to the target service period, thereby facilitating the management of expired data, and further improving the data management efficiency.
[0051] The method for feeding back target data to a user terminal provided by the present disclosure comprises: receiving an acquisition request for acquiring target data from source data, the acquisition request comprising a data filtering condition for acquiring target data from source data; acquiring target data corresponding to the data filtering condition from the database and sending the target data; wherein the target data is obtained by pre-processing the source data according to the data filtering condition, the storage period of the target data in the database is a target service period, and the target service period is determined according to the service order information of each user. In the scheme provided by the present disclosure, the target data can be pre-stored, and each user terminal can share these data, and these target data have a target service period, which facilitates the management of expired target data, and therefore the scheme provided by the present disclosure can improve the data management efficiency.
[0052] Figure 2 The flowchart of the method for feeding back target data to a user terminal according to another exemplary embodiment of the present disclosure is shown.
[0053] As shown in Figure 2 The method for feeding back target data to a user terminal provided by the present disclosure comprises:
[0054] Step 201: Acquire source data, and process the source data according to a preset data filtering condition to obtain each target data corresponding to each data filtering condition.
[0055] The server of the big data platform can acquire the source data, for example, the server can be connected with a platform for storing source data, and then acquire the source data from the platform.
[0056] Specifically, each user terminal can acquire data from the server based on certain filtering conditions. In order to improve the efficiency of the server feeding back data to the user terminals, the server can pre-process the data source according to the data filtering condition to obtain each target data corresponding to each data filtering condition.
[0057] Further, the user can operate the user terminal to subscribe to services of the big data platform, and the services correspond to the data filtering conditions. For example, if the user subscribes to a service, the user can obtain data from the server through the filtering condition corresponding to the service.
[0058] In actual application, after the server obtains the source data, the server can determine the corresponding target data according to the data filtering conditions. Specifically, the server can process the source data according to the data filtering conditions corresponding to the services subscribed by the users. For example, the server can provide 100 data filtering conditions, and the services subscribed by the users correspond to 80 data filtering conditions. Then, the server can process the source data according to the 80 data filtering conditions to obtain the target data.
[0059] For example, the source data can be device sales data, and the data filtering conditions can include regional information. For example, one filtering condition can be the sales data of the device in Beijing, and another filtering condition can be the sales data of the device in Shanghai. Then, the server can process the source data according to these filtering conditions to obtain the target data corresponding to the regional information, such as the sales data of the device in Beijing and the sales data of the device in Shanghai.
[0060] In an optional condition, the data filtering conditions include regional information. For example, one filtering condition can include the regional information of Beijing, and another filtering condition can include the regional information of Shanghai.
[0061] The source data includes data of multiple regions. The server can process the source data according to the regional information in the data filtering conditions to obtain the target data corresponding to the regional information. For example, the target data can be determined according to the regional information at the provincial level, the regional information at the prefectural level, and the like. Specifically, the source data can be processed according to the granularity in the filtering conditions.
[0062] In this way, the target data corresponding to the regional information can be obtained by processing the source data, so that the target data can be stored, and multiple users can share the target data.
[0063] In step 202, the target data corresponding to the data filtering conditions is stored in the database.
[0064] In addition, the database can be set up, and the user terminal can access the database to obtain the target data.
[0065] Specifically, after the server determines the target data corresponding to the data filtering conditions, the server can store the target data in the database, and the target data can be fed back to the user terminal through the database, so that the server can respond to the obtaining request of the user terminal more quickly.
[0066] Further, the target service period of each data filtering condition can be set, so that the target data is managed according to the target service period. When the storage time of the target data reaches the target service period corresponding to the target data, the target data can be cleared.
[0067] In step 203, the service order information of the user is obtained, the data filtering condition corresponding to the user is determined according to the service order information, and the service period corresponding to the data filtering condition is determined.
[0068] In actual application, the server can obtain the service order information of each user, determine the data filtering condition corresponding to the user according to the service order information, and determine the service period corresponding to the data filtering condition.
[0069] The service order information can include the data filtering condition, which is used to represent which data filtering conditions provided by the server can be used by the user to obtain data.
[0070] The service order information can also include the service period, which is used to represent the use time length of the data filtering condition used by the user to obtain data, for example, 30 days, 60 days, etc. Specifically, it can include the service period corresponding to each data filtering condition included in the service order information, for example, the user's service order includes 10 data filtering conditions, and the service period corresponding to each of the 10 data filtering conditions can also be included.
[0071] In step 204, the target service period of the data filtering condition is determined according to the service period of the data filtering condition.
[0072] Specifically, for each service order information of each user, the server can determine the data filtering condition and the service period corresponding thereto.
[0073] Further, since there are multiple service order information, one data filtering condition can correspond to multiple service periods, in which case, the target service period of the data filtering condition can be determined according to the service period of the data filtering condition.
[0074] In actual application, when the target service period of the data filtering condition is determined, the longest period in the service period of the data filtering condition can be determined as the target service period of the data filtering condition.
[0075] For example, one data filtering condition corresponds to service periods t1, t2, and t3, and the longest service period among them can be determined as the target service period of the data filtering condition. In this way, when only one copy of the target data is stored, the maximum storage period of the target data can be met.
[0076] In step 205, the target data corresponding to the data filtering condition is stored in the database according to the target service period of the data filtering condition.
[0077] In actual application, the server can store the target data corresponding to the data filtering condition in the database according to the target service period of the data filtering condition.
[0078] For example, the target service period of the data filtering condition is T, and the storage period of the target data is T when the target data of the data filtering condition is stored in the database.
[0079] In this way, the target data can be stored according to the different storage periods of the customers, and the target data can be managed based on the storage period of the target data.
[0080] The database can include multiple sub-databases. For example, the database for storing each target data can be in the form of a table, and the table can include multiple sub-tables.
[0081] Specifically, each sub-database corresponds to a target service period T, and each target data with the same target service period can be stored in the same sub-database, and the sub-database corresponds to the same target service period. For example, sub-database 1 corresponds to 30 days, sub-database 2 corresponds to 60 days, and sub-database 3 corresponds to 90 days. Each target data with a target service period of 30 days can be stored in sub-database 1, each target data with a target service period of 60 days can be stored in sub-database 2, and each target data with a target service period of 90 days can be stored in sub-database 3.
[0082] In this way, multiple target data with the same target service period can be managed uniformly, and the efficiency of target data management can be further improved.
[0083] In an optional implementation, the target service period of the target data can also be adjusted according to the new subscription service of the user, and the storage sub-database thereof can also be adjusted.
[0084] In step 206, when the target service period corresponding to the target data stored in the database is reached, the target data stored in the database is deleted.
[0085] Further, the server can also effectively manage the target data according to the target service period of each target data. For example, the corresponding target data can be deleted when the target service period is reached.
[0086] For example, the target service period corresponding to the sub-database 1 is 30 days, and each target data in the sub-database can be deleted after 30 days. Therefore, in this way, the plurality of target data stored in the sub-database can be uniformly managed according to the target service period, so as to release the storage resource of the database in time, thereby improving the storage efficiency of the database.
[0087] In step 207, a request for obtaining target data from source data is received, and the request includes a data filtering condition for obtaining the target data from the source data. The data filtering condition includes at least one regional information.
[0088] The user terminal can send a request to the server, and the request can include a data filtering condition, and the data filtering condition can include at least one regional information.
[0089] The request is used to obtain target data from source data, and the server can filter the target data from the source data according to the data filtering condition in the request, and feed back the target data to the user terminal.
[0090] In step 208, each target data corresponding to each regional information is obtained from the database.
[0091] Specifically, in order to improve the feedback speed of the target data, the server can directly obtain each target data corresponding to each regional information from the database.
[0092] In this embodiment, the server does not need to filter the target data from the source data according to the data filtering condition, but can directly obtain each target data corresponding to the data filtering condition from the database, specifically, obtain each target data corresponding to each regional information in the data filtering condition, thereby saving the time for filtering the target data from the source data.
[0093] Figure 3 The scenario diagram shown for an example embodiment of the present disclosure.
[0094] As Figure 3 shown, the server 31 can store a plurality of target data, and each target data corresponds to a data filtering condition.
[0095] The user terminal 32 can send a request to the server 31, and the request includes a data filtering condition. The server 31 obtains the target data corresponding to the data filtering condition and feeds back to the user terminal 32.
[0096] Figure 4 The structure diagram of the device for feeding back the target data to the user terminal shown for an example embodiment of the present disclosure.
[0097] As Figure 4As shown, the device 400 for feeding target data to user terminals provided by the present disclosure comprises:
[0098] The receiving unit 410 is configured to receive an acquisition request, wherein the acquisition request is used to acquire target data from source data, and the acquisition request comprises data filtering conditions used to acquire target data from the source data.
[0099] The acquisition unit 420 is configured to acquire target data corresponding to the data filtering conditions from the database, wherein the target data is obtained by processing the source data according to the data filtering conditions in advance, and a storage period of the target data in the database is a target service period, and the target service period is determined according to service order information of each user.
[0100] The sending unit 430 is configured to send the target data.
[0101] The device for feeding target data to user terminals provided by the present disclosure can pre-store target data, each user terminal can share the data, and the target data has a target service period, which facilitates management of expired target data, and therefore, the scheme provided by the present disclosure can improve data management efficiency.
[0102] Figure 5 FIG. 4 is a structural schematic diagram of a device for feeding target data to user terminals according to another example embodiment of the present disclosure.
[0103] As shown in FIG. 5, the device 500 for feeding target data to user terminals provided by the present disclosure comprises: Figure 5 The receiving unit 510 is similar to the receiving unit 410 in the device shown in FIG. 4, the acquisition unit 520 is similar to the acquisition unit 420 in the device shown in FIG. 4, and the sending unit 530 is similar to the sending unit 430 in the device shown in FIG. 4. Figure 4 The receiving unit 510 is similar to the receiving unit 410 in the device shown in FIG. 4, the acquisition unit 520 is similar to the acquisition unit 420 in the device shown in FIG. 4, and the sending unit 530 is similar to the sending unit 430 in the device shown in FIG. 4. Figure 4 The receiving unit 510 is similar to the receiving unit 410 in the device shown in FIG. 4, the acquisition unit 520 is similar to the acquisition unit 420 in the device shown in FIG. 4, and the sending unit 530 is similar to the sending unit 430 in the device shown in FIG. 4. Figure 4 The receiving unit 510 is similar to the receiving unit 410 in the device shown in FIG. 4, the acquisition unit 520 is similar to the acquisition unit 420 in the device shown in FIG. 4, and the sending unit 530 is similar to the sending unit 430 in the device shown in FIG. 4.
[0104] In an optional implementation, the data filtering conditions comprise at least one regional information.
[0105] The acquisition unit 520 is specifically configured to:
[0106] Acquire each target data corresponding to each regional information from the database.
[0107] In an optional implementation, the device further comprises a preprocessing unit 540, configured to:
[0108] Acquire the source data, process the source data according to the preset data filtering conditions, and obtain each target data corresponding to each data filtering condition;
[0109] store the target data corresponding to the data screening condition in the database.
[0110] In an optional implementation, the data screening condition comprises regional information.
[0111] The preprocessing unit 540 comprises:
[0112] The screening module 541 is configured to screen, from the source data, data meeting the regional information as target data corresponding to the regional information.
[0113] In an optional implementation, the preprocessing unit 540 comprises:
[0114] The period acquisition module 542 is configured to acquire service order information of a user, determine, according to the service order information, a data screening condition corresponding to the user and a service period corresponding to the data screening condition.
[0115] The period determination module 543 is configured to determine, according to the service periods of the data screening condition, a target service period of the data screening condition.
[0116] The storage module 544 is configured to store, according to the target service period of the data screening condition, target data corresponding to the data screening condition in the database.
[0117] In an optional implementation, the period determination module 543 is specifically configured to:
[0118] determine, as the target service period of the data screening condition, a longest period in the service periods of the data screening condition.
[0119] In an optional implementation, the database comprises a plurality of sub-databases.
[0120] The storage module 544 is specifically configured to:
[0121] store, in a same sub-database, target data of each of the data screening conditions with the same target service period, the sub-database corresponding to the same target service period.
[0122] In an optional implementation, the apparatus further comprises a deletion unit 550 configured to:
[0123] when the target service period corresponding to the target data stored in the database is reached, delete the target data stored in the database.
[0124] The present disclosure provides a method for feeding back target data to a user terminal, an electronic device and a program product, which are applied to big data technology and data storage technology in computer technology, so as to improve data storage efficiency in a big data scenario.
[0125] In the technical solutions of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information comply with relevant laws and regulations and do not violate public order and good customs.
[0126] According to the embodiments of the present disclosure, the present disclosure further provides an electronic device, a readable storage medium and a computer program product.
[0127] According to the embodiments of the present disclosure, the present disclosure further provides a computer program product, which comprises a computer program stored in a readable storage medium, at least one processor of an electronic device can read the computer program from the readable storage medium, and the at least one processor executes the computer program to make the electronic device execute the scheme provided in any of the above embodiments.
[0128] Figure 6 A schematic block diagram of an example electronic device 600 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptops, desktops, tablets, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular telephones, smart phones, wearable devices, and other similar computing devices. The components shown here, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present disclosure described and / or claimed in this document.
[0129] As shown in Figure 6 The device 600 includes a computing unit 601 that can perform various appropriate actions and processes in accordance with a computer program stored in a read-only memory (ROM) 602 or a computer program loaded into a random access memory (RAM) 603 from a storage unit 608. Various programs and data required for the operation of the device 600 can also be stored in the RAM 603. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0130] A number of components in the device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information / data with other devices through computer networks, such as the Internet, and / or various telecommunication networks.
[0131] The computing unit 601 can be various general and / or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 601 performs various methods and processes described above, such as the method of feeding back target data to a user terminal. For example, in some embodiments, the method of feeding back target data to a user terminal can be implemented as a computer software program, which is tangibly embodied in a machine-readable medium, such as the storage unit 608. In some embodiments, part or all of the computer program can be loaded and / or installed onto the device 600 via the ROM 602 and / or the communication unit 609. When the computer program is loaded onto the RAM 603 and executed by the computing unit 601, one or more steps of the method of feeding back target data to a user terminal described above can be performed. Alternatively, in other embodiments, the computing unit 601 can be configured to perform the method of feeding back target data to a user terminal by any other appropriate means, such as by means of firmware.
[0132] The various implementations of the systems and techniques described above can be realized in digital electronic circuitry, integrated circuitry, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on a chip (SOC), a programmable logic device (PLD), a computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
[0133] Program code for carrying out methods of the present disclosure can be written in any combination of one or more programming languages. The program code can be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the program code, when executed by the processor or controller, produces the functions / operations specified in the flowcharts and / or block diagrams. The program code can be executed entirely on a machine, partially on a machine, partially on a machine as a standalone software package, or entirely on a remote machine or server.
[0134] In the context of the present disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include but is not limited to an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium will include one or more lines of electrical connections, portable computer disks, hard disk drives, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or Flash memory), optical fibers, portable compact disc read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0135] To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
[0136] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), and the Internet.
[0137] The computer system can include clients and servers. This relationship can be. The servers are typically remote from the clients with the interactions typically taking place over a communication network. The relationship between client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system. It solves the defects of large management difficulty and weak business scalability in traditional physical host and VPS (Virtual Private Server, or VPS for short) services. The server can also be a server of a distributed system, or a server combined with a blockchain.
[0138] It should be understood that the various forms of flow shown above can be reordered, steps added or removed. For example, the steps recited in the present disclosure can be performed in parallel, in series, or in a different order, as long as the desired results of the technology disclosed in the present disclosure are achieved, which are not limited herein.
[0139] The above detailed description does not constitute a limitation on the protection scope of the present disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent replacements and improvements within the spirit and principles of the present disclosure should be included in the protection scope of the present disclosure.
Claims
1. A method for feeding back target data to a user terminal, comprising: Receive a request for obtaining target data from source data, the request including data filtering conditions for obtaining target data from the source data, the data filtering conditions including at least one geographic information; Retrieve target data corresponding to the data filtering conditions from the database and send the target data; wherein the target data is obtained by pre-processing the source data according to the data filtering conditions, the storage period of the target data in the database is the target service period, the target service period is determined according to the service order information of each user, and the target service period is the longest service period in the service order information of each user corresponding to the data filtering conditions.
2. The method according to claim 1, The step of retrieving the target data corresponding to the data filtering conditions from the database includes: Retrieve the target data corresponding to each of the aforementioned geographical information from the database.
3. The method according to claim 1, further comprising: The source data is obtained, and the source data is processed according to the preset data filtering conditions to obtain the target data corresponding to each of the data filtering conditions. The database stores the target data corresponding to each of the data filtering conditions.
4. The method according to claim 3, If the data filtering condition includes a geographical location, then processing the source data according to the preset data filtering condition to obtain target data corresponding to each of the data filtering conditions includes: From the source data, data that matches the regional information is selected as target data corresponding to the regional information.
5. The method according to claim 3, wherein, The storage of target data corresponding to each of the data filtering conditions in the database includes: Obtain the user's service order information, and determine the data filtering conditions corresponding to the user and the service period corresponding to the data filtering conditions based on the service order information; Based on each of the service periods of the data filtering conditions, determine the target service period of the data filtering conditions; Based on the target service period of the data filtering conditions, target data corresponding to the data filtering conditions is stored in the database.
6. The method according to claim 5, wherein, Determining the target service period for each of the data filtering conditions based on the service periods of the data filtering conditions includes: The longest period among the service periods of the data filtering conditions is determined as the target service period of the data filtering conditions.
7. The method according to claim 5, wherein, The database includes multiple sub-databases; The step of storing target data corresponding to the data filtering conditions in the database according to the target service period based on the data filtering conditions includes: The target data with the same target service period and each of the data filtering conditions are stored in the same sub-database, and the sub-database corresponds to the same target service period.
8. The method according to claim 5, further comprising: When the target service period corresponding to the target data stored in the database arrives, the target data stored in the database is deleted.
9. An apparatus for feeding back target data to a user terminal, comprising: The receiving unit is used to receive acquisition requests; The acquisition request is used to acquire target data from source data. The acquisition request includes data filtering conditions for acquiring target data from source data. The data filtering conditions include at least one geographic information. An acquisition unit is used to acquire target data corresponding to the data filtering conditions from a database; wherein the target data is obtained by pre-processing the source data according to the data filtering conditions, the storage period of the target data in the database is a target service period, the target service period is determined according to the service order information of each user, and the target service period is the longest service period corresponding to the data filtering conditions in the service order information of each user; A sending unit is used to send the target data.
10. The apparatus according to claim 9, The acquisition unit is specifically used for: Retrieve the target data corresponding to each of the aforementioned geographical information from the database.
11. The apparatus of claim 9, further comprising a preprocessing unit for: The source data is obtained, and the source data is processed according to the preset data filtering conditions to obtain the target data corresponding to each of the data filtering conditions. The database stores the target data corresponding to each of the data filtering conditions.
12. The apparatus according to claim 11, wherein, If the data filtering criteria include a geographical location, then The preprocessing unit includes: The filtering module is used to filter out data that matches the regional information from the source data, and use it as target data corresponding to the regional information.
13. The apparatus according to claim 11, wherein, The preprocessing unit includes: The cycle acquisition module is used to acquire the user's service order information, determine the data filtering conditions corresponding to the user and the service cycle corresponding to the data filtering conditions based on the service order information; The period determination module is used to determine the target service period of the data filtering conditions based on each of the service periods of the data filtering conditions. The storage module is used to store target data corresponding to the data filtering conditions in the database according to the target service period of the data filtering conditions.
14. The apparatus according to claim 13, wherein, The period determination module is specifically used for: The longest period among the service periods of the data filtering conditions is determined as the target service period of the data filtering conditions.
15. The apparatus according to claim 13, wherein, The database includes multiple sub-databases; The storage module is specifically used for: The target data with the same target service period and each of the data filtering conditions are stored in the same sub-database, and the sub-database corresponds to the same target service period.
16. The apparatus of claim 13, further comprising a deletion unit for: When the target service period corresponding to the target data stored in the database arrives, the target data stored in the database is deleted.
17. An electronic device comprising: At least one processor; as well as A memory that is communicatively connected to at least one processor; wherein, The memory stores instructions that can be executed by at least one processor to enable the at least one processor to perform the method of any one of claims 1-8.
18. A non-transitory computer-readable storage medium storing computer instructions, wherein, Computer instructions are used to cause a computer to perform the method according to any one of claims 1-8.
19. A computer program product comprising a computer program that, when executed by a processor, implements the steps of any one of claims 1-8.
Citation Information
Patent Citations
Data processing method and apparatus
CN108184170A