Database analysis method and system based on progressive disclosure mechanism

By expanding the non-standard time window into a standard window and combining it with a data fusion mechanism based on boundary features and transition coefficients, the problems of low cache hit rate and discontinuous data display in existing technologies are solved, achieving efficient data display and response optimization.

CN123178450APending Publication Date: 2026-11-27ZHEJIANG YUNQU NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611686948.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-29
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies struggle to align with the standard time boundaries of cached or pre-aggregated data when handling non-standard time window requests during high-frequency user interactions. This leads to reduced cache hit rates, increased query load on the underlying database, and discontinuous data display.

Method used

By acquiring non-standard time window requests, expanding them into standard windows, and querying the cache layer or pre-aggregation layer, boundary features are generated and the first screen overview is output. After determining that the user's dwell time has reached a threshold, the original data is queried, and data fusion is performed in combination with the transition coefficient to achieve progressive completion display.

Benefits of technology

It improved cache hit rate, reduced underlying database load, resolved data display discontinuity and response latency, and achieved progressive data accuracy completion and visual smoothing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178450A_ABST
    Figure CN123178450A_ABST
Patent Text Reader

Abstract

This invention relates to the field of database analysis and data visualization technology, specifically a database analysis method and system based on a progressive disclosure mechanism. The method includes: acquiring a non-standard time window request sent by the front end, containing start and end times; generating a standard window by expanding outwards according to the request window boundary and a preset aggregation granularity set; submitting to a cache layer or pre-aggregation layer to obtain standard data blocks; generating boundary slope and boundary stability; generating a first-screen overview image accordingly; performing a raw data query on the edge interval when the dwell time reaches a query trigger threshold; weighting and merging the edge detail data and the first-screen overview image on a unified display time axis according to a transition coefficient and updating it to the front end; achieving progressive completion from an approximate view to high-precision data, effectively avoiding query blocking caused by direct source lookup.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of database analysis and data visualization technology, specifically to a database analysis method and system based on a progressive disclosure mechanism. Background Technology

[0002] In front-end interactive analysis of massive time-series data, the system often relies on caching and pre-aggregation layers to accelerate queries. However, existing technologies have obvious shortcomings when dealing with high-frequency user interactions: user query requests usually have non-standard time windows with arbitrary start and end times. These windows are difficult to align with the standard time boundaries of the underlying cache or pre-aggregated data, which often forces the system to bypass the cache and directly perform a full scan of the underlying raw data.

[0003] The aforementioned processing mechanism can lead to a decrease in cache hit rate, an increase in the query load of the underlying database, and a delay in the first screen response. It can also cause problems such as data truncation, discontinuous jumps, and inconsistent chart updates in the time boundary region, thereby reducing query efficiency and the continuity of visualization.

[0004] Therefore, it is necessary to regulate non-standard time window requests, execute source queries on demand to reduce the consumption of underlying resources, and achieve continuous and progressively accurate data display. Summary of the Invention

[0005] The purpose of this invention is to provide a database analysis method and system based on a progressive disclosure mechanism. Addressing the system deficiencies of existing time-series data interaction analysis techniques in terms of non-standard time window request cache alignment and continuous display, this invention provides a database analysis method and system for handling window regularization and source code lookup, and progressively completing and displaying data. The purpose of this invention can be achieved through the following technical solutions:

[0006] Obtain non-standard time window requests sent by the front end, extract the start and end times to determine the request window boundary; based on the request window boundary and combined with a preset aggregation granularity set, expand the request window boundary outward, calculate the expanded standard window boundary and generate a standard window; submit the standard window to the cache layer or pre-aggregation layer for querying to obtain the corresponding standard data block.

[0007] Boundary features are generated based on the standard data block; a first-screen overview map is generated and displayed based on the standard data block and the boundary features; it is determined whether the user's dwell time on the first-screen overview map reaches a preset query trigger threshold; when the trigger condition is met, the original data query is performed on the edge interval between the standard window and the request window boundary to obtain edge detail data.

[0008] Based on the edge detail data and the first screen overview, the final display result is generated and updated to the front end by weighting and merging the data according to the transition coefficient that changes with the time position on the unified display time axis defined by the start and end times requested by the non-standard time window.

[0009] In some possible implementations, the standard window generation process includes: determining a standard granularity from a preset aggregation granularity set based on the time span of the request window boundary, the cache hit rate of the corresponding time period in the cache layer or pre-aggregation layer, and the front-end preset first screen response latency limit, and generating the standard window based on the standard granularity.

[0010] If no corresponding data is retrieved after submitting a query, the system switches to a granularity adjacent to the current standard granularity in the preset aggregation granularity set, regenerates the standard window, and executes the query again to improve the availability of the standard window and the query success rate.

[0011] In some possible implementations, the boundary feature generation process includes: extracting a left boundary sample set and a right boundary sample set based on a standard data block; determining the left boundary slope based on the left boundary sample set and the right boundary slope based on the right boundary sample set; determining the left boundary stability and the right boundary stability based on the left boundary sample set and the right boundary sample set, respectively; and combining the left boundary slope, the right boundary slope, the left boundary stability, and the right boundary stability into a boundary feature to characterize the changing trend and stability of the boundary data.

[0012] In some possible implementations, when determining whether the user's dwell time has reached the query trigger threshold, the interaction status of the current view is monitored and the dwell time is calculated; when the dwell time reaches the trigger condition and the edge interval corresponding to the current request has not yet completed the query, the edge interval is divided into a left edge interval and a right edge interval, and parallel independent queries are initiated for the left edge interval and the right edge interval respectively.

[0013] When a user changes the window or cancels the request before the triggering condition is met, the task to be triggered is terminated; when the original data query has been initiated but not completed, the original data query is cancelled; and the query triggering threshold can be re-determined within a preset range based on the system load status and cache hit rate, so that the triggering timing matches the system resource status.

[0014] In some possible implementations, the weighted fusion process includes: aligning the edge detail data with the first screen overview image on a unified display timeline, determining a transition interval, and weighted fusion of the edge detail data and the first screen overview image within the transition interval according to a transition coefficient.

[0015] The transition coefficient sets the weight of the first screen overview image to 1 and the weight of the edge detail data to 0 at the beginning of the transition interval, and sets the weight of the first screen overview image to 0 and the weight of the edge detail data to 1 at the end of the transition interval, thereby generating a continuous and smooth final display result. The edge detail acquisition status is written back to the request context, and the current view cache is updated at the same time.

[0016] In some possible implementations, after generating the final display result, the mapping relationship of this request is also written into the analysis cache table. The analysis cache table includes at least non-standard time window requests, standard windows, boundary features, query trigger thresholds, transition intervals, and edge query states. When a subsequent time window request is received, the analysis cache table is retrieved. If the overlap ratio between the subsequent time window request and the cached request is greater than a preset ratio threshold, it is determined to be a similar window request. The corresponding data that has been completed is reused, and incremental data queries are performed on the time interval added by the subsequent time window request relative to the cached request.

[0017] In some possible implementations, a database analysis system corresponding to the above method is also provided, including a request receiving module, a window expansion module, a standard data extraction module, a boundary feature generation module, a first screen rendering module, an edge data query module, and a data fusion and update module, which are respectively used to complete non-standard time window request receiving, standard window generation, standard data block extraction, boundary feature generation, first screen overview rendering, edge detail data query, and final display result fusion and update.

[0018] In some possible implementations, the system may further include a dwell time determination module, a parameter adjustment module, and a state management module. The dwell time determination module is used to output the dwell time, the parameter adjustment module is used to dynamically adjust the query trigger threshold, and the state management module is used to record the request status, edge query status, and fusion status, and send call information to each functional module to achieve collaborative control and status linkage of the request processing process.

[0019] Compared with the prior art, the present invention has the following beneficial effects:

[0020] 1. This invention expands non-standard time windows into standard windows and prioritizes querying the cache layer, avoiding direct full scans, improving cache hit rate and reducing first-screen latency; at the same time, the system filters invalid interactions by judging whether the user's dwell time reaches the query trigger threshold, and only performs original data queries on the edge interval when the threshold is met; this mechanism realizes accurate on-demand source retrieval and reduces the invalid scanning pressure on the underlying database.

[0021] 2. This invention generates boundary slope and stability features based on standard data blocks to output the first-screen overview image, solving the problem of abrupt changes caused by data truncation in the time boundary region; after obtaining the edge detail data, the edge detail data and the first-screen overview image are weighted and fused on a unified display time axis according to the transition coefficient; this solution achieves progressive data accuracy completion, avoids chart update flickering, and ensures the continuity of display. Attached Figure Description

[0022] The accompanying drawings, which are included in and form part of this specification, illustrate exemplary embodiments, features, and aspects of this disclosure together with the specification and serve to explain the principles of this disclosure.

[0023] Figure 1 This is a flowchart illustrating the database analysis method based on a progressive disclosure mechanism provided in an embodiment of the present invention.

[0024] Figure 2 This is a schematic diagram of a database analysis system based on a progressive disclosure mechanism provided in an embodiment of the present invention.

[0025] Figure 3 This is a schematic diagram of the state transition of the request state machine of the database analysis system according to an embodiment of the present invention. Detailed Implementation

[0026] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to specific embodiments.

[0027] like Figure 1 As shown, the database analysis method based on the progressive disclosure mechanism includes:

[0028] Get the non-standard time window request sent by the front end. The non-standard time window request includes the start time and end time. Extract the start time and end time to determine the request window boundary.

[0029] Based on the request window boundary and a preset aggregation granularity set, the request window boundary is expanded outward according to the granularity in the preset aggregation granularity set. The expanded standard window boundary is calculated and a standard window is generated. The standard window is submitted to the cache layer or pre-aggregation layer for querying to obtain the standard data block corresponding to the standard window. Boundary features are generated based on the standard data block. The boundary features include boundary slope and boundary stability.

[0030] Based on standard data blocks and boundary features, a first-screen overview map of a non-standard time window request is generated and displayed. It is then determined whether the user's dwell time on the first-screen overview map reaches a preset query trigger threshold. If so, a raw data query is performed on the edge interval between the standard window and the request window boundary to obtain edge detail data. Based on the obtained edge detail data and the first-screen overview map, a weighted fusion is performed on a unified display timeline defined by the start and end times of the non-standard time window request, using a transition coefficient that changes with time position, to generate the final display result and update it to the front end. If the threshold is not met, the raw data query is not performed, and the first-screen overview map is updated to the front end as the final display result.

[0031] In this embodiment, in terms of the overall process, this solution receives a non-standard time window request sent by the front end, which includes the start time and end time. After extracting the boundary of the request window, the system does not directly initiate a raw data scan to the underlying database based on the non-standard boundary. Instead, it expands outward according to a preset aggregation granularity set to generate a standard window that covers the request.

[0032] The standard window is submitted to the cache layer or pre-aggregation layer to quickly obtain standard data blocks and extract boundary features, including boundary slope and boundary stability. Based on this, the first screen overview map is quickly generated and displayed on the front end. The system continuously monitors the user's dwell time on the first screen overview map. When the dwell time reaches the query trigger threshold, the system performs a raw data query on the edge interval between the standard window and the request window boundary to obtain edge detail data.

[0033] The edge detail data and the first screen overview are weighted and merged on a unified display timeline according to a transition coefficient to output the final display result. Through the above overall mechanism, this solution realizes the progressive completion from approximate view to high-precision data, effectively avoiding query blocking caused by direct return to the source.

[0034] In one embodiment, the process of calculating the expanded standard window boundary and generating a standard window based on the request window boundary and a preset aggregation granularity set includes: determining a standard granularity from the preset aggregation granularity set based on the time span of the request window boundary determined by the start and end times, the cache hit rate of the time period corresponding to the request window boundary determined by the start and end times in the cache layer or pre-aggregation layer, and the front-end preset first-screen response latency limit; and generating a standard window based on the standard granularity and the request window boundary.

[0035] The standard window is submitted to the cache layer or pre-aggregation layer for querying. If the corresponding data is not found, it is then aggregated in the preset aggregation granularity set G={ in ascending order of granularity span. In the context of}, if the current standard granularity is denoted as Then, a forced switch to a granularity larger than the current standard will be initiated. And the next level immediately following Where n is a positive integer greater than 1, and i is a positive integer and 1 ≤ i <n, to This indicates a gradually increasing particle size distribution in polymerization, assuming the current size is already the largest level. If so, the query is sent directly back to the source; the standard window is regenerated based on the new granularity and the data corresponding to the standard window is queried again.

[0036] Based on the above embodiments, the specific process of generating a standard window includes: obtaining the request window boundary, determining the standard granularity from the preset aggregation granularity set according to the time span of the request window boundary, the cache hit rate in the cache layer or pre-aggregation layer, and the preset first screen response latency limit of the front end, and generating a standard window.

[0037] The preset aggregation granularity set refers to the multi-level time aggregation period preset by the system, such as discrete levels like 1 millisecond, 1 second, and 1 minute. The specific steps to determine the standard granularity are as follows: for each candidate granularity in the preset aggregation granularity set, the estimated number of data points is obtained by dividing the time span after unifying the time dimension by the candidate granularity, and the estimated response latency is calculated by combining the unit data point transmission and rendering time determined by the statistics of historical system logs.

[0038] If the estimated response latency is less than the front-end's preset first-screen response latency limit, and the current cache hit rate of the candidate granularity's corresponding level is greater than the preset base hit rate, then the candidate granularity is selected as the alternative granularity. Finally, the granularity with the largest value is selected from all alternative granularities as the standard granularity. The preset base hit rate is the minimum hit rate threshold preset by the system based on historical query hit statistics or the underlying database's baseline input / output throughput capacity.

[0039] This standard granularity is used to dynamically balance front-end response latency and underlying cache hit rate. In this embodiment, non-standard windows are aligned outwards to the standard grid boundary to match existing standard data in the cache layer. If the current standard granularity misses the cache, it adaptively switches to an adjacent granularity for remapping. The granularity is arranged in ascending order of span, within a preset aggregate granularity set G. to In the composition, if the current standard particle size is denoted as... Then, a forced switch to a granularity larger than the current standard will be initiated. And the next level immediately following Where n is a positive integer greater than 1, and i is a positive integer and 1 ≤ i <n, to This indicates a gradually increasing particle size distribution in polymerization, assuming the current size is already the largest level. If the query fails, a direct query to the source will be sent, and a new standard window will be generated based on the new granularity to query the data corresponding to the standard window again.

[0040] The embodiments of the present invention can achieve a high cache hit rate based on standard granularity mapping, avoid scanning a large amount of underlying data back to the source, and ultimately solve the system defect of the prior art that causes system response delay when performing high-frequency fine-grained queries due to the lack of request boundary regularization mechanism.

[0041] In one embodiment, generating boundary features based on standard data blocks includes: extracting a left boundary sample set and a right boundary sample set based on the standard data blocks; and determining the left boundary slope based on the left boundary sample set, wherein the left boundary slope is the first-order fitting slope of the time series corresponding to the left boundary sample set.

[0042] The right boundary slope is determined based on the right boundary sample set, which is the first-order fitted slope of the time series corresponding to the right boundary sample set. The left boundary stability is determined based on the left boundary sample set, which is the inverse normalized value of the variance corresponding to the left boundary sample set after processing by a preset normalization function. The right boundary stability is determined based on the right boundary sample set, which is the inverse normalized value of the variance corresponding to the right boundary sample set after processing by a preset normalization function. The left boundary slope, right boundary slope, left boundary stability, and right boundary stability are combined into boundary features.

[0043] Based on the above embodiments, the specific process of generating boundary features includes: extracting a left boundary sample set and a right boundary sample set based on a standard data block; taking a preset number of continuous data points or a preset duration threshold from the start time of the time series corresponding to the standard data block as the left boundary sample set; and taking an equal number of continuous data points from the end time as the right boundary sample set.

[0044] The slopes of the left and right boundaries are determined based on the first-order fitting slope of the corresponding time series. For example, the slope is obtained by linearly fitting the sample points in the sample set using the least squares method, and the stability of the left and right boundaries is determined based on the reverse normalization value of the fluctuation index after the sample set is processed by a preset normalization function.

[0045] The volatility indicator selects the variance of the sample set. The system extracts all historical standard data blocks of the currently queried indicator within the past 24-hour time window, calculates the variance of each data block, and selects the largest variance as the empirical maximum volatility value. The variance with the smallest value is taken as the empirical minimum fluctuation. Based on the formula, the normalized value = Calculate the current volatility indicator The normalized value.

[0046] If the maximum and minimum empirical fluctuation values ​​are equal, resulting in a zero difference, the normalization value is set to 0 to avoid division by zero anomalies. After mapping the fluctuation index to between 0 and 1, subtracting the normalization value from 1 yields the inverse normalization value. The closer this value is to 1, the more stable it is. The final combination forms the boundary features. The boundary slope is used to indicate the trend direction of the data in the edge region, and the boundary stability is used to quantitatively assess whether the current edge trend is suitable for preliminary display using approximate values. For example, the lower the stability, the more severe the local fluctuations.

[0047] This invention determines data truncation rules by extracting neighborhood information from the edges of standard data blocks, forming boundary feature vectors to provide trend references for front-end drawing of approximate views.

[0048] When generating the first screen overview map based on boundary features, the front end handles the edge intervals that are not fully hit based on the set rendering extrapolation strategy: if the boundary stability corresponding to the left or right boundary is greater than or equal to the preset stability threshold, it indicates that the corresponding edge trend is relatively stable. The front end takes the outermost data point of the boundary corresponding to the standard data block as the reference starting point, and performs linear extrapolation in the direction of the request window boundary according to the corresponding boundary slope, calculates and generates a set of complete data point sequences and draws them as continuous approximate curves.

[0049] If the boundary stability is less than the preset stability threshold, it indicates that the edge data fluctuates violently, causing linear prediction to fail. The front end then renders the approximate interval directly in the form of a dashed line to visually prompt the user that the edge of the current view is in a non-high confidence state.

[0050] This invention transforms boundary features into a front-end rendering execution strategy with a definite mapping relationship. Based on the boundary features, it can achieve smooth completion of the first screen view and interactive feedback, avoid visual abrupt changes, and ultimately solve the system defect of the prior art that causes the front-end display to be fragmented due to the lack of edge trend prediction and specific drawing rules.

[0051] In one implementation, raw data is queried over the edge region between the standard window and the request window boundary to obtain edge detail data, including: monitoring the interaction status of the first screen overview and calculating the dwell time.

[0052] When the dwell time is greater than or equal to the query trigger threshold and the edge interval corresponding to the non-standard time window request has not been completed, the edge interval is divided into a left edge interval and a right edge interval, and parallel independent queries are initiated for the left edge interval and the right edge interval respectively; when the user changes the window or cancels the request before the dwell time reaches the query trigger threshold, the original data query is terminated; when the original data query has been initiated and not completed, the original data query is canceled.

[0053] The query trigger threshold is redefined within a preset threshold range based on system load and cache hit rate. The query trigger threshold is increased when system load increases or cache hit rate decreases, and decreased when system load decreases or cache hit rate increases.

[0054] Based on the above embodiments, the specific steps for obtaining edge detail data are as follows: monitor the interaction status of the current view and calculate the dwell time, listen to events such as dragging, scaling and sliding of the front-end view container, take the end of an interaction event as the starting point of timing, and accumulate the duration of no such interaction operation in real time as the dwell time.

[0055] When the dwell time is greater than or equal to the query trigger threshold and the query in the edge interval is not completed, parallel independent queries are initiated for the left and right edge intervals. The query trigger threshold is adaptively increased when the system load increases or the cache hit rate decreases. For example, based on the preset base threshold, and considering the difference in time granularity between the front-end millisecond-level judgment and the back-end database monitoring, the system backend asynchronously collects the current CPU and memory usage ratio of the underlying database server at a preset period of seconds through an independent scheduled task as the system utilization rate, and caches it in memory for the query trigger threshold calculation logic to read in real time.

[0056] Calculate the percentage increase in current system utilization relative to the baseline load, specifically the difference between the current system utilization and the preset baseline load divided by the preset baseline load. Also calculate the percentage decrease in current cache hit rate relative to the optimal hit rate, specifically the difference between the preset optimal hit rate and the current cache hit rate divided by the preset optimal hit rate. The calculations are performed using the following formulas:

[0057] The redefined query trigger threshold = base threshold × [1 + (incremental ratio × preset load penalty coefficient) + (decline ratio × preset cache miss penalty coefficient)];

[0058] The preset load penalty coefficient and the preset cache miss penalty coefficient are both pre-calibrated constant weights. They are used as penalty factors and combined with the base threshold to achieve dynamic increase of the threshold. In addition, after the calculation is completed, the query trigger threshold is also subjected to a pinch-and-swap process with the preset lower threshold and the preset upper threshold. If the calculated value is lower than the lower threshold, the lower threshold is taken. If the calculated value is higher than the upper threshold, the upper threshold is taken to avoid the threshold from being negative or too large, which would cause trigger distortion.

[0059] The query trigger threshold refers to the time benchmark used to determine whether a user has a genuine analytical intent in the current view, with an example value of 500 milliseconds. This embodiment of the invention executes the back-to-source query by introducing a quantitative calculation-based dwell determination mechanism, and cancels pending or incomplete query tasks when the window request is changed.

[0060] The embodiments of the present invention can achieve precise allocation of query resources based on dwell time judgment and dynamic thresholds, avoid invalid input / output consumption, and ultimately solve the system defect of the prior art that causes overload of the underlying database due to the lack of intent filtering mechanism.

[0061] According to the aforementioned calculation rules, the incremental ratio is calculated as a negative value when the system load is lower than the baseline load, and the decrease ratio is calculated as a negative value when the cache hit rate is higher than the optimal hit rate. This allows the redefined query trigger threshold to be naturally adjusted bidirectionally according to the load and hit status.

[0062] For raw data queries that have been initiated but not yet completed, a cancellation flag is added to prevent the application layer from sending back the results, and a session termination command is sent asynchronously to the underlying database to forcibly interrupt the physical scan of the underlying disk input / output, rather than rolling back the physical operations that have been completed on the database side.

[0063] like Figure 3 As shown, based on the above embodiments, the dwell time judgment module, edge data query module and parameter adjustment module are linked by a request state machine. The request state machine includes at least five states: not triggered, waiting to be triggered, querying, completed and cancelled. Figure 1 Used to indicate the processing order of method steps. Figure 3 Used to indicate the status changes of a request during processing: After the overview image is displayed on the first screen, the dwell timer starts, and the request status changes from not triggered to pending; In the pending state, when the dwell time reaches the query trigger threshold and the query in the edge range is not completed, the request status changes to querying; when the window is changed or the request is canceled, it changes to canceled; In the querying state, when the detailed data of the left and right edges are returned and fused, it changes to completed; when the window is changed or the request is canceled, it changes to canceled.

[0064] The dwell time is continuously accumulated according to a fixed sampling period. When any interactive event arrives, the dwell timer is immediately cleared and the state is switched to pending trigger. The query trigger threshold can only be adjusted slowly in one direction in each sampling period to avoid repeated triggering due to instantaneous jitter.

[0065] When the query status is entered, the left and right edge ranges are bound to independent task identifiers. The edge detail data is written in the manner of returning data first and then deduplicating it according to timestamp. If a change window or cancellation request is received during the process, the task status is switched to canceled by the cancellation flag, and subsequent pagination scanning and result return are prevented.

[0066] In one embodiment, the edge detail data and the first screen overview are weighted and fused on a unified display timeline defined by a transition coefficient that changes with time position, based on a start and end time requested by a non-standard time window, to generate a final display result, including: aligning the edge detail data and the first screen overview on the unified display timeline.

[0067] A transition interval is determined, and within the transition interval, the edge detail data and the first screen overview image are weighted and merged according to a transition coefficient that changes with time position. The transition coefficient is a weight coefficient with a value between 0 and 1. At the beginning of the transition interval, the weight of the first screen overview image is 1 and the weight of the edge detail data is 0. At the end of the transition interval, the weight of the first screen overview image is 0 and the weight of the edge detail data is 1. The final display result is generated. The edge detail acquisition status is recorded, and the cached data corresponding to the first screen overview image is updated.

[0068] Based on the above embodiments, the specific implementation process for generating the final display result includes: aligning the edge detail data with the first screen overview image on a unified display timeline; using the timestamp of the edge detail data as a reference, finding two adjacent data points on both sides of the timeline in the first screen overview image, and performing interpolation alignment verification. The specific rule is: verify the time span of the adjacent data points on both sides; if the time span is zero, directly take the average value of the data points on both sides as the corresponding approximate data point to avoid the abnormal denominator being zero.

[0069] If the time span is not zero, the time distance between the current timestamp and the timestamp of the previous adjacent data point is calculated and divided by the ratio of the time span of the adjacent data points on both sides. The difference between the values ​​of the data points on both sides is multiplied by this ratio and then added to the value of the previous adjacent data point. This achieves point-by-point time alignment between the detailed data source and the approximate view, determines the transition interval, which is the time period when the edge interval overlaps with the standard window, and within this interval, the true value of the edge detailed data and the approximate value of the corresponding approximate data point are weighted and summed according to the transition coefficient to generate the merged display data.

[0070] The transition coefficient is a weight parameter that ranges from 0 to 1 and changes dynamically with time and position. It is used to dynamically balance the display contribution ratio of the original data and the approximate view in the transition zone. The weight of the first screen overview at the beginning of the transition zone is 1, and the weight of the edge detail data at the end is 1.

[0071] Specifically, the transition coefficient can be calculated using linear interpolation over time. That is, for a specific edge detail data point, its corresponding transition coefficient is equal to the time elapsed between the current time point and the start of the transition interval, divided by the total time elapsed in the entire transition interval. The weight of the corresponding approximate data point is 1 minus this value, expressed by the formula:

[0072] The value displayed by fusion = the actual value of the edge detail data × the transition coefficient + the approximate value of the approximate data point × (1 - the transition coefficient);

[0073] Weighted summation calculation is performed; the embodiments of the present invention implement weighted fusion through interpolation alignment mechanism and transition coefficient; the embodiments of the present invention can achieve smooth visual transition based on dynamic weight calculation, avoid front-end chart flickering, and ultimately solve the system defect of the prior art that causes inconsistent user interaction experience due to lack of smooth transition mechanism.

[0074] In one embodiment, after generating the final display result, the method further includes: writing the mapping relationship of the current request into an analysis cache table, the analysis cache table including non-standard time window requests, standard windows, boundary features, query trigger thresholds, transition intervals, and edge query states; when a subsequent time window request is received, the analysis cache table is retrieved; if the overlap ratio between the subsequent time window request and the cached request is greater than a preset ratio threshold, it is determined to be a similar window request, the overlap ratio being the ratio of the length of the overlapping time interval to the length of the time interval of the subsequent time window request.

[0075] Reuse the completed corresponding data and perform incremental data query on the time interval added by subsequent time window requests relative to the cached requests; if the overlap ratio is less than or equal to the preset ratio threshold, it is determined to be a non-similarity window request and the data query is re-executed.

[0076] When the time range of the cached request is The time interval requested in the subsequent time window is At that time; the system will store the timestamp t< in the original cached data array. Perform truncation and removal operations on data points; for time intervals The incremental raw data is queried to obtain an incremental data array; finally, the incremental data array is directly concatenated to the end of the truncated cached data array to generate the final reuse result that maintains the monotonically increasing timestamp characteristic with constant complexity.

[0077] Based on the above embodiments, the specific implementation of the method further includes: writing the mapping relationship of the current request, including non-standard time window requests, standard windows, boundary features, query trigger thresholds, transition intervals, and edge query states, into an analysis cache table; when the overlap ratio between subsequent time window requests and cached requests is greater than a preset ratio threshold, the completed data is reused and incremental data queries are performed only on the newly added time intervals; conversely, if the overlap ratio is less than or equal to the preset ratio threshold, it is directly determined as a non-similarity window request, and the data query is re-executed.

[0078] The overlap ratio refers to the ratio of the length of the overlapping time interval to the length of the subsequent time window request time interval. It is used to quantify the actual utility of historical calculation results, with an example value of 0.8. If the length of the subsequent time window request time interval is zero, the overlap ratio is recorded as 0 to avoid division by zero and directly determine it as a non-similarity window request. Through status write-back and retrieval mechanisms, the system will progressively disclose the results as the data basis for subsequent similar queries.

[0079] In practical applications, when the front end receives a non-standard time window request, the system selects the standard granularity to expand and generate a standard window based on the cache status. When the dwell time reaches the query trigger threshold, the system initiates a raw data query on the edge interval and merges the edge detailed data with the first screen overview map through a transition coefficient, outputting the final display result. The system quickly extracts the aggregated data block corresponding to the standard window from memory and calculates the boundary slope and stability. Based on this, the front end renders a continuous approximate temperature curve, i.e., the first screen overview map, within tens of milliseconds. At this time, if the user only browses quickly and continues to drag, the system will not initiate a low-level query.

[0080] If the user stops dragging and the dwell time on the approximate view exceeds the set query trigger threshold, such as 800 milliseconds, the system determines that the user has a genuine analytical intent. It then initiates a raw data query only for the left edge [10:14:13, 10:14:13.725] and the right edge [10:14:18.911, 10:14:19]. Once the high-precision edge data is returned, the system seamlessly integrates it with the initial overview image using a transition coefficient. The user visually sees a smooth display of the temperature curve edge details, ensuring both analytical freedom and avoiding response delays caused by frequent drill-down operations.

[0081] like Figure 2 As shown, a database analysis system based on a progressive disclosure mechanism is used to perform a database analysis method based on a progressive disclosure mechanism as described in the embodiment, including: a request receiving module configured to acquire non-standard time window requests sent by the front end and determine the request window boundaries.

[0082] The window expansion module is configured to generate a standard window based on the request window boundary and a preset aggregation granularity set; the standard data extraction module is configured to submit the standard window to the cache layer or pre-aggregation layer for querying and obtaining standard data blocks; the boundary feature generation module is configured to generate boundary features based on the standard data blocks, including boundary slope and boundary stability.

[0083] The first-screen rendering module is configured to generate and display a first-screen overview map based on standard data blocks and boundary features; the edge data query module is configured to determine whether the user's dwell time on the first-screen overview map reaches a preset query trigger threshold. If it does, the module performs a raw data query on the edge interval between the standard window and the request window boundary to obtain edge detail data. If it does not reach the threshold, the module does not perform a raw data query.

[0084] The data fusion and update module is configured to perform weighted fusion of edge detail data and first screen overview map on a unified display timeline according to a transition coefficient, generate the final display result and update it to the front end.

[0085] This embodiment provides a database analysis system based on a progressive disclosure mechanism. This system serves as the hardware or logical architecture carrier for implementing the above method embodiments. In specific implementation, the system consists of multiple functional modules working together to complete a progressive closed loop from non-standard requests to high-precision display. The request receiving module serves as the system's traffic entry point, receiving non-standard time window requests initiated by the front end and locking the request window boundaries.

[0086] The window expansion module maps the irregular boundary outward based on a preset aggregation granularity set, outputting a regular standard window; the standard data extraction module takes over the standard window, responsible for quickly retrieving and returning standard data blocks in the cache layer or pre-aggregation layer; simultaneously, the boundary feature generation module performs in-depth processing of edge neighborhood samples based on the standard data block, outputting feature vectors containing boundary slope and boundary stability; the first screen rendering module combines the standard data block and boundary features to quickly draw and display the first screen overview map on the front end, ensuring real-time interactive response.

[0087] Based on the above embodiments, the modules are not independently encapsulated and called, but intermediate states are passed sequentially around a unified request context: after generating the request window boundary, the request receiving module sends the window boundary and timeline identifier to the window extension module together.

[0088] The window expansion module outputs a standard window along with standard granularity markers and alignment results; the standard data extraction module returns a standard data block that includes at least a timestamp sequence, an aggregate value sequence, and a hit status identifier; the boundary feature generation module performs calculations only on the fixed neighborhoods at both ends of the standard data block and outputs the boundary slope, boundary stability, and edge status labels to the first screen rendering module.

[0089] The initial rendering module selects continuous curves, dashed lines, or semi-transparent placeholder lines for display based on the edge status labels; the edge data query module only takes over edge interval tasks when the request context is in a pending state; and the data fusion update module performs overwrite merging in chronological order after the edge detail data is returned, and writes the fusion completion status back to the current view cache.

[0090] In one embodiment, the system further includes a dwell time determination module, configured to monitor the interaction status of the first screen overview image and calculate the dwell time, and output the dwell time to the edge data query module.

[0091] The parameter adjustment module is configured to redetermine the query trigger threshold within a preset threshold range based on the system load status and cache hit rate, and output the redetermined query trigger threshold to the edge data query module.

[0092] The status management module is configured to record the request status, edge query status, and fusion status, and send call information to the request receiving module, window expansion module, standard data extraction module, boundary feature generation module, first screen rendering module, edge data query module, and data fusion update module.

[0093] During the initial screen display, the dwell time judgment module continuously monitors the front-end interaction status and calculates the effective dwell time; the parameter adjustment module dynamically and adaptively adjusts the query trigger threshold based on the real-time system load status and cache hit rate; when the dwell time meets the threshold condition, the edge data query module is activated and initiates a raw data query for the edge range that is not precisely covered.

[0094] Once the edge detail data is returned, the data fusion and update module takes over the data flow. On a unified display timeline, it performs weighted fusion of the edge detail data and the initial overview image using a transition coefficient, completing a smooth update of the final display result. Throughout this entire cycle, the state management module, as the system's central hub, is responsible for recording the request status, edge query status, and fusion status, and sending call information to the aforementioned business modules through a unified request context. This workflow ensures that each module executes collaboratively in a strict time sequence of generation, display, judgment, source return, update, and reuse, avoiding resource waste caused by isolated module operation.

[0095] Based on the above embodiments, the state management module maintains a state machine with the request context as the core. The state machine includes at least the initialization, first screen rendering, pending trigger, edge query, fusion, completion, and abnormal rollback states. When any module times out and fails to respond, the state management module rolls back the current state to pending trigger or abnormal rollback and sends a stop signal to the corresponding module to avoid repeatedly occupying resources.

[0096] The parameter adjustment module uses the average system load and average cache hit rate of the most recent sampling periods as input. It only adjusts the query trigger threshold when the same direction of change is met for several consecutive periods to reduce threshold jitter. The state management module also determines the subsequent call path based on the completion flag returned by each module, so that window expansion, standard data extraction, boundary feature generation, first screen rendering, edge data query and data fusion update are executed in a unidirectional pipeline to avoid data overwriting caused by concurrency out-of-order.

[0097] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims

1. A database analysis method based on a progressive disclosure mechanism, characterized in that, include: Obtain non-standard time window requests sent by the front end, the non-standard time window requests including start and end times, and extract the start and end times to determine the request window boundaries; Based on the request window boundary and the preset aggregation granularity set, the request window boundary is expanded outward according to the granularity in the preset aggregation granularity set, the expanded standard window boundary is calculated, and a standard window is generated. The standard window is submitted to the cache layer or pre-aggregation layer for querying to obtain the standard data block corresponding to the standard window; Boundary features are generated based on the standard data blocks, and the boundary features include boundary slope and boundary stability. Based on the standard data block and the boundary features, generate and display the first screen overview of the non-standard time window request; Determine whether the user's dwell time on the first screen overview image reaches a preset query trigger threshold; If the target is reached, then perform a raw data query on the edge interval between the standard window and the request window boundary to obtain edge detail data. Based on the obtained edge detail data and the first screen overview, perform weighted fusion on a unified display timeline defined by the start and end times of the non-standard time window request, according to the transition coefficient that changes with the time position, to generate the final display result and update it to the front end. If the target is not met, the original data query will not be executed, and the first screen overview image will be updated to the front end as the final display result.

2. The database analysis method based on a progressive disclosure mechanism as described in claim 1, characterized in that, Based on the request window boundary and the preset aggregation granularity set, calculate the expanded standard window boundary and generate a standard window, including: determining the standard granularity from the preset aggregation granularity set based on the time span of the request window boundary determined by the start time and the end time, the cache hit rate of the time period corresponding to the request window boundary determined by the start time and the end time in the cache layer or the pre-aggregation layer, and the front-end preset first screen response latency limit; The standard window is generated based on the standard granularity and the request window boundary; The standard window is submitted to the cache layer or the pre-aggregation layer for querying. If no corresponding data is found, the data is aggregated in the preset aggregation granularity set G={ in ascending order of granularity span. In the context of}, if the current standard granularity is denoted as Then, a forced switch to a granularity larger than the current standard will be initiated. And the next level immediately following Where n is a positive integer greater than 1, and i is a positive integer and 1 ≤ i <n, to This indicates a gradually increasing particle size distribution in polymerization, assuming the current size is already the largest level. If so, the query is sent directly back to the source; the standard window is regenerated based on the new granularity and the data corresponding to the standard window is queried again.

3. The database analysis method based on a progressive disclosure mechanism as described in claim 1, characterized in that, Generate boundary features based on the standard data block, including: extracting a left boundary sample set and a right boundary sample set based on the standard data block; The left boundary slope is determined based on the left boundary sample set, where the left boundary slope is the first-order fitting slope of the time series corresponding to the left boundary sample set. The right boundary slope is determined based on the right boundary sample set, and the right boundary slope is the first-order fitting slope of the time series corresponding to the right boundary sample set; The stability of the left boundary is determined based on the left boundary sample set, wherein the stability of the left boundary is the inverse normalized value of the variance corresponding to the left boundary sample set after processing by a preset normalization function; the stability of the right boundary is determined based on the right boundary sample set, wherein the stability of the right boundary is the inverse normalized value of the variance corresponding to the right boundary sample set after processing by a preset normalization function. The left boundary slope, the right boundary slope, the left boundary stability, and the right boundary stability are combined to form the boundary feature.

4. The database analysis method based on a progressive disclosure mechanism as described in claim 1, characterized in that, Perform raw data query on the edge interval between the standard window and the request window boundary to obtain edge detail data, including: monitoring the interaction status of the first screen overview and calculating the dwell time; When the dwell time is greater than or equal to the query trigger threshold and the edge interval corresponding to the non-standard time window request has not been queried, the edge interval is divided into a left edge interval and a right edge interval, and parallel independent queries are initiated for the left edge interval and the right edge interval respectively. The original data query is terminated when the user changes the window or cancels the request before the dwell time reaches the query trigger threshold. If the original data query has been initiated but not yet completed, cancel the original data query; The query trigger threshold is redefined within a preset threshold range based on the system load status and cache hit rate. The query trigger threshold is increased when the system load status increases or the cache hit rate decreases, and decreased when the system load status decreases or the cache hit rate increases.

5. The database analysis method based on a progressive disclosure mechanism as described in claim 1, characterized in that, Based on the edge detail data and the first screen overview image, a weighted fusion is performed on a unified display timeline defined by the start and end times requested by the non-standard time window, according to a transition coefficient that changes with the time position, to generate the final display result, including: aligning the edge detail data and the first screen overview image on the unified display timeline; A transition interval is determined, and within the transition interval, the edge detail data and the first screen overview image are weighted and fused according to a transition coefficient that changes with time position. The transition coefficient is a weight coefficient with a value between 0 and 1. At the beginning of the transition interval, the weight of the first screen overview image is 1 and the weight of the edge detail data is 0. At the end of the transition interval, the weight of the first screen overview image is 0 and the weight of the edge detail data is 1, thereby generating the final display result. Record the edge detail acquisition status and update the cached data corresponding to the first screen overview image.

6. The database analysis method based on a progressive disclosure mechanism as described in claim 1, characterized in that, After generating the final display result, the process also includes: writing the mapping relationship of this request into the analysis cache table, which includes non-standard time window requests, standard windows, boundary features, query trigger thresholds, transition intervals, and edge query states; When a subsequent time window request is received, the analysis cache table is retrieved; If the overlap ratio between the subsequent time window request and the cached request is greater than a preset ratio threshold, it is determined to be a similar window request. The overlap ratio is the ratio of the length of the overlapping time interval to the length of the time interval of the subsequent time window request. The completed corresponding data is reused, and incremental data query is performed on the time interval added by the subsequent time window request relative to the cached request; if the overlap ratio is less than or equal to the preset ratio threshold, it is determined to be a non-similarity window request, and the data query is re-executed.

7. A database analysis system based on a progressive disclosure mechanism, used to execute the database analysis method based on a progressive disclosure mechanism as described in any one of claims 1-6, characterized in that, include: The request receiving module is configured to receive non-standard time window requests sent by the front end and determine the request window boundaries. The window expansion module is configured to generate a standard window based on the requested window boundary and a preset aggregation granularity set; The standard data extraction module is configured to submit the standard window to the cache layer or pre-aggregation layer for querying and to obtain standard data blocks; A boundary feature generation module is configured to generate boundary features based on the standard data block, the boundary features including boundary slope and boundary stability; The first-screen rendering module is configured to generate and output a first-screen overview image based on the standard data block and the boundary features. The edge data query module is configured to determine whether the user's dwell time on the first screen overview map reaches a preset query trigger threshold. If it does, the module performs a raw data query on the edge interval between the standard window and the request window boundary to obtain edge detail data. If it does not reach the threshold, the module does not perform the raw data query. The data fusion and update module is configured to perform weighted fusion of the edge detail data and the first screen overview map on a unified display time axis according to a transition coefficient, generate the final display result, and update it to the front end.

8. The database analysis system based on a progressive disclosure mechanism as described in claim 7, characterized in that, Also includes: The dwell time determination module is configured to monitor the interaction status of the first screen overview map and calculate the dwell time, and output the dwell time to the edge data query module; The parameter adjustment module is configured to redetermine the query trigger threshold within a preset threshold range based on the system load status and cache hit rate, and output the redetermined query trigger threshold to the edge data query module. The status management module is configured to record the request status, edge query status, and fusion status, and send call information to the request receiving module, the window expansion module, the standard data extraction module, the boundary feature generation module, the first screen rendering module, the edge data query module, and the data fusion update module.