Get row count processed for a long running query

Moderator: NorbertKrupa

Post Reply
User avatar
usli06
Intermediate
Intermediate
Posts: 93
Joined: Wed Jan 25, 2012 4:53 am

Get row count processed for a long running query

Post by usli06 » Wed May 16, 2012 12:37 pm

Good morning,

Does anyone know if there is a way to get the number of rows processed at any point during a long running query? For instance, say we have a Cognos cube that takes an hour to build for 87 million records. If I query the sessions table I can see the query in Vertica as the current statement while the build is occurring. What I'd like to know is how many rows have been processed at any point during that hour. We can do this in Oracle and was just wondering if Vertica can provide this information?

Thanks in advance!

id10t
GURU
GURU
Posts: 732
Joined: Mon Apr 16, 2012 2:44 pm

Re: Get row count processed for a long running query

Post by id10t » Wed May 16, 2012 2:02 pm

Hi usli06

Look for LOAD_STREAMS table.

Code: Select all

select * from load_streams;

User avatar
usli06
Intermediate
Intermediate
Posts: 93
Joined: Wed Jan 25, 2012 4:53 am

Re: Get row count processed for a long running query

Post by usli06 » Wed May 16, 2012 2:30 pm

Isn't the load_streams table only applicable when using the COPY command?

id10t
GURU
GURU
Posts: 732
Joined: Mon Apr 16, 2012 2:44 pm

Re: Get row count processed for a long running query

Post by id10t » Wed May 16, 2012 10:01 pm

Hi usli06
so:

Code: Select all

select * from current_session;
and look for query_profiling_configuration and session_profiling_configuration.

Hope it helps.

Post Reply

Return to “New to Vertica”