Best way to estimate ETA for a refresh request
Hey All, I've got a newly created projection being refreshed, and I'm trying to estimate the amount of time remaining. Here's a query I'm using:
select node_name ,operator_name ,counter_name ,sum(counter_value) from execution_engine_profiles where ( session_id=? ) and ( ( operator_name='DataTarget' and counter_name in ('input rows','written rows') ) or ( operator_name='Scan' and counter_name='estimated rows produced' ) ) group by node_name ,operator_name ,counter_name order by node_name ,counter_name ;It looks like the input rows and written rows (records) should align with the estimated rows produced. (I understand it's an estimation for rows produced, so it may vary, but I just need a rough estimate too) For instance:
node_name | operator_name | counter_name | sum ---------------------+---------------+-------------------------+-------------- v_vertprd1_node0001 | Scan | estimated rows produced | 226595923824 v_vertprd1_node0001 | DataTarget | input rows | 5296970240 v_vertprd1_node0001 | DataTarget | written rows | 0 v_vertprd1_node0002 | Scan | estimated rows produced | 226595923824 v_vertprd1_node0002 | DataTarget | input rows | 5292902400 v_vertprd1_node0002 | DataTarget | written rows | 0 v_vertprd1_node0003 | Scan | estimated rows produced | 226595923824 v_vertprd1_node0003 | DataTarget | input rows | 5297440256 v_vertprd1_node0003 | DataTarget | written rows | 0 (9 rows)This would indicate that I'm roughly 2.5% complete? (each node) or am I way off? Thanks! Shawn
0
Comments