A method, device and medium for displaying data

By introducing the automatic telescopic module in the data display system, the length of the data display field is dynamically adjusted, the problem of changing the code in the traditional solution's data field changes requires the change of code, and the more efficient data display and lower development costs are achieved.

CN113688184BActive Publication Date: 2025-01-24INSPUR ZHUOSHU BIG DATA IND DEV CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111003470.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-30
Publication Date
2025-01-24
Estimated Expiration
2041-08-30

AI Technical Summary

Technical Problem

Traditional data display solutions are difficult to automatically scale and display fields, resulting in the addition or deletion of data fields that require code changes, which increases the cost and difficulty of development and maintenance.

Method used

By receiving service requests, access the data processing module to obtain the return data and determine whether it is different from the display data. If there are differences, the automatic telescopic module is used to determine the expansion or contraction range according to the field length difference, and process the display data to update the content.

Benefits of technology

The dynamic adjustment of the display data is realized, the coding cost is saved, the expansion and maintenance of the service are improved, and the development cost is greatly saved, increasing the flexibility of business expansion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113688184B_ABST
    Figure CN113688184B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device and medium for data display, the method comprising: receiving a service request, and accessing a data processing module according to the service request; obtaining return data through the data processing module, and determining whether there is a difference between the return data and the display data; if so, processing the display data through an automatic scaling module so that the display data is updated according to the return data. Through the data update mechanism, the displayed data is dynamically adjusted, the coding cost is saved, the scalability and maintainability of the service are improved, and at the same time, the development cost is greatly saved and the flexibility of business expansion is increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer information technology, and in particular to a method, device and medium for data display. Background Art

[0002] With the rapid development of information technology, data analysis and display are very important. The front-end display device displays data by requesting data from the back-end support device. However, in traditional data display solutions, it is difficult to automatically scale the display fields. With the iteration of display content or changes in requirements, even the addition or deletion of a small data field may involve code changes, increasing the cost of data display development and the difficulty of maintenance. Summary of the invention

[0003] In order to solve the above problems, the present application proposes a method, device and medium for data display, including:

[0004] On the one hand, the present application provides a method for data display, comprising: receiving a service request, and based on

[0005] Accessing a data processing module according to the service request; obtaining return data through the data processing module, and determining whether there is a difference between the return data and the display data; if so, determining a difference in field length between the return data and the display data, and determining a range of expansion or contraction of the display data; processing the display data through an automatic scaling module and the range of expansion or contraction, so that content corresponding to the display data is updated to content corresponding to the return data.

[0006] In one example, the existence of the original data is determined by setting a timer and a listener in the data processing module, specifically including: capturing the original data once at a preset time interval by setting a timer in the data processing module, and determining the presence of the original data by setting a listener in the data processing module.

[0007] In one example, before receiving a service request and accessing a data processing module according to the service request, the method further includes: determining the source of original data, and establishing a corresponding number of sub-modules in the data processing module according to the source of original data, and determining processing objects corresponding to the sub-modules, wherein the source of original data includes at least: a database, a file, and a message queue; for any one of the multiple sub-modules, determining a cache corresponding to the sub-module, wherein the cache is used to store the original data processed by the sub-module.

[0008] In one example, for any one of the multiple sub-modules, after determining the cache corresponding to the sub-module, the method also includes: determining the existence of the original data by setting a timer and a listener in the data processing module; determining the sub-module corresponding to the original data based on the source of the original data; processing the original data according to the data processing rules in the sub-module, and storing the processed original data in the corresponding cache.

[0009] In one example, the existence of the original data is determined by setting a timer and a listener in the data processing module, specifically including: capturing the original data once at a preset time interval by setting a timer in the data processing module, and determining the presence of the original data by setting a listener in the data processing module.

[0010] In one example, obtaining the returned data through the data processing module and determining whether there is a difference between the returned data and the displayed data specifically includes: determining a call cache of the returned data according to the service request, the call cache including at least a database cache, a file cache, and a message queue cache; obtaining the returned data through the call cache, and triggering a comparison algorithm in the automatic scaling module, the comparison algorithm being generated based on GraphQL; comparing the returned data with the displayed data through the comparison algorithm to determine whether there is a difference between the returned data and the displayed data.

[0011] In one example, if yes, after the display data is processed by the automatic scaling module, the method further includes: determining a data interface connected to the display end; and sending the return data to the display end through the data interface.

[0012] In one example, the method further includes: determining a plurality of new data by the data processing module at every preset time interval; and preprocessing the display data by the automatic scaling module so that the display data is pre-updated according to the new data.

[0013] In one example, the method also includes: determining a data type of the returned data, the data type including at least text, picture, video, and audio; processing the display data through the automatic scaling module so that the data type of the display data is consistent with the data type of the returned data.

[0014] On the other hand, the present application provides a data display device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the following instructions: receive a service request and access a data processing module according to the service request; obtain return data through the data processing module, and determine whether there is a difference between the return data and the display data; if so, process the display data through an automatic scaling module so that the display data is updated according to the return data.

[0015] On the other hand, the present application provides a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured to: receive a service request and access a data processing module according to the service request; obtain return data through the data processing module and determine whether the return data

[0016] whether there is a difference between the data and the display data; if so, processing the display data through the automatic scaling module so that the display data is updated according to the returned data.

[0017] The data display method, device and medium proposed in this application can bring the following beneficial effects: through the data update mechanism, the displayed data can be dynamically adjusted, the coding cost can be saved, the scalability and maintainability of the service can be improved, and at the same time, the development cost can be greatly saved and the flexibility of business expansion can be increased. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0019] Figure 1 A schematic diagram of a data display method in an embodiment of the present application;

[0020] Figure 2 A schematic diagram of a device for displaying data in the examples of this application. DETAILED DESCRIPTION

[0021] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. 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 making creative work are within the scope of protection of the present application.

[0022] Each embodiment in the present application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device and medium provided in the embodiments of the present application correspond one-to-one with the method, so the device and medium also have beneficial technical effects similar to the corresponding methods.

[0023] First of all, it should be explained that a method of data display in the present application is stored in a corresponding system or server, and users can log in to the system or server through a corresponding terminal. The types of terminals include but are not limited to: mobile phones, tablet computers, personal computers or other hardware devices with corresponding processing and communication functions. Users can log in to the system or server through the APP, WEB page or other methods in the terminal to display the data.

[0024] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0025] like Figure 1 As shown, a method for data display provided in an embodiment of the present application includes:

[0026] S101: receiving a service request, and accessing a data processing module according to the service request.

[0027] Specifically, the system receives a service request from a display terminal. It should be noted that the display terminal here is a related hardware device for displaying data. In the embodiment of the present application, a screen device with related processing and communication functions is used as an example for explanation.

[0028] The user issues an operation instruction on the display terminal, which can control the change of the display content on the display terminal. The system receives the service request from the display terminal and accesses the data processing module in the back-end device according to the service request.

[0029] The data processing module is used to acquire, process and store data. The backend device where the data processing module is located is connected to the display end through a unique interface, and the data processing module can realize data interaction with the display end through the interface.

[0030] Before the system receives a service request and accesses the data processing module according to the service request, it also needs to set up the data processing module accordingly. Specifically, the system determines the source of the original data, which is the new data captured by the data processing module. The source of the original data includes at least: database, file, message queue, etc.

[0031] In the above sources, raw data frequently appears, and the data processing module can capture the raw data. In addition, the system can also establish a corresponding number of sub-modules in the data processing module according to the source of the raw data. For example, in this application, the source of the raw data includes the above three types, so the number of sub-modules is also three. At the same time, the system determines the corresponding object of the sub-module, and each sub-module corresponds to the raw data of a unique source.

[0032] Furthermore, the system determines the cache corresponding to the submodule for any one of the multiple submodules. After the submodule obtains the corresponding original data and processes the original data accordingly, it needs to store the data. To ensure the speed of data storage and the timeliness of data extraction, the present application stores the data in the cache. It should also be noted that each submodule corresponds to a unique cache, which is used to store the original data processed by the submodule.

[0033] In addition, a timer and a listener are set in the data processing module to capture the original data at a fixed time. The system can determine the existence of the original data through the timer and the listener set in the data processing module.

[0034] The system determines the sub-module corresponding to the original data based on the source of the original data.

[0035] The submodules are pre-stored with corresponding processing rules. Since the data processing module contains multiple submodules, each submodule corresponds to raw data from different sources. Therefore, each submodule is pre-stored with processing rules for raw data from the corresponding source. The processing rules are only used to process the raw data from the source. In addition, the processed raw data should also comply with the cache mechanism, that is, it can be stored in the cache.

[0036] The system processes the raw data through the data processing rules in the submodule and stores the processed raw data in the corresponding cache.

[0037] S102: Acquire returned data through the data processing module, and determine whether there is a difference between the returned data and the displayed data.

[0038] Specifically, the system determines a call cache for returning data according to the service request, and the call cache includes at least: a database cache, a file cache, and a message queue cache.

[0039] By calling the cache, the returned data is obtained, and a comparison algorithm in the automatic scaling module is triggered. The comparison algorithm can be generated based on a query language for graph data (for example, GraphQL).

[0040] Furthermore, the system compares the returned data with the displayed data through a comparison algorithm, and determines whether there is a difference between the returned data and the displayed data.

[0041] S103: If yes, determine the difference in field length between the returned data and the displayed data, and determine the range of expansion or contraction of the displayed data.

[0042] Specifically, the system determines the difference in field length between the returned data and the displayed data, and determines the range of expansion or contraction of the displayed data. Since the displayed data has a related field length, and the returned data usually has a field length different from that of the displayed data, in order to achieve normal display, the field range corresponding to the displayed data needs to be expanded or contracted. At the same time, since the comparison algorithm in this application is generated based on GraphQL, the judgment of the difference in field length is a graphical judgment. In this way, there is no need to change the background code, while ensuring the accuracy of data display.

[0043] S104: Processing the display data through the automatic scaling module and the expansion or contraction range, so that the content corresponding to the display data is updated to the content corresponding to the return data.

[0044] The system processes the display data through the automatic scaling module and the range of expansion or contraction, so that the content corresponding to the display data is updated to the content corresponding to the return data. It should be noted that the automatic scaling module here can obtain data through the data processing module and the display end. At the same time, the automatic scaling module contains relevant algorithms that can realize data comparison.

[0045] In one embodiment, after the automatic scaling module processes the display data, the system may also determine a data interface connected to the display end, and send the return data to the display end through the data interface.

[0046] In one embodiment, the system may also determine a plurality of newly added data through the data processing module at preset time intervals, and pre-process the display data through the automatic scaling module, so that the display data is pre-updated according to the newly added data.

[0047] In this way, the system can pre-process the display data according to the difference between the new data and the display data when no service request is received, so that when the relevant service request is received, the pre-processed display data can be directly called, thereby speeding up the data processing.

[0048] In one embodiment, the system may also determine the data type of the returned data, and the data type includes at least: text, picture, video, and audio.

[0049] The data type of the displayed data is not necessarily the same as the data type of the returned data. In the embodiment of the present application, the system is not only capable of updating the field length of the displayed data, but can also be updated according to different data types, thereby ensuring wide application.

[0050] The system processes the display data through the automatic scaling module to make the data type of the display data consistent with the data type of the returned data.

[0051] In one embodiment, Figure 2 As shown, the present application also provides a data display device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the following instructions: receive a service request, and access a data processing module according to the service request; obtain return data through the data processing module, and determine whether there is a difference between the return data and the display data; if so, process the display data through the automatic scaling module so that the display data is updated according to the return data.

[0052] In one embodiment, the present application further provides a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured as follows:

[0053] Receiving a service request and accessing a data processing module according to the service request;

[0054] Acquire the returned data through the data processing module, and determine whether there is a difference between the returned data and the displayed data;

[0055] If so, the display data is processed by the automatic scaling module so that the display data is updated according to the returned data.

[0056] Through the data update mechanism, the displayed data can be dynamically adjusted to save coding costs, improve the scalability and maintainability of the service, and at the same time greatly save development costs and increase the flexibility of business expansion.

[0057] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0058] The devices and media provided in the embodiments of the present application correspond one-to-one to the methods. Therefore, the devices and media also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.

[0059] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0060] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0061] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0062] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0063] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0064] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0065] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0066] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0067] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A method for data presentation, characterized in that: include: Receiving a service request and accessing a data processing module according to the service request; Acquire the returned data through the data processing module, and determine whether there is a difference between the returned data and the displayed data; If yes, determining the difference in field length between the returned data and the displayed data, and determining the range of expansion or contraction of the displayed data; Processing the display data through the automatic scaling module and the range of expansion or contraction, so that the content corresponding to the display data is updated to the content corresponding to the return data; Before receiving the service request and accessing the data processing module according to the service request, the method further includes: Determine the source of the original data, and according to the source of the original data, establish a corresponding number of sub-modules in the data processing module, and determine the processing objects corresponding to the sub-modules, wherein the source of the original data at least includes: a database, a file, and a message queue; For any one of the plurality of sub-modules, determining a cache corresponding to the sub-module, the cache being used to store the original data processed by the sub-module; The obtaining of the returned data by the data processing module and determining whether there is a difference between the returned data and the displayed data specifically includes: Determine a call cache for returning data according to the service request, wherein the call cache includes at least: a database cache, a file cache, and a message queue cache; The return data is obtained through the call cache, and a comparison algorithm in the automatic scaling module is triggered, where the comparison algorithm is generated based on GraphQL; Comparing the returned data with the displayed data by using the comparison algorithm to determine whether there is a difference between the returned data and the displayed data; The method further comprises: At each preset time interval, a plurality of newly added data is determined by the data processing module; The display data is preprocessed by the automatic scaling module so that the display data is pre-updated according to the newly added data.

2. A data display method according to claim 1, characterized in that: For any one of the plurality of submodules, after determining the cache corresponding to the submodule, the method further includes: Determining the existence of the original data by means of a timer and a listener set in the data processing module; According to the source of the original data, determining a submodule corresponding to the original data; The original data is processed by the data processing rules in the submodule, and the processed original data is stored in the corresponding cache.

3. A data display method according to claim 2, characterized in that: Determining the existence of the original data by setting a timer and a listener in the data processing module specifically includes: The original data is captured once at a preset time interval by a timer set in the data processing module, and the presence of the original data is determined by a listener set in the data processing module.

4. A method for data display according to claim 1, characterized in that: If yes, after the display data is processed by the automatic scaling module, the method further includes: Determine the data interface connected to the display end; The returned data is sent to the display end through the data interface.

5. A method for data display according to claim 1, characterized in that: The method further comprises: Determine the data type of the returned data, the data type at least including: text, picture, video, audio; The display data is processed by the automatic scaling module so that a data type of the display data is consistent with a data type of the returned data.

6. A data display device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the following instructions: a method for data display as described in any one of claims 1 to 5.

7. A non-volatile computer storage medium storing computer executable instructions, characterized in that: The computer executable instructions are configured as: a method for data display as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • System and method for concurrent and pipeline processing employing a data driven network

    CA1065492A

  • Data processing method and system, electronic equipment and medium

    CN110515927A