Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
pt-query-digest query_review.first_seen vs. query_review_history.ts_min
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jacky Shu  
View profile  
 More options Sep 24 2012, 9:32 am
From: Jacky Shu <jackys...@gmail.com>
Date: Mon, 24 Sep 2012 06:32:11 -0700 (PDT)
Local: Mon, Sep 24 2012 9:32 am
Subject: pt-query-digest query_review.first_seen vs. query_review_history.ts_min

Hi,

When checking the result of pt-query_digest, I noticed column *query_review.first_seen
*and *query_review_history.ts_min* always have the same value.
Do they actually have any difference?

Thanks.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gavin Towey  
View profile  
 More options Sep 24 2012, 1:36 pm
From: Gavin Towey <ga...@box.com>
Date: Mon, 24 Sep 2012 10:36:34 -0700
Local: Mon, Sep 24 2012 1:36 pm
Subject: Re: pt-query-digest query_review.first_seen vs. query_review_history.ts_min

Hi Jacky,

They can have the same value, but not always.  The query_review table keeps
unique instances of each query, but the query_review_history can have
multiple entries for each query fingerprint.  The fields ts_min and ts_max
are the statistics aggregated for that query in that particular duration of
time.  I'm not sure what the original author intended with the abbreviation
ts_, but I think of it as "time slice" or "time series."

In the query_review table, there's only one entry per unique query
fingerprint, and the values for first_seen and last_seen are updated with
the smallest value of ts_min for any record in the history table, and
last_seen has the highest value of any ts_max value.

Regards,
Gavin Towey


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jacky Shu  
View profile  
 More options Sep 25 2012, 12:32 pm
From: Jacky Shu <jackys...@gmail.com>
Date: Tue, 25 Sep 2012 09:32:01 -0700 (PDT)
Local: Tues, Sep 25 2012 12:32 pm
Subject: Re: pt-query-digest query_review.first_seen vs. query_review_history.ts_min

Thanks Gavin.
Guess I should have used a query to check whether they have same value!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jacky Shu  
View profile  
 More options Sep 25 2012, 12:46 pm
From: Jacky Shu <jackys...@gmail.com>
Date: Tue, 25 Sep 2012 09:46:18 -0700 (PDT)
Local: Tues, Sep 25 2012 12:46 pm
Subject: Re: pt-query-digest query_review.first_seen vs. query_review_history.ts_min

Hi Gavin,
Sorry have to ask you again, what is the meaning of  query_review_history.*ts_cnt
*column?
I thought it was how many times a query ran, but it was wrong.

Thanks


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gavin Towey  
View profile  
 More options Sep 25 2012, 1:45 pm
From: Gavin Towey <ga...@box.com>
Date: Tue, 25 Sep 2012 10:45:10 -0700
Local: Tues, Sep 25 2012 1:45 pm
Subject: Re: pt-query-digest query_review.first_seen vs. query_review_history.ts_min

ts_cnt is indeed the count of instances of that query found in that time
interval.  What are you seeing that makes it look like that isn't true for
you?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jacky Shu  
View profile  
 More options Sep 25 2012, 2:30 pm
From: Jacky Shu <jackys...@gmail.com>
Date: Tue, 25 Sep 2012 11:30:28 -0700 (PDT)
Local: Tues, Sep 25 2012 2:30 pm
Subject: Re: pt-query-digest query_review.first_seen vs. query_review_history.ts_min

Ooops, I forgot the counting was based on "* in that time interval*". now
it started to make sense.

Thanks again.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »