Cassandra查询跟踪结果读取

Cassandra query tracing result reading

我正在尝试测量查询执行时间,以便与其他 sql 和 NoSQL 数据库进行比较。为此,我使用了命令跟踪,但无法理解查询执行时间。我无法在互联网上找到确切的信息。对于 table 创建,我正在使用查询:

   Tracing on;
   CREATE TABLE statistics(country_name text, dt date, confirmed_cases bigint, deaths bigint, 
   PRIMARY KEY(country_name, deaths))with clustering order by (deaths DESC);

cqlsh 显示的结果如下:

left center right
One Two Three
   |activity| timestamp | source | source_elapsed | client |                                                                                                                                                                              
   |:---- |:------:| -----:| -----:|
                                                                                                                                                                      
   |Execute CQL3 query | 2022-05-10 10:38:06.084000 | 172.24.2.2 | 0 | 
   41e1:cbdc:b845:42f6:aa06:27ea:d549:3af0
   |Parsing CREATE TABLE statistics(country_name text, dt date, confirmed_cases bigint, deaths  
   bigint, PRIMARY KEY(country_name, deaths))with clustering order by (deaths DESC); 
   [CoreThread-6] | 2022-05-10 10:38:06.085000 | 172.24.2.2 | 254 | 
   41e1:cbdc:b845:42f6:aa06:27ea:d549:3af0                                                                                                                                                
   |Preparing statement [CoreThread-6] | 2022-05-10 10:38:06.085000 | 172.24.2.2 |            
   457 | 41e1:cbdc:b845:42f6:aa06:27ea:d549:3af0                                                                                                                                    
   Adding to tables memtable [SchemaUpdatesStage:1] | 2022-05-10 10:38:06.092000 | 172.24.2.2 
   | 8175 | 41e1:cbdc:b845:42f6:aa06:27ea:d549:3af0                                                                                                                                   
   Adding to keyspaces memtable [SchemaUpdatesStage:1] | 2022-05-10 10:38:06.092000 | 
   172.24.2.2 |  8244 | 41e1:cbdc:b845:42f6:aa06:27ea:d549:3af0                                                                                                                                     
   Adding to columns memtable [SchemaUpdatesStage:1] | 2022-05-10 10:38:06.092000 | 172.24.2.2 
  |8320 | 41e1:cbdc:b845:42f6:aa06:27ea:d549:3af0                                                                                                                                                                   
  Request complete | 2022-05-10 10:38:06.141445 | 172.24.2.2 | 57445 | 
  41e1:cbdc:b845:42f6:aa06:27ea:d549:3af0

那么table创建查询的实际执行时间是哪一个?我还需要跟踪插入查询的执行时间和按分区检索列的最大值。请帮忙!

注意:source_elapsed列值是事件在源节点上经过的时间,以微秒为单位。 source_elapsed是在特定节点上的累计执行时间

"请求完成 | 2022-05-10 10:38:06.141445 | 172.24.2.2 | 57445 | 41e1:cbdc:b845:42f6:aa06:27ea:d549:3af0