Information updating method and device, and electronic device
Patent Information
- Application Number
- CN202510382367.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-27
- Publication Date
- 2026-10-09
AI Technical Summary
现有技术在对页面进行更新时,通常是在预设的页面更新时刻确定待展示的页面元素,生成待展示页面,这种方式通常导致页面内容未能实时更新,影响用户体验
[0008]本公开实施例提供的信息更新方法、装置和电子设备,通过响应于检测到针对目标对象的数据变更指令,获取上述目标对象的初始时序数据集合;基于上述数据变更指令,对上述初始时序数据集合进行更新;利用更新后的时序数据集合,生成上述目标对象在更新后的时序区间内的待展示图像和/或用于提示上述目标对象的目标数据达到预设阈值的消息通知。通过这种方式能够在目标对象的数据变更时确定未来一段时间段内目标对象的待展示图像,使得待展示图像能够及时展示;若目标对象的目标数据在未来某一时刻会达到极限阈值时,提前发出消息通知,能够提前规避风险。
Smart Images

Figure CN122884492A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, specifically to information updating methods, apparatus, and electronic devices. Background Technology
[0002] Page content update technology refers to a series of techniques and methods for dynamically updating parts of a page's content without refreshing the entire page. Current technologies typically determine the page elements to be displayed at a pre-set update time and generate the page to be displayed. This method often results in page content not updating in real time, impacting user experience. Furthermore, because the page elements to be displayed are determined at the moment of page update, the page to be displayed is generated and displayed immediately after the elements are determined, which may lead to situations where the page content is compromised. Summary of the Invention
[0003] This disclosure is provided to briefly introduce the concepts, which will be described in detail in the subsequent Detailed Description section. This disclosure is not intended to identify key or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.
[0004] In a first aspect, embodiments of this disclosure provide an information update method, comprising: in response to detecting a data change instruction for a target object, obtaining an initial time-series data set of the target object; updating the initial time-series data set based on the data change instruction; and generating target information using the updated time-series data set, wherein the target information includes: an image to be displayed and / or a message notification of the target object within the updated time-series interval, the message notification being used to prompt that the target data of the target object has reached a preset threshold.
[0005] Secondly, embodiments of this disclosure provide an information updating apparatus, comprising: an acquisition unit, configured to acquire an initial time-series data set of a target object in response to detecting a data change instruction for a target object; an update unit, configured to update the initial time-series data set based on the data change instruction; and a generation unit, configured to generate target information using the updated time-series data set, wherein the target information includes: an image to be displayed and / or a message notification of the target object within the updated time-series interval, the message notification being used to indicate that the target data of the target object has reached a preset threshold.
[0006] Thirdly, embodiments of this disclosure provide an electronic device, including: one or more processors; and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the information update method as described in the first aspect.
[0007] Fourthly, embodiments of this disclosure provide a computer-readable medium having a computer program stored thereon that, when executed by a processor, implements the steps of the information update method as described in the first aspect.
[0008] The information updating method, apparatus, and electronic device provided in this disclosure, in response to detecting a data change instruction for a target object, acquire an initial time-series data set of the target object; update the initial time-series data set based on the data change instruction; and use the updated time-series data set to generate an image to be displayed for the target object within the updated time interval and / or a message notification indicating that the target object's target data has reached a preset threshold. This method enables the determination of the image to be displayed for the target object within a future time period when the target object's data changes, ensuring timely display of the image; and by issuing a message notification in advance if the target object's target data is expected to reach a limit threshold at some future time, it can mitigate risks. Attached Figure Description
[0009] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.
[0010] Figure 1 This is a flowchart of one embodiment of the information updating method according to this disclosure;
[0011] Figure 2 This is a schematic diagram of the timeline of multiple versions of the target object in the method for updating according to the information disclosed herein;
[0012] Figure 3 This is a schematic diagram of an embodiment of the information update method using two-layer extension points according to the present disclosure;
[0013] Figure 4 This is a schematic diagram of the structure of an embodiment of the information updating device according to the present disclosure;
[0014] Figure 5 These are exemplary system architecture diagrams to which the various embodiments of this disclosure can be applied;
[0015] Figure 6 This is a schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present disclosure. Detailed Implementation
[0016] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0017] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.
[0018] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.
[0019] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0020] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0021] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0022] Please refer to Figure 1 The diagram illustrates a flow 100 of an embodiment of an information updating method according to the present disclosure. This information updating method includes the following steps:
[0023] Step 101: In response to detecting a data change instruction for the target object, obtain the initial time series data set of the target object.
[0024] In this embodiment, the execution subject of the information update method (e.g.) Figure 5The server shown can determine whether a data change instruction for the target object has been detected. The aforementioned data change instruction is used to modify the initial time-series data set of the target object. The data change instruction may include, but is not limited to, at least one of the following: a data change start time point, a data change end time point, and a data change rule. The target object may be a product.
[0025] If a data change instruction targeting the aforementioned target object is detected, the executing entity can obtain the initial time-series data set of the target object. The time-series data set typically refers to a set of data points collected in chronological order, with each data point corresponding to a timestamp.
[0026] Step 102: Update the initial time series data set based on the data change instruction.
[0027] In this embodiment, the execution entity can update the initial time-series data set based on the data modification instruction. Specifically, updating the initial time-series data set may include at least one of the following: adding time-series data to the initial time-series data set, deleting existing time-series data from the initial time-series data set, or modifying existing time-series data in the initial time-series data set.
[0028] Step 103: Use the updated time series data set to generate target information.
[0029] In this embodiment, the execution entity can generate target information using the updated time-series data set. The target information may include: an image of the target object to be displayed within the updated time-series interval and / or a message notification, wherein the message notification is used to indicate that the target data (e.g., price) of the target object has reached a preset threshold.
[0030] Here, the aforementioned execution entity can also receive query instructions sent by the query terminal, and use the updated time-series data set to generate query results corresponding to the query instructions for output.
[0031] The method provided in the above embodiments of this disclosure obtains an initial time-series data set of the target object in response to a detected data change instruction for the target object; updates the initial time-series data set based on the data change instruction; and generates an image to be displayed for the target object within the updated time-series interval and / or a message notification indicating that the target object's target data has reached a preset threshold using the updated time-series data set. This method can determine the image to be displayed for the target object within a future time period when the target object's data changes, ensuring timely display of the image; and it can also mitigate risks by issuing a message notification in advance if the target object's target data is expected to reach a limit threshold at some point in the future.
[0032] In some alternative implementations, the aforementioned execution entity can generate target information using the updated time-series data set as follows: The execution entity can use the updated time-series data set to determine the data update information of the target object at the data change time point. Then, using this data update information, an image to be displayed for the target object at the time of the data change can be generated. Here, the image to be displayed at the time of the data change is displayed in response to the data change. As an example, if a portion of the data needs to be displayed in the image to be displayed, the changed portion of the data can be displayed in the image to be displayed.
[0033] In this way, the image to be displayed when data changes occur within a future time period can be determined, so that the image to be displayed can be displayed in a timely manner at the point in time of data change (e.g., the start time or end time of the event).
[0034] In some optional implementations, the aforementioned execution entity can generate target information using the updated time-series data set as follows: The execution entity can use the updated time-series data set to determine the target data corresponding to the target object at the data change time point. Then, it can determine whether the target data is lower than a preset threshold. If it is lower than the threshold, a message notification can be generated. For example, the target data can be a price. If the price at the data change time point is 50 yuan, and the preset threshold is 60 yuan, a message notification can be generated to indicate that the price is lower than the preset threshold.
[0035] In this way, a notification can be sent in advance when the target data corresponding to the target object reaches the limit threshold at some point in the future, thereby avoiding risks in advance.
[0036] In some optional implementations, the aforementioned data change instructions can be generated in response to the creation of a target event. This target event can be an activity event, which can be understood as a series of actions or events set to achieve a specific goal. The target event may include an event start time, an event end time, and event metadata. Event metadata may include, but is not limited to, event type, event scope, and the type of event scope. The aforementioned initial time-series data set is typically associated with an initial timeline. Specifically, the initial timeline may contain multiple timeline segments, and the segment information corresponding to each timeline segment contains a set of event data. Therefore, multiple sets of time data corresponding to multiple timeline segments constitute the aforementioned initial time-series data set.
[0037] The aforementioned executing entity can update the initial time-series data set based on the aforementioned data change instructions in the following manner: The executing entity can generate timeline segments using the aforementioned event start time and event end time, and add these timeline segments to the initial timeline. Then, it can use the aforementioned event metadata to set segment information for the timeline segments, obtaining the updated timeline for the target object. In addition to the aforementioned event metadata, the segment information may also include at least one of the following: event start time, event end time, event identifier, and event type.
[0038] This method allows the timeline to be updated when an event is created for the target object, thus providing a way to add a segment to the timeline corresponding to the target object.
[0039] In some optional implementations, the aforementioned data modification instruction can be generated in response to the creation of a target event, which may include an event start time and an event end time. The aforementioned data modification time point may include both the event start time and the event end time, and the image to be displayed at the time of the data modification may include the image to be displayed at the start of the event and the image to be displayed at the end of the event. That is, the executing entity can use the updated timeline to determine the event data corresponding to the target object at the event start time, and use the event data to generate the image to be displayed for the target object at the event start time. Alternatively, the executing entity can use the updated timeline to determine the event data corresponding to the target object at the event end time, and use the event data to generate the image to be displayed for the target object at the event end time.
[0040] This method allows you to determine the images to be displayed at the start and end of an event when the event is created, ensuring that the images are displayed promptly at the start and end of the event.
[0041] In some alternative implementations, the aforementioned data change instruction can be generated in response to the termination of a target event. The target event can be terminated early due to business reasons or inventory issues. The aforementioned initial time-series data set is typically associated with an initial time axis. Specifically, the initial time axis can contain multiple time axis segments, and each time axis segment's segment information contains a set of event data. Therefore, multiple sets of time data corresponding to multiple time axis segments constitute the aforementioned initial time-series data set.
[0042] The aforementioned executing entity can update the aforementioned initial time series data set based on the aforementioned data change instructions in the following way: The aforementioned executing entity can delete the axis segment corresponding to the completed target event on the aforementioned initial time axis.
[0043] This method allows the timeline to be updated at the end of the event, thus providing a way to delete a timeline segment from the timeline corresponding to the target object.
[0044] In some alternative implementations, the aforementioned initial time-series data set is typically associated with an initial time axis. The executing entity can update the aforementioned initial time-series data set based on the aforementioned data change instruction in the following manner: the executing entity can use the modified data indicated by the aforementioned data change instruction to update the axis segment information corresponding to the aforementioned initial time axis. As an example, if the aforementioned data change instruction indicates a change to the object specifications of the aforementioned target object, then the object specifications in the axis segment information corresponding to the aforementioned initial time axis can be replaced with the modified object specifications.
[0045] This method allows for updating the segment information of the timeline, thus providing a way to update the segment information of the timeline corresponding to the target object.
[0046] In some optional implementations, the execution entity can obtain the initial time-series data set for the target object in the following way: The execution entity can determine whether a time-series data set exists for the target object; the time-series data set typically corresponds to an update time. If a time-series data set exists for the target object, the time-series data set with the most recent update time from at least one existing time-series data set can be used as the initial time-series data set; that is, the time-series data set with the most recent update can be used as the initial time-series data set. This method ensures the accuracy and continuity of the generated timeline.
[0047] In some alternative implementations, the aforementioned data modification instructions may be generated in response to the creation and / or termination of a target event, and the updated time-series data set may be associated with the updated timeline. After updating the initial time-series data set, the executing entity may associate and store the updated timeline for the target object with the event data of the target event. The event data may include at least one of the following: object identifier, update time, and axis segment information corresponding to the timeline.
[0048] Here, the timeline version number is updated every time the timeline and corresponding event data are stored. This method allows for the recording and tracking of data for a target object at different points in time, supports version rollback and historical data querying, which helps maintain the integrity of events.
[0049] like Figure 2 As shown, Figure 2 A schematic diagram of a timeline of multiple versions of a target object in the information update method according to this embodiment is shown.
[0050] exist Figure 2 In the process, at time T1, it is detected that event 1 was created successfully, and a new timeline segment corresponding to "event 1" is added to obtain the timeline of version 1 of target object A (corresponding to time T1).
[0051] At time T2, it was detected that event 2 was successfully created. Based on the timeline of version 1, a new timeline segment corresponding to "event 2" was added to obtain the timeline of version 2 (corresponding to time T2) of target object A.
[0052] At time T3, it was detected that event 3 was created successfully. Based on the timeline of version 2, a new timeline segment corresponding to "event 3" was added to obtain the timeline of version 3 (corresponding to time T3) of target object A.
[0053] At time T4, it was detected that event 1 had exited. Based on the timeline of version 3, the timeline segment corresponding to "event 1" was deleted to obtain the timeline of version 4 (corresponding to time T4) of target object A.
[0054] By establishing a multi-version control mechanism for product timelines, which can record and track product data at different points in time and support version rollback and historical data query, this will help maintain the integrity of relevant events for the product.
[0055] In some alternative implementations, the aforementioned data change instructions may be generated in response to the creation and / or termination of a target event, which may include at least one of the following event information: event source type and the scope of entities affected by the event. Here, the event source type can be determined using the data source from which the event originates. The scope of entities affected by the event may include: products and / or stores.
[0056] Before acquiring the initial time-series data set of the target object in response to a detected data change instruction, the executing entity may check whether event data has been received. This event data may originate from multiple data sources, also known as data source channels. If event data is received, the executing entity may determine the data source from which the event data originates as the target data source. Here, a data source typically corresponds to an event processing extension point, which is used to process the event data originating from the corresponding data source. The executing entity may utilize the event processing extension point corresponding to the target data source to determine at least one event information from the event data: the event source type and the scope of entities affected by the event.
[0057] This approach allows for the processing of event data originating from the same data source using a single event handling extension point. It abstracts the differences in the complete integration process of various heterogeneous data sources and implements them as extension points, minimizing the development workload required to integrate new event sources and improving system iteration efficiency. Furthermore, this approach enhances the framework's ability to integrate new data sources, enabling the system to flexibly handle data from different sources.
[0058] In some optional implementations, the event information of the target event may further include: event type. The executing entity can update the initial time-series data set based on the data change instruction in the following way: the executing entity can update the initial time axis of the target event using the axis segment processing extension point corresponding to the event type of the target event, based on the data change instruction; one axis segment processing extension point corresponds to one event type. The axis segment processing extension point is used to process the initial time axis of the target event of its corresponding event type.
[0059] As an example, the first type of event corresponds to the first axis segment processing extension point, which can be used to update the initial time axis of the first type of event; the second type of event corresponds to the second axis segment processing extension point, which can be used to update the initial time axis of the second type of event.
[0060] By implementing different extension points for different event types in this way, it is possible to support rapid expansion at low cost.
[0061] like Figure 3 As shown, Figure 3 A schematic diagram of one embodiment of the information update method according to this embodiment using two-layer extension points is shown. Figure 3 In this example, for target object A, multiple events are sourced from various data sources, such as XX event, YY event, and ZZ event. Event data from each data source can be processed by a dedicated event processing extension point; for example, the XX event processing extension point processes the data for the XX event, the YY event processing extension point processes the data for the YY event, and the ZZ event processing extension point processes the data for the ZZ event. Then, the axis segment generator for the XX event can be used to generate the axis segment corresponding to the XX event, the YY event can be used to generate the axis segment corresponding to the YY event, and the ZZ event can be used to generate the axis segment corresponding to the ZZ event. Finally, the event timeline for target object A can be constructed using the axis segments corresponding to the XX, YY, and ZZ events.
[0062] This approach employs a two-layer extension point design, abstracting the differences in the complete access process of various heterogeneous data sources and implementing them as extension points. This minimizes the development workload required to access new event sources and improves system iteration efficiency.
[0063] In some optional implementations, since there are many types of events and these events are concurrent, there can be at least two target events. That is, the number of detected data change instructions can be at least two. If at least two target events occur simultaneously for the target object, the execution entity can update the initial time series data set based on the data change instructions in the following way: The execution entity can use an optimistic locking mechanism to update the initial time series data set based on the data change instructions.
[0064] Optimistic locking is a concurrency control mechanism based on the assumption that, in most cases, data will not conflict during concurrent access. Optimistic locking typically does not lock data during access; instead, it checks whether other threads or transactions have modified the data during updates. If a conflict is detected (i.e., data has been modified by another thread), the operation is retried or an error is reported. Since the time-series data set of the target object usually corresponds to a version number, each update of the time-series data set iterates over its corresponding version number. Here, optimistic locking can be implemented using the version number of the time-series data set.
[0065] By using optimistic locking to update time-series data sets under concurrent events, frequent locking operations are avoided.
[0066] In some optional implementations, the aforementioned execution entity can detect whether an optimistic lock conflict has occurred. If a conflict is detected, a random-time finite-spin mechanism can be used to wait randomly for a preset time period before updating the initial time-series data set based on the aforementioned data change instructions. Here, when an optimistic lock conflict is detected, it indicates that the current target object has an event being processed. Directly retrying could easily amplify the conflict, so a random waiting period is adopted before retrying. The random waiting time range can be related to the number of retries; when the number of retries is n, the waiting time is random within 0 to n seconds.
[0067] Optimistic locking and random-time finite spin are used to ensure the timing of the update of the initial time-series data set of the same target object under concurrent events, thereby ensuring data consistency.
[0068] Further reference Figure 4 As an implementation of the methods shown in the above figures, this application provides an embodiment of an information updating device, which is similar to... Figure 1 Corresponding to the method embodiments shown, this device can be specifically applied to various electronic devices.
[0069] like Figure 4 As shown, the information updating device 400 of this embodiment includes: an acquisition unit 401 for acquiring an initial time-series data set of the target object in response to detecting a data change instruction for the target object; an update unit 402 for updating the initial time-series data set based on the data change instruction; and a generation unit 403 for generating target information using the updated time-series data set, wherein the target information includes: an image to be displayed and / or a message notification of the target object within the updated time-series interval, and the message notification is used to prompt that the target data of the target object has reached a preset threshold.
[0070] In this embodiment, the specific processing of the acquisition unit 401, update unit 402, and generation unit 403 of the information update device 400 can be referred to Figure 1 The corresponding steps are 101, 102 and 103 in the embodiment.
[0071] In some optional implementations, the generation unit 403 can be further used to generate target information using the updated time series data set in the following manner: the generation unit 403 can use the updated time series data set to determine the data change information of the target object at the data change time point, and use the data change information to generate an image to be displayed of the target object at the time of data change, wherein the image to be displayed at the time of data change is displayed in response to the data change.
[0072] In some optional implementations, the generation unit 403 can be further used to generate target information using the updated time series data set in the following manner: the generation unit 403 can use the updated time series data set to determine the target data corresponding to the target object at the data change time point; and generate a message notification in response to the target data being lower than a preset threshold.
[0073] In some optional implementations, the aforementioned data change instruction is generated in response to the creation of a target event, the target event including an event start time, an event end time, and event metadata, the aforementioned initial time series data set being associated with an initial time axis; and the aforementioned update unit 402 can be further used to update the aforementioned initial time series data set based on the aforementioned data change instruction in the following manner: the aforementioned update unit 402 can use the aforementioned event start time and the aforementioned event end time to generate a time axis segment, add the aforementioned time axis segment to the aforementioned initial time axis, and use the aforementioned event metadata to set the axis segment information for the aforementioned time axis segment, thereby obtaining the updated time axis of the aforementioned target object.
[0074] In some alternative implementations, the aforementioned data change instruction is generated in response to the creation of a target event, the target event including the event start time and the event end time; and the aforementioned data change time point includes the event start time and the event end time, and the image to be displayed at the time of the data change includes the image to be displayed at the start of the event and the image to be displayed at the end of the event.
[0075] In some alternative implementations, the aforementioned data change instruction is generated in response to the termination of the target event, the aforementioned initial time series data set is associated with the initial time axis; and the aforementioned update unit 402 can be further used to update the aforementioned initial time series data set based on the aforementioned data change instruction in the following manner: the aforementioned update unit 402 can delete the axis segment corresponding to the terminated target event on the aforementioned initial time axis.
[0076] In some optional implementations, the aforementioned initial time series data set is associated with an initial time axis; and the aforementioned update unit 402 can be further used to update the aforementioned initial time series data set based on the aforementioned data change instruction in the following manner: the aforementioned update unit 402 can use the changed data indicated by the aforementioned data change instruction to update the axis segment information corresponding to the aforementioned initial time axis.
[0077] In some optional implementations, the acquisition unit 401 can be further used to acquire the initial time series data set of the target object in the following manner: the acquisition unit 401 can determine whether there is a time series data set for the target object, wherein the time series data set corresponds to the update time; if it exists, the time series data set with the latest update time among at least one existing time series data set is used as the initial time series data set.
[0078] In some alternative implementations, the aforementioned data change instruction is generated in response to the creation of a target event and / or the termination of a target event, and the updated time series data set is associated with the updated time axis; and the aforementioned information update device 400 may include a storage unit (not shown in the figure), which may associate and store the updated time axis for the target object with the event data of the target event, wherein the event data includes at least one of the following: object identifier, update time, and axis segment information corresponding to the time axis.
[0079] In some optional implementations, the aforementioned data change instruction is generated in response to the creation of a target event and / or the termination of a target event. The target event includes at least one of the following event information: event source type and the scope of entities affected by the event. The aforementioned information update device 400 may include a first determining unit (not shown in the figure) and a second determining unit (not shown in the figure). The first determining unit may, in response to receiving event data, determine the data source of the event data as the target data source, wherein one data source corresponds to one event processing extension point. The second determining unit may, using the event processing extension point corresponding to the target data source, determine at least one of the event information, namely, the event source type and the scope of entities affected by the event, from the event data.
[0080] In some optional implementations, the event information of the target event further includes: event type, association of the initial time series data set with the initial time axis; and the update unit 402 can be further used to update the initial time series data set based on the data change instruction in the following manner: the update unit 402 can update the initial time axis based on the data change instruction and using the axis segment processing extension point corresponding to the event type of the target event, wherein one event type corresponds to one axis segment processing extension point.
[0081] In some optional implementations, the number of detected data change instructions is at least two; and the update unit 402 can be further used to update the initial time series data set based on the data change instructions in the following manner: the update unit 402 can adopt an optimistic locking mechanism to update the initial time series data set based on the data change instructions.
[0082] In some alternative implementations, the information update device 400 may include a re-update unit (not shown in the figure). The re-update unit may be used to update the initial time-series data set again based on the data change instruction after randomly waiting for a preset period of time, in response to the detection of an optimistic locking conflict, using a random time-finite spin mechanism.
[0083] Figure 5 An exemplary system architecture 500 is shown, to which embodiments of the information update method of this disclosure can be applied.
[0084] like Figure 5 As shown, system architecture 500 may include terminal devices 5011, 5012, and 5013, network 502, and server 503. Network 502 is used as a medium to provide communication links between terminal devices 5011, 5012, and 5013 and server 503. Network 502 may include various connection types, such as wired or wireless communication links or fiber optic cables, etc.
[0085] Users can use terminal devices 5011, 5012, and 5013 to interact with server 503 via network 502 to send or receive messages, etc. For example, server 503 can send message notifications to administrators' terminal devices 5011, 5012, and 5013. Various communication client applications, such as price monitoring applications, event management applications, and instant messaging software, can be installed on terminal devices 5011, 5012, and 5013.
[0086] Terminal devices 5011, 5012, and 5013 can be either hardware or software. When terminal devices 5011, 5012, and 5013 are hardware, they can be various electronic devices with displays and supporting information interaction, including but not limited to smartphones, tablets, and laptops. When terminal devices 5011, 5012, and 5013 are software, they can be installed in the aforementioned electronic devices. They can be implemented as multiple software programs or software modules (e.g., multiple software programs or software modules used to provide distributed services) or as a single software program or software module. No specific limitations are imposed here.
[0087] Server 503 can be a server providing various services. For example, it can be a backend server that processes data change instructions. In response to detecting a data change instruction for a target object, server 503 can obtain the initial time-series data set of the target object; then, based on the data change instruction, update the initial time-series data set; and then, using the updated time-series data set, generate an image of the target object to be displayed within the updated time-series interval and / or a message notification indicating that the target data of the target object has reached a preset threshold. This message notification can be sent to the terminal devices 5011, 5012, and 5013 of the administrator.
[0088] It should be noted that server 503 can be either hardware or software. When server 503 is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. When server 503 is software, it can be implemented as multiple software programs or software modules (e.g., used to provide distributed services), or as a single software program or software module. No specific limitations are made here.
[0089] It should also be noted that the information update method provided in this embodiment is usually executed by server 503, and the information update device is usually set in server 503.
[0090] It should be understood that Figure 5 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.
[0091] The following is for reference. Figure 6 It illustrates an electronic device suitable for implementing embodiments of the present disclosure (e.g., Figure 5 The structural diagram of the server (600) in the middle. Figure 6 The server shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments of this disclosure.
[0092] like Figure 6 As shown, electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 601, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 602 or a program loaded from storage device 608 into random access memory (RAM) 603. RAM 603 also stores various programs and data required for the operation of electronic device 600. Processing device 601, ROM 602, and RAM 603 are interconnected via bus 604. Input / output (I / O) interface 605 is also connected to bus 604.
[0093] Typically, the following devices can be connected to I / O interface 605: input devices 606 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 607 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 608 including, for example, magnetic tapes, hard disks, etc.; and communication devices 609. Communication device 609 allows electronic device 600 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 6 An electronic device 600 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively. Figure 6 Each box shown can represent a device or multiple devices as needed.
[0094] Specifically, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by a processing device 601, it performs the functions defined in the methods of embodiments of this disclosure. It should be noted that the computer-readable medium described in embodiments of this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In embodiments of this disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In embodiments of this disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. Program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0095] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device. The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: in response to detecting a data change instruction for a target object, acquire an initial time-series data set of the target object; update the initial time-series data set based on the data change instruction; and generate target information using the updated time-series data set, wherein the target information includes: an image to be displayed and / or a message notification of the target object within the updated time-series interval, the message notification indicating that the target data of the target object has reached a preset threshold.
[0096] Computer program code for performing the operations of embodiments of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0097] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0098] The units described in the embodiments of this disclosure can be implemented in software or hardware. The described units can also be located in a processor; for example, a processor can be described as including an acquisition unit, an update unit, and a generation unit. The names of these units do not necessarily limit the unit itself; for example, an update unit can also be described as "a unit that updates an initial time-series data set based on data change instructions."
[0099] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of the invention involved in the embodiments of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described inventive concept. For example, technical solutions formed by substituting the above-described features with (but not limited to) technical features with similar functions disclosed in the embodiments of this disclosure.
Claims
1. An information updating method, characterized in that, include: In response to detecting a data change instruction for a target object, the initial time-series data set of the target object is obtained; Based on the data change instruction, the initial time series data set is updated; Using the updated time-series data set, target information is generated, wherein the target information includes: the target object's image to be displayed and / or message notification within the updated time-series interval, and the message notification is used to prompt that the target object's target data has reached a preset threshold.
2. The method according to claim 1, characterized in that, The step of generating target information using the updated time-series data set includes: Using the updated time-series data set, the data change information of the target object at the data change time point is determined. Using the data change information, an image to be displayed for the target object at the time of the data change is generated, wherein the image to be displayed at the time of the data change is displayed in response to the data change.
3. The method according to claim 1, characterized in that, The step of generating target information using the updated time-series data set includes: Using the updated time-series data set, determine the target data corresponding to the target object at the data change time point; A message notification is generated in response to the target data falling below a preset threshold.
4. The method according to claim 1, characterized in that, The data change instruction is generated in response to the creation of a target event, the target event includes an event start time, an event end time, and event metadata, and the initial time series data set is associated with an initial time axis; as well as The step of updating the initial time-series data set based on the data change instruction includes: Using the event start time and the event end time, a timeline segment is generated, the timeline segment is added to the initial timeline, and the event metadata is used to set the segment information for the timeline segment, thereby obtaining the updated timeline of the target object.
5. The method according to claim 2, characterized in that, The data change instruction is generated in response to the creation of a target event, the target event including an event start time and an event end time; and The data change time points include the event start time and the event end time, and the images to be displayed when the data changes include the images to be displayed at the start of the event and the images to be displayed at the end of the event.
6. The method according to claim 1, characterized in that, The data change instruction is generated in response to the end target event, and the initial time series data set is associated with the initial time axis; as well as The step of updating the initial time-series data set based on the data change instruction includes: Delete the axis segments corresponding to the completed target events on the initial time axis.
7. The method according to claim 1, characterized in that, The initial time series data set is associated with the initial time axis; as well as The step of updating the initial time-series data set based on the data change instruction includes: The axis segment information corresponding to the initial time axis is updated using the modified data indicated by the data change instruction.
8. The method according to claim 1, characterized in that, The step of obtaining the initial time-series data set of the target object includes: Determine whether a time-series data set exists for the target object, wherein the time-series data set corresponds to the update time; If it exists, the time series dataset with the latest update time from at least one existing time series dataset will be used as the initial time series dataset.
9. The method according to claim 1, characterized in that, The data change instruction is generated in response to the creation of a target event and / or the termination of a target event, and the updated time series data set is associated with the updated time axis; as well as After updating the initial time-series data set, the method further includes: The updated timeline for the target object is associated with the event data of the target event and stored together. The event data includes at least one of the following: object identifier, update time, and axis segment information corresponding to the timeline.
10. The method according to claim 1, characterized in that, The data change instruction is generated in response to the creation of a target event and / or the termination of a target event, wherein the target event includes at least one of the following event information: event source type and the scope of entities affected by the event; as well as Before acquiring the initial time-series data set of the target object in response to detecting a data change instruction for the target object, the method includes: In response to receiving event data, the data source from which the event data originates is determined as the target data source, wherein one data source corresponds to one event processing extension point; Using the event processing extension point corresponding to the target data source, at least one event information item is determined from the event data, including the event source type and the scope of entities affected by the event.
11. The method according to claim 10, characterized in that, The event information of the target event also includes: the event type, and the association between the initial time series data set and the initial time axis; and The step of updating the initial time-series data set based on the data change instruction includes: Based on the data change instruction, the initial time axis is updated using the axis segment processing extension point corresponding to the event type of the target event, wherein one event type corresponds to one axis segment processing extension point.
12. The method according to claim 1, characterized in that, The number of detected data change commands is at least two; as well as The step of updating the initial time-series data set based on the data change instruction includes: An optimistic locking mechanism is used to update the initial time-series data set based on the data change instructions.
13. The method according to claim 12, characterized in that, Therefore, the method also includes: In response to the detection of an optimistic locking conflict, a random time finite spin mechanism is adopted to wait for a preset time period and then update the initial time series data set based on the data change instruction.
14. An information updating device, characterized in that, include: The acquisition unit is configured to acquire the initial time-series data set of the target object in response to detecting a data change instruction for the target object; An update unit is used to update the initial time-series data set based on the data change instruction; The generation unit is used to generate target information using the updated time-series data set. The target information includes: an image to be displayed and / or a message notification of the target object within the updated time-series interval. The message notification is used to prompt that the target data of the target object has reached a preset threshold.
15. An electronic device, characterized in that, include: One or more processors; Storage device, on which one or more programs are stored, When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-13.
16. A computer-readable medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-13.