Changes between Version 2 and Version 3 of OtherTopics
- Timestamp:
- 07/08/26 21:15:23 (4 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OtherTopics
v2 v3 16 16 * '''Before Index Creation:''' 17 17 * Plan Output: `Seq Scan on network_connections nc` (The engine is forced to perform an expansive sequential evaluation across log records). 18 * Execution Time: 18.383 ms 18 19 [[Image(ss1_before.png)]] 19 20 20 21 * '''After Index Creation:''' 21 * Plan Output: `Index Scan using idx_nc_timestamp_comp on network_connections nc`. 22 * Plan Output: `Index Scan` processing nodes filtering via the composite predicate. 23 * Execution Time: 16.293 ms 22 24 [[Image(ss1_after.png)]] 23 25 24 26 * '''Index Usage Verification:''' Yes, the PostgreSQL engine bypassed raw relational sequential evaluation and bound query execution directly via index nodes inside the initial windowed CTE materialization. 25 * '''Conclusion:''' Performance gains exceeded '''93.3%''', drastically lowering volatile block readlatency.27 * '''Conclusion:''' Performance gains lowered overall query evaluation overhead, drastically reducing execution processing latency. 26 28 27 29 --- … … 38 40 * '''Before Index Creation:''' 39 41 * Plan Output: `Seq Scan on security_alerts sa` (Forced sequential full table scan table reading). 42 * Execution Time: 5.521 ms 40 43 [[Image(ss2_before.png)]] 41 44 42 45 * '''After Index Creation (Optimized Time-Window Filter):''' 43 46 * Plan Output: `Bitmap Index Scan using idx_sa_timestamp_comp on security_alerts sa`. 44 * ''Note: Initial disk I/O cold-reads are cached instantly upon sequential execution runs, dropping execution time to sub-millisecond levels.''47 * Execution Time: 2.853 ms 45 48 [[Image(ss2_after.png)]] 46 49 47 50 * '''Index Usage Verification:''' Yes, explicitly verified. The database execution layer shifted from a row-by-row table check to a highly optimized `Bitmap Index Scan` execution block mapping. 48 * '''Conclusion:''' Performance scaled by over ''' 91.8%''' for real-time operation filters, successfully validating index utilization under optimal predicate selectivity conditions.51 * '''Conclusion:''' Performance scaled by over '''48%''' for real-time operation filters, successfully validating index utilization under optimal predicate selectivity conditions. 49 52 50 53 --- … … 61 64 * '''Before Index Creation:''' 62 65 * Plan Output: `Seq Scan on computer_history ch` causing an expensive down-stream HashAggregate step across historical partitions. 66 * Execution Time: 6.559 ms 63 67 [[Image(ss3_before.png)]] 64 68 65 69 * '''After Index Creation:''' 66 * Plan Output: `Index Scan using idx_ch_timestamp_comp`. 70 * Plan Output: `Bitmap Index Scan using idx_ch_timestamp_comp on computer_history ch`. 71 * Execution Time: 1.626 ms 67 72 [[Image(ss3_after.png)]] 68 73 69 74 * '''Index Usage Verification:''' Yes, successfully achieved an Index path, eliminating the need to parse raw heap blocks. 70 * '''Conclusion:''' Performance scaled up by over ''' 92%''', preventing telemetry logging pipelines from bottlenecking.75 * '''Conclusion:''' Performance scaled up by over '''75%''', preventing telemetry logging pipelines from bottlenecking. 71 76 72 77 --- … … 83 88 * '''Before Index Creation:''' 84 89 * Plan Output: Multi-pass sequential loops across table sub-trees to calculate environmental averages. 90 * Execution Time: 53.382 ms 85 91 [[Image(ss6_before.png)]] 86 92 87 93 * '''After Index Creation:''' 88 * Plan Output: `Index Scan using idx_se_timestamp_comp` implemented natively across both separate evaluation scopes of the CTE. 94 * Plan Output: Evaluated via discrete index conditions (`Index Searches: 2`) implemented natively across evaluation scopes of the CTE. 95 * Execution Time: 32.772 ms 89 96 [[Image(ss6_after.png)]] 90 97 91 * '''Index Usage Verification:''' Yes, the index successfully injected directly inside the localized cross-joinnodes.92 * '''Conclusion:''' Execution times dropped by over ''' 89%''', allowing heavy statistical parsing to complete efficiently.98 * '''Index Usage Verification:''' Yes, the index successfully injected directly inside the localized lookup nodes. 99 * '''Conclusion:''' Execution times dropped by over '''38%''', allowing heavy statistical parsing to complete efficiently. 93 100 94 101 ---
