Log query execution times
What does this MR do?
This code change improves how the system tracks and measures database operations. Previously, the system only measured how long it took to insert data into the ClickHouse database. Now it tracks the timing of all database operations including inserts, updates, deletes, and schema lookups.
The main improvements are:
-
Better monitoring: A new function called
LogQueryMetaDatawas added to consistently record timing information for all types of database queries, not just inserts. -
More detailed metrics: The old metric that only tracked insert times was replaced with a more comprehensive metric that tracks all query types with labels to distinguish between different operations (insert, delete, update, schema fetch).
-
Consistent timing: All database operations now use the same timing mechanism, making it easier to compare performance across different types of queries.
-
Enhanced testing: The tests were updated to verify that all four types of database operations are being properly measured and recorded.
related to #146