Screen end display data processing method and device, storage medium and electronic device
By obtaining display data from preset databases and search servers in smart homes, the problem of low feedback efficiency of display data when the data volume is too large is solved, and the stability of data storage and quick return of query is achieved.
Patent Information
- Application Number
- CN202411915709.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-05-06
AI Technical Summary
In smart home scenarios, when the amount of data is too large, the feedback efficiency of display data of a single database decreases, resulting in slower display data on the user side.
By obtaining display data from the preset database and obtaining display data from the preset search server without meeting the display data needs, the display data is fed back to the user for data content display.
It realizes the stability of data storage and the rapid return of data queries, solves the problem of low data feedback efficiency when the data volume is too large, and meets the user's usage expectations.
Smart Images

Figure CN119938741A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home, and more specifically, to a screen display data processing method, device, storage medium and electronic device. Background Art
[0002] In the smart home scenario, business operations will require displaying corresponding content on smart devices to enable interaction with users.
[0003] When the business runs for longer and longer time and the amount of data generated is larger, the data display on the user side will slow down, which will give the user a very bad experience. Based on the occurrence of this situation, when the amount of data is too large, it is necessary to use a reasonable method to split the data or use a more suitable storage tool to ensure that users are not affected. A single table in a database generally has an upper limit in terms of storing data. As the amount of data increases, the time to obtain data will continue to increase. In the prior art, in order to solve the problem of storing too much data, sharding can be used. Sharding can store huge amounts of data in tables in different databases, reduce the pressure on the database, and reduce the amount of data in a single table. When querying, query multiple tables in multiple databases, and finally aggregate the data and return it to the user end.
[0004] Since you must select one dimension when sharding libraries and tables, this will result in additional costs when you need to use other dimensions to query data. It may be necessary for each table in each library to obtain data before returning for display. Summary of the invention
[0005] The embodiments of the present application provide a screen display data processing method, device, storage medium and electronic device, aiming at ensuring the stability of data storage and the rapid return of data queries.
[0006] According to one aspect of an embodiment of the present application, a screen-end display data processing method is provided, including:
[0007] Sending a first display data request to a preset database according to the display data query request of the user terminal;
[0008] If the first display data fed back by the preset database does not meet the preset conditions, sending a second display data request to the preset search server; wherein the preset conditions include a time limit for the data;
[0009] Feedback display data to the user terminal based on the first display data and the second display data fed back by the preset search server, so that the user terminal displays corresponding data content.
[0010] In one implementation, if the first display data fed back by the preset database does not meet the preset condition, sending a second display data request to a preset search server includes:
[0011] sorting the data to be displayed in the first display data according to storage time;
[0012] Comparing the storage time of the earliest stored data to be displayed with the request time of the display data query request;
[0013] If the storage time of the earliest stored data to be displayed is later than the request time, the second display data request is sent to the preset search server.
[0014] In one implementation, before sending the first display data request to the preset database according to the display data query request of the user terminal, the method further includes:
[0015] The to-be-displayed data received from the management terminal is transmitted to the preset database as to-be-stored data, so that the preset database performs data storage.
[0016] In an implementation, the feeding back display data to the user terminal according to the first display data and the second display data fed back by the preset search server includes:
[0017] Performing a duplication check on the first display data and the second display data;
[0018] If duplicate data exists, the first display data and the second display data after deduplication are fed back to the user terminal as the display data.
[0019] In an implementation manner, after sending the first display data request to the preset database according to the display data query request of the user terminal, the method further includes:
[0020] If the first display data fed back by the preset database meets the preset condition, the first display data is fed back to the user terminal.
[0021] In one implementation, after the to-be-displayed data received from the management terminal is transmitted to the preset database as to-be-stored data, the method further includes:
[0022] A data synchronization instruction is sent to the preset database, so that the preset database synchronizes the stored data to the preset search server.
[0023] In one implementation, after the to-be-displayed data received from the management terminal is transmitted to the preset database as to-be-stored data, the method further includes:
[0024] A data cleaning instruction is sent to the preset database, wherein the data cleaning instruction includes a cleaning cycle, so that the preset database cleans up the timed data to be displayed according to the cleaning cycle.
[0025] According to another aspect of an embodiment of the present application, a screen-end display data processing device is provided, comprising:
[0026] A first data request module, configured to send a first display data request to a preset database according to a display data query request from a user terminal;
[0027] A second data request module, configured to send a second display data request to a preset search server if the first display data fed back by the preset database does not meet a preset condition; wherein the preset condition includes a time limit for the data;
[0028] The display data feedback module is used to feed back display data to the user terminal according to the first display data and the second display data fed back by the preset search server, so that the user terminal displays corresponding data content.
[0029] In one implementation, the second data request module is specifically configured to:
[0030] sorting the data to be displayed in the first display data according to storage time;
[0031] Comparing the storage time of the earliest stored data to be displayed with the request time of the display data query request;
[0032] If the storage time of the earliest stored data to be displayed is later than the request time, the second display data request is sent to the preset search server.
[0033] In one implementation, the screen-end display data processing device further includes:
[0034] The data storage module is used to transmit the to-be-displayed data received from the management end as to-be-stored data to the preset database before sending the first display data request to the preset database according to the display data query request of the user end, so that the preset database performs data storage.
[0035] In one implementation, the display data feedback module is specifically used to:
[0036] Performing a duplication check on the first display data and the second display data;
[0037] If duplicate data exists, the first display data and the second display data after deduplication are fed back to the user terminal as the display data.
[0038] In one implementation, the screen-end display data processing device further includes:
[0039] The first display data feedback module is used to feed back the first display data to the user terminal after sending the first display data request to the preset database according to the display data query request of the user terminal, if the first display data fed back by the preset database meets the preset condition.
[0040] In one implementation, the screen-end display data processing device further includes:
[0041] The data synchronization module is used to send a data synchronization instruction to the preset database after the to-be-displayed data received from the management terminal is transmitted to the preset database as to-be-stored data, so that the preset database synchronizes the stored data to the preset search server.
[0042] In one implementation, the screen-end display data processing device further includes:
[0043] A data cleaning module is used to send a data cleaning instruction to the preset database after the data to be displayed received from the management end is transmitted to the preset database as data to be stored, wherein the cleaning instruction includes a data cleaning cycle, so that the preset database cleans up the timed data to be displayed according to the cleaning cycle.
[0044] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is run, the screen-side display data processing method provided in any embodiment is executed.
[0045] According to another aspect of an embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute a screen-side display data processing method as provided in any embodiment through the computer program.
[0046] The embodiments of the present application provide a screen display data processing method, device, storage medium and electronic device, which obtain display data from a preset database and obtain display data from a preset search server when the display data requirements are not met, and combine the display data obtained from the two places to feed back to the user side for data content display, thereby solving the problem that when a single database is used, when the amount of data is too large, the display data feedback efficiency decreases, resulting in slow data display on the user side, and achieves the ability to reliably store data while quickly returning data to meet user expectations. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0048] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0049] Figure 1 It is a schematic diagram of a hardware environment for displaying data content by a smart device according to an embodiment of the present application;
[0050] Figure 2 is a flow chart of a screen display data processing method according to an embodiment of the present application;
[0051] Figure 3 is a schematic diagram of interaction of data storage and synchronization according to an embodiment of the present application;
[0052] Figure 4 is a structural schematic diagram of a screen-end display data processing device according to an embodiment of the present application;
[0053] Figure 5 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0054] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0055] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0056] According to one aspect of the embodiment of the present application, a method for displaying data content of a smart home device is provided. The method for displaying data content of a smart home device is widely used in smart home (Smart Home), smart home, smart home device ecology, smart residential (Intelligence House) ecology and other whole-house intelligent digital control application scenarios. Optionally, in this embodiment, the above-mentioned method for displaying data content of a smart home device can be applied to Figure 1 In the hardware environment composed of the terminal device 102 and the server 104 shown in FIG. Figure 1 As shown, the server 104 is connected to the terminal device 102 via a network, and can be used to provide services (such as application services, etc.) for the terminal or a client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data computing services for the server 104.
[0057] The network may include but is not limited to at least one of the following: wired network, wireless network. The wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal device 102 may be but is not limited to a PC, a mobile phone, a tablet computer, a smart air conditioner, a smart range hood, a smart refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing device, a smart dishwasher, a smart projection device, a smart TV, a smart clothes drying rack, a smart curtain, a smart audio and video, a smart socket, a smart speaker, a smart fresh air device, a smart kitchen and bathroom device, a smart bathroom device, a smart sweeping robot, a smart window cleaning robot, a smart mopping robot, a smart air purification device, a smart steamer, a smart microwave oven, a smart kitchen treasure, a smart purifier, a smart water dispenser, a smart door lock, etc.
[0058] According to one aspect of the embodiment of the present application, Figure 2 The flowchart of the screen-side display data processing method shown in the figure provides a screen-side display data processing method, which can be applied to a back-end server, including:
[0059] Step 220: Send a first display data request to a preset database according to the display data query request of the user terminal.
[0060] Among them, the smart device at the user end can be a device with output devices such as a display device and / or a sound output device, such as a smart phone, a tablet computer, a smart TV, a smart projection device, a smart speaker, a smart car machine and other smart devices. Of course, the smart device will also have an input device while having an output device to complete the user interaction. The user end displays the corresponding content required for the interaction to the user through the display device and / or the sound output device of the smart device. The content to be displayed requires the smart device to determine the data content to be displayed based on the display data, and display it to the user through the corresponding output device. For example, on a smart TV, subscription information, subscribed programs or the user's scheduled schedule can be pushed to the user through a pop-up window. The content of the smart TV pop-up window will contain text, images (such as thumbnails), and videos. Correspondingly, the display data refers to the character data, image data and / or streaming media data contained in the smart TV pop-up window. For different types of smart devices such as smart phones, tablet computers, and smart projection devices, the data content that needs to be displayed will be different, and the form of the display data will also be different, but all require the server to provide the display data to the user end, and then the corresponding output device configured on the smart device will display it to the user. For example, the way of displaying content in smart car machines and smart speakers can be voice broadcast, and the display data can be voice data, which needs to be output through a speaker. The display data required by the user end is predetermined according to the functions of the user end and the needs of the user. Of course, it can be understood that the data content that needs to be displayed in the interaction also includes the display content set by the user end system by default. The user end sends a display data query request to the back-end server through the network. The display data query request may include the user account, the type of smart device where the user end is located, and the request time of the data. The request time of the data is the time range of the data to be displayed. After receiving the display data query request sent by the user end, the back-end server determines the database where the data to be displayed required by the smart device under the user account is stored according to the user account and the type of smart device where the user end is located, and determines the dimension of the query data according to the user account and the type of smart device. The first display data request includes the request time of the data and the dimension of the query data, sends the first display data request to the preset database to which the connection is established in advance, and then waits for the preset database to return the corresponding display data.
[0061] Step 240: If the first display data fed back by the preset database does not meet the preset condition, a second display data request is sent to a preset search server.
[0062] Among them, the preset database performs data query according to the first display data request, and then feeds back the corresponding display data to the backend server, which is the first display data. The preset database corresponds to the preset search server, and the preset search server can use Elasticsearch, etc. When there is new data in the preset database, the data will be synchronized to the preset search server, and the data stored in the preset database itself generally only has the latest data, which can ensure the reliability of data storage, and for data with few updates and large query volume, storing it in the preset search server can improve query efficiency, and the preset database does not need to store a large amount of data, reducing the pressure on the database and reducing the amount of data in a single table. The backend server first sends the first display data request to the preset database, and the preset database feeds back the data to be displayed. If the first display data fed back cannot meet the needs of the user end to query data, it can send a second display data request to the preset search server. The second display data request has the same function as the first display data request, including the request time of the data and the dimension of the query data, but only queries the data from the preset search server. The preset condition can be to determine that the first display data contains all the display data required for the user end to display data query request, which is generally determined by comparing the request time of the data with the time of the local storage data of the preset database.
[0063] Step 260: Feedback display data to the user terminal based on the first display data and the second display data fed back by the preset search server, so that the user terminal displays corresponding data content.
[0064] Among them, since the preset database is constantly synchronizing data to the preset search server, the first display data fed back by the preset database and the second display data fed back by the preset search server may have data duplication. At this time, the corresponding functional module is required to process the data, eliminate the duplicate display data, and ensure that the returned data will not be repeated. Finally, the display data that the user terminal needs and has been processed is returned. When the display data is fed back to the user terminal, the display data can be compressed and packaged, and encrypted and sent. If the packaged display data is too large, the packaged file can be sliced and sent to improve the efficiency of sending data, reduce the waiting time for the user terminal to display the data content, and improve the user experience. It can be understood that after receiving the first display data fed back by the preset database, the display data management method can start to feed back the display data to the user terminal, and synchronously judge whether the first display data meets the preset conditions. If the first display data does not meet the preset conditions, a second display data request is sent to the preset search server. If the second display data has a part that is repeated with the first display data, the part that is repeated with the first display data in the second display data is removed, and the processed second display data is sent to the user terminal, which can also ensure the efficiency of the user terminal displaying the data content.
[0065] In one implementation, if the first display data fed back by the preset database does not meet the preset condition, sending a second display data request to a preset search server includes:
[0066] sorting the data to be displayed in the first display data according to storage time;
[0067] Comparing the storage time of the earliest stored data to be displayed with the request time of the display data query request;
[0068] If the storage time of the earliest stored data to be displayed is later than the request time, the second display data request is sent to the preset search server.
[0069] The first display data usually includes multiple pieces of data to be displayed, which are sent to the preset database for storage in advance through the back-end server. When the preset database feeds back the first display data, each piece of data to be displayed will correspond to the storage time, which can be reflected in the form of a timestamp. The data to be displayed in the first display data are sorted according to the storage time. If the earliest stored data to be displayed is still later than the request time of the user end for the display data query, there may be data requested by the query that is not stored locally in the preset database. In this case, the back-end server needs to send a second display data request to the preset search server to obtain the requested complete display data.
[0070] In one implementation, before sending the first display data request to the preset database according to the display data query request of the user terminal, the method further includes:
[0071] The to-be-displayed data received from the management terminal is transmitted to the preset database as to-be-stored data, so that the preset database performs data storage.
[0072] Among them, Figure 3 As shown, the management end is the back-end management software of the smart home system. The operation and maintenance personnel can manage the data that the smart devices need to display through the management end. The management end can send the data to be displayed to the back-end server, and the back-end server transmits the data to be displayed as data to be stored to the preset database. The preset database stores the data and records the storage time accordingly.
[0073] In an implementation, the feeding back display data to the user terminal according to the first display data and the second display data fed back by the preset search server includes:
[0074] Performing a duplication check on the first display data and the second display data;
[0075] If duplicate data exists, the first display data and the second display data after deduplication are fed back to the user terminal as the display data.
[0076] In an implementation manner, after sending the first display data request to the preset database according to the display data query request of the user terminal, the method further includes:
[0077] If the first display data fed back by the preset database meets the preset condition, the first display data is fed back to the user terminal.
[0078] In one implementation, after the to-be-displayed data received from the management terminal is transmitted to the preset database as to-be-stored data, the method further includes:
[0079] A data synchronization instruction is sent to the preset database, so that the preset database synchronizes the stored data to the preset search server.
[0080] Among them, Figure 3 In the embodiment, after the preset database stores the data to be displayed, the stored data can be synchronized to the preset search server according to the synchronization instruction of the back-end server. Of course, the synchronization strategy can also be pre-set by the back-end server, so that the preset database automatically synchronizes the data to the preset search server according to the synchronization strategy, without the need for the back-end server to send a data synchronization instruction every time the synchronization is performed. The synchronization strategy can be to synchronize data according to a certain period, or to trigger data synchronization whenever there is new data and the new data reaches a preset storage threshold.
[0081] In one implementation, after the to-be-displayed data received from the management terminal is transmitted to the preset database as to-be-stored data, the method further includes:
[0082] A data cleaning instruction is sent to the preset database, wherein the data cleaning instruction includes a cleaning cycle, so that the preset database cleans up the timed data to be displayed according to the cleaning cycle. After the preset database stores the data to be displayed, a portion of the stored data with a longer storage time can be cleaned up according to the data cleaning instruction of the back-end server to reduce the burden on the preset database. The data cleaning instruction may include a data cleaning cycle, thereby specifying that the preset database deletes the data to be displayed whose storage time exceeds the cleaning cycle according to the cleaning cycle, so that the preset database only retains the latest data for a period of time, and when the preset database is queried for display data, the feedback speed of the preset database will be faster.
[0083] According to another aspect of the embodiment of the present application, Figure 4The structural schematic diagram of the screen-end display data processing device shown in the figure provides a screen-end display data processing device, which can be integrated into a back-end server, including:
[0084] The first data request module 420 is configured to send a first display data request to a preset database according to a display data query request from a user terminal.
[0085] Among them, the smart device at the user end can be a device with output devices such as a display device and / or a sound output device, such as a smart phone, a tablet computer, a smart TV, a smart projection device, a smart speaker, a smart car machine and other smart devices. Of course, the smart device will also have an input device while having an output device to complete the user interaction. The user end displays the corresponding content required for the interaction to the user through the display device and / or the sound output device of the smart device. The content to be displayed requires the smart device to determine the data content to be displayed based on the display data, and display it to the user through the corresponding output device. For example, on a smart TV, subscription information, subscribed programs or the user's scheduled schedule can be pushed to the user through a pop-up window. The content of the smart TV pop-up window will contain text, images (such as thumbnails), and videos. Correspondingly, the display data refers to the character data, image data and / or streaming media data contained in the smart TV pop-up window. For different types of smart devices such as smart phones, tablet computers, and smart projection devices, the data content that needs to be displayed will be different, and the form of the display data will also be different, but all require the server to provide the display data to the user end, and then the corresponding output device configured on the smart device will display it to the user. For example, the way of displaying content in smart car machines and smart speakers can be voice broadcast, and the display data can be voice data, which needs to be output through a speaker. The display data required by the user end is predetermined according to the functions of the user end and the needs of the user. Of course, it can be understood that the data content that needs to be displayed in the interaction also includes the display content set by the user end system by default. The user end sends a display data query request to the back-end server through the network. The display data query request may include the user account, the type of smart device where the user end is located, and the request time of the data. The request time of the data is the time range of the data to be displayed. After receiving the display data query request sent by the user end, the back-end server determines the database where the data to be displayed required by the smart device under the user account is stored according to the user account and the type of smart device where the user end is located, and determines the dimension of the query data according to the user account and the type of smart device. The first display data request includes the request time of the data and the dimension of the query data, sends the first display data request to the preset database to which the connection is established in advance, and then waits for the preset database to return the corresponding display data.
[0086] The second data request module 440 is configured to send a second display data request to a preset search server if the first display data fed back by the preset database does not meet a preset condition.
[0087] Among them, the preset database performs data query according to the first display data request, and then feeds back the corresponding display data to the backend server, which is the first display data. The preset database corresponds to the preset search server, and the preset search server can use Elasticsearch, etc. When there is new data in the preset database, the data will be synchronized to the preset search server, and the data stored in the preset database itself generally only has the latest data, which can ensure the reliability of data storage, and for data with few updates and large query volume, storing it in the preset search server can improve query efficiency, and the preset database does not need to store a large amount of data, reducing the pressure on the database and reducing the amount of data in a single table. The backend server first sends the first display data request to the preset database, and the preset database feeds back the data to be displayed. If the first display data fed back cannot meet the needs of the user end to query data, it can send a second display data request to the preset search server. The second display data request has the same function as the first display data request, including the request time of the data and the dimension of the query data, but only queries the data from the preset search server. The preset condition can be to determine that the first display data contains all the display data required for the user end to display data query request, which is generally determined by comparing the request time of the data with the time of the local storage data of the preset database.
[0088] The display data feedback module 460 is used to feed back display data to the user terminal according to the first display data and the second display data fed back by the preset search server, so that the user terminal displays corresponding data content.
[0089] Among them, since the preset database is constantly synchronizing data to the preset search server, the first display data fed back by the preset database and the second display data fed back by the preset search server may have data duplication. At this time, the corresponding functional module is required to process the data, eliminate the duplicate display data, and ensure that the returned data will not be repeated. Finally, the display data that the user terminal needs and has been processed is returned. When the display data is fed back to the user terminal, the display data can be compressed and packaged, and encrypted and sent. If the packaged display data is too large, the packaged file can be sliced and sent to improve the efficiency of sending data, reduce the waiting time for the user terminal to display the data content, and improve the user experience. It can be understood that after receiving the first display data fed back by the preset database, the display data management method can start to feed back the display data to the user terminal, and synchronously judge whether the first display data meets the preset conditions. If the first display data does not meet the preset conditions, a second display data request is sent to the preset search server. If the second display data has a part that is repeated with the first display data, the part that is repeated with the first display data in the second display data is removed, and the processed second display data is sent to the user terminal, which can also ensure the efficiency of the user terminal displaying the data content.
[0090] In one implementation, the second data request module is specifically configured to:
[0091] sorting the data to be displayed in the first display data according to storage time;
[0092] Comparing the storage time of the earliest stored data to be displayed with the request time of the display data query request;
[0093] If the storage time of the earliest stored data to be displayed is later than the request time, the second display data request is sent to the preset search server.
[0094] In one implementation, the screen-end display data processing device further includes:
[0095] The data storage module is used to transmit the to-be-displayed data received from the management end as to-be-stored data to the preset database before sending the first display data request to the preset database according to the display data query request of the user end, so that the preset database performs data storage.
[0096] In one implementation, the display data feedback module is specifically used to:
[0097] Performing a duplication check on the first display data and the second display data;
[0098] If duplicate data exists, the first display data and the second display data after deduplication are fed back to the user terminal as the display data.
[0099] In one implementation, the screen-end display data processing device further includes:
[0100] The first display data feedback module is used to feed back the first display data to the user terminal after sending the first display data request to the preset database according to the display data query request of the user terminal, if the first display data fed back by the preset database meets the preset condition.
[0101] In one implementation, the screen-end display data processing device further includes:
[0102] The data synchronization module is used to send a data synchronization instruction to the preset database after the to-be-displayed data received from the management terminal is transmitted to the preset database as to-be-stored data, so that the preset database synchronizes the stored data to the preset search server.
[0103] In one implementation, the screen-end display data processing device further includes:
[0104] A data cleaning module is used to send a data cleaning instruction to the preset database after the data to be displayed received from the management end is transmitted to the preset database as data to be stored, wherein the data cleaning instruction includes a data cleaning cycle, so that the preset database cleans up the timed data to be displayed according to the cleaning cycle.
[0105] According to another aspect of the embodiment of the present invention, Figure 5 A schematic diagram of the structure of an electronic device provided in Embodiment 5 of the present invention is shown in FIG. Figure 5 As shown, the electronic device includes a processor 510, a memory 520, an input device 530, and an output device 540; the number of processors 510 in the electronic device can be one or more. Figure 5 A processor 510 is taken as an example; the processor 510, the memory 520, the input device 530 and the output device 540 in the electronic device can be connected via a bus or other means. Figure 5 The example of connecting through bus is taken in the following.
[0106] The memory 520, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the screen-side display data processing method in the embodiment of the present invention (for example, the first data request module 420, the second data request module 440 and the display data feedback module 460 in the screen-side display data processing device). The processor 510 executes various functional applications and data processing of the electronic device by running the software programs, instructions and modules stored in the memory 520, that is, realizes the above-mentioned screen-side display data processing method.
[0107] The memory 520 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 520 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 520 may further include a memory remotely arranged relative to the processor 510, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0108] The input device 530 can be used to receive input digital or character information, and generate key signal input related to user settings and function control of the electronic device. It can also be a camera for acquiring images and a sound pickup device for acquiring audio data. The output device 540 may include display devices such as display screens, and may include audio devices such as speakers. It should be noted that the specific composition of the input device 530 and the output device 540 can be set according to actual conditions. The processor 510 executes various functional applications and data processing of the electronic device by running software programs, instructions and modules stored in the memory 520.
[0109] According to another aspect of an embodiment of the present invention, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is run, the following screen-end display data processing method is executed:
[0110] Sending a first display data request to a preset database according to the display data query request of the user terminal;
[0111] If the first display data fed back by the preset database does not meet the preset conditions, sending a second display data request to the preset search server; wherein the preset conditions include a time limit for the data;
[0112] Feedback display data to the user terminal based on the first display data and the second display data fed back by the preset search server, so that the user terminal displays corresponding data content.
[0113] Of course, the storage medium containing computer executable instructions provided by an embodiment of the present invention is not limited to the method operations described above, and the computer executable instructions can also execute related operations in the screen display data processing method provided by any embodiment of the present invention.
[0114] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0115] It is worth noting that in the above-mentioned embodiment of the screen-side display data processing device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0116] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A screen display data processing method, characterized in that: include: Sending a first display data request to a preset database according to the display data query request of the user terminal; If the first display data fed back by the preset database does not meet the preset conditions, sending a second display data request to the preset search server; wherein the preset conditions include a time limit for the data; Feedback display data to the user terminal based on the first display data and the second display data fed back by the preset search server, so that the user terminal displays corresponding data content.
2. The screen display data processing method according to claim 1, characterized in that: If the first display data fed back by the preset database does not meet the preset condition, sending a second display data request to the preset search server includes: sorting the data to be displayed in the first display data according to storage time; Comparing the storage time of the earliest stored data to be displayed with the request time of the display data query request; If the storage time of the earliest stored data to be displayed is later than the request time, the second display data request is sent to the preset search server.
3. The screen display data processing method according to claim 2, characterized in that: Before sending the first display data request to the preset database according to the display data query request of the user terminal, the method further includes: The to-be-displayed data received from the management terminal is transmitted to the preset database as to-be-stored data, so that the preset database performs data storage.
4. The screen display data processing method according to claim 1, characterized in that: Feeding back display data to the user terminal according to the first display data and the second display data fed back by the preset search server includes: Performing a duplication check on the first display data and the second display data; If duplicate data exists, the first display data and the second display data after deduplication are fed back to the user terminal as the display data.
5. The screen display data processing method according to claim 1, characterized in that: After sending the first display data request to the preset database according to the display data query request of the user terminal, the method further includes: If the first display data fed back by the preset database meets the preset condition, the first display data is fed back to the user terminal.
6. The screen display data processing method according to claim 3, characterized in that: After the to-be-displayed data received from the management terminal is transmitted to the preset database as to-be-stored data, the method further includes: A data synchronization instruction is sent to the preset database, so that the preset database synchronizes the stored data to the preset search server.
7. The screen display data processing method according to claim 3, characterized in that: After the to-be-displayed data received from the management terminal is transmitted to the preset database as to-be-stored data, the method further includes: A data cleaning instruction is sent to the preset database, wherein the data cleaning instruction includes a cleaning cycle, so that the preset database cleans up the timed data to be displayed according to the cleaning cycle.
8. A screen display data processing device, characterized in that: include: A first data request module, configured to send a first display data request to a preset database according to a display data query request from a user terminal; A second data request module, configured to send a second display data request to a preset search server if the first display data fed back by the preset database does not meet a preset condition; wherein the preset condition includes a time limit for the data; The display data feedback module is used to feed back display data to the user terminal according to the first display data and the second display data fed back by the preset search server, so that the user terminal displays corresponding data content.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program, when running, executes the screen-side display data processing method described in any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the screen-side display data processing method according to any one of claims 1 to 7 through the computer program.