Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

vertica long running queries

=> SELECT user_name, start_timestamp, request_duration_ms, transaction_id, statement_id, substr(request, 0, 1000) as request FROM v_monitor.query_requests WHERE transaction_id > 0 ORDER BY request_duration_ms DESC limit 10;

user_name |        start_timestamp        | request_duration_ms |   transaction_id  | statement_id |                                request
----------+-------------------------------+---------------------+-------------------+--------------+---------------------------------------------------------------------
dbadmin   | 2017-03-30 12:33:56.381062-04 |             7567403 | 45035996274122533 |            1 | SELECT identifier, query FROM query_profiles;
dbadmin   | 2017-03-23 13:17:45.350174-04 |             6993612 | 45035996274068604 |            2 | select counter_name from execution_engine_profiles;
dbadmin   | 2017-03-13 13:17:12.618154-04 |             2195859 | 45035996273989990 |            2 | select * from customer_dimension;
dbadmin   | 2017-03-23 15:14:44.586491-04 |              988246 | 45035996274068604 |            4 | select * from execution_engine_profiles;
dbadmin   | 2017-04-13 10:08:21.999011-04 |              735847 | 45035996274232535 |           13 | SELECT * FROM v_monitor.system_resource_usage ORDER BY end_time DESC;
Comment

PREVIOUS NEXT
Code Example
Python :: Distace between two object on a sky map in degress using Ra and Dec 
Python :: tkinter app example code 
Python :: how to use Py-agender for projects 
Python :: api csv python 
Python :: convert python to c++ online 
Python :: convert c++ code to python online 
Python :: print(cap.get(cv2.CAP_PROP_FRAME_WIDTH)) print(cap.get(cv2.CAP_PROP_FRAME_HEIGHT)) 
Python :: height and width of colorbar 
Python :: python create a lsit 
Python :: I want only the span of finditer in re python 
Python :: pythonpath manager spyder 
Python :: Minimal requirements.txt django 
Python :: kivymd how to acces screen through screenmanager 
Python :: django user refistration 
Python :: how to delete a cell in jupyter notebook 
Python :: For an HTML output, you don’t need an additional library. It simply goes like this: 
Python :: what is enumerate in python 
Python :: merge df datacamp 
Python :: turn off subplot 
Python :: fading hex color python 
Python :: minimum ele 
Python :: python make label display multiple lines 
Python :: how to use event of Button in python 
Python :: dataproc initialization_actions error 
Python :: Random Hex Colors bar generator, python turtle 
Python :: flask gunicorn get ip 
Python :: using django model translation with django rest 
Python :: django router multiple pk 
Python :: django queryset with multiple contain keyword 
Python :: bouon arrondi tkinter 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =