Re: [GENERAL] Approach to Data Summary and Analysis

2014-04-17 Thread Roxanne Reid-Bennett
On 4/16/2014 2:40 PM, Robert DiFalco wrote: Thanks Roxanne, I suppose when it comes down to it -- for the current use cases and data size -- my only concern is the "calling" query that will need to use max to determine if a user has already had a call today. For a large user set, for each user

Re: [GENERAL] Approach to Data Summary and Analysis

2014-04-16 Thread Robert DiFalco
Thanks Roxanne, I suppose when it comes down to it -- for the current use cases and data size -- my only concern is the "calling" query that will need to use max to determine if a user has already had a call today. For a large user set, for each user I would either have to MAX on the answered times

Re: [GENERAL] Approach to Data Summary and Analysis

2014-04-16 Thread Roxanne Reid-Bennett
On 4/15/2014 9:10 PM, Robert DiFalco wrote: 1. >500K rows per day into the calls table. 2. Very rarely. The only common query is gathering users that have not been called "today" (along with some other qualifying criteria). More analytical queries/reports are done for internal use and it is not

Re: [GENERAL] Approach to Data Summary and Analysis

2014-04-15 Thread Gavin Flower
On 16/04/14 13:10, Robert DiFalco wrote: 1. >500K rows per day into the calls table. 2. Very rarely. The only common query is gathering users that have not been called "today" (along with some other qualifying criteria). More analytical queries/reports are done for internal use and it is not e

Re: [GENERAL] Approach to Data Summary and Analysis

2014-04-15 Thread Robert DiFalco
1. >500K rows per day into the calls table. 2. Very rarely. The only common query is gathering users that have not been called "today" (along with some other qualifying criteria). More analytical queries/reports are done for internal use and it is not essential that they be lickity-split. a. Usuall

Re: [GENERAL] Approach to Data Summary and Analysis

2014-04-15 Thread Roxanne Reid-Bennett
On 4/14/2014 12:27 PM, Robert DiFalco wrote: And so on for calls_connected, calls_completed, call_errors, etc. Occasionally I will want to know things like "When was the last time a user answered a call" or "How many times has a user been called". ... Sometimes I might want to get this data fo

Re: [GENERAL] Approach to Data Summary and Analysis

2014-04-15 Thread Rob Sargent
On 04/15/2014 09:53 AM, Robert DiFalco wrote: Actually that was exactly the initial table design. There were more fields because for my use case there were a lot more states and certain states have additional data (for example when a call goes from answered to connected it also gets the user_id

Re: [GENERAL] Approach to Data Summary and Analysis

2014-04-15 Thread Robert DiFalco
Actually that was exactly the initial table design. There were more fields because for my use case there were a lot more states and certain states have additional data (for example when a call goes from answered to connected it also gets the user_id of the person being connected to). So that one ta

Re: [GENERAL] Approach to Data Summary and Analysis

2014-04-15 Thread Vincent Veyron
On Tue, 15 Apr 2014 07:21:58 -0700 Robert DiFalco wrote: > I'm sorry Vincent I'm not exactly sure what you are proposing. Are you > proposing that I add another table in addition to what I already have that > all the other tables JOIN to and add a state field in that parent table? No : keep tabl

Re: [GENERAL] Approach to Data Summary and Analysis

2014-04-15 Thread Chris Curvey
On Tue, Apr 15, 2014 at 10:56 AM, Chris Curvey wrote: > On Mon, Apr 14, 2014 at 12:27 PM, Robert DiFalco > wrote: > >> I have several related tables that represent a call state. Let's think of >> these as phone calls to simplify things. Sometimes I need to determine the >> last time a user was ca

Re: [GENERAL] Approach to Data Summary and Analysis

2014-04-15 Thread Chris Curvey
On Mon, Apr 14, 2014 at 12:27 PM, Robert DiFalco wrote: > I have several related tables that represent a call state. Let's think of > these as phone calls to simplify things. Sometimes I need to determine the > last time a user was called, the last time a user answered a call, or the > last time a

Re: [GENERAL] Approach to Data Summary and Analysis

2014-04-15 Thread Vincent Veyron
On Mon, 14 Apr 2014 09:27:29 -0700 Robert DiFalco wrote: > I have several related tables that represent a call state. > > And so on for calls_connected, calls_completed, call_errors, etc. > > So for my question -- is the choice between these a personal preference > sort of thing or is there a

Re: [GENERAL] Approach to Data Summary and Analysis

2014-04-15 Thread Robert DiFalco
I'm sorry Vincent I'm not exactly sure what you are proposing. Are you proposing that I add another table in addition to what I already have that all the other tables JOIN to and add a state field in that parent table? How is that different than what I have except now I have a new table with an upd

Re: [GENERAL] Approach to Data Summary and Analysis

2014-04-15 Thread Vincent Veyron
On Mon, 14 Apr 2014 15:22:13 -0700 Robert DiFalco wrote: Hi Robert, > But then I lose a bunch of data like the TIMESTAMPTZ of the call, answer, > connection, etc. Btw, currently these tables never need to be UPDATEd. They > are immutable in the current design. Yes, but you wrote : >Occasionall

Re: [GENERAL] Approach to Data Summary and Analysis

2014-04-14 Thread Robert DiFalco
Things like this. AVG ring time before answer, average connected call duration. % of calls never answered. % of calls that are answered that are connected. Number of times John has answered a call versus how many times we've called him.That sort of stuff. On Mon, Apr 14, 2014 at 3:34 PM, Rob Sarg

Re: [GENERAL] Approach to Data Summary and Analysis

2014-04-14 Thread Rob Sargent
On 04/14/2014 04:22 PM, Robert DiFalco wrote: But then I lose a bunch of data like the TIMESTAMPTZ of the call, answer, connection, etc. Btw, currently these tables never need to be UPDATEd. They are immutable in the current design. And in the end I'm not sure how the proposal of one table and

Re: [GENERAL] Approach to Data Summary and Analysis

2014-04-14 Thread Robert DiFalco
But then I lose a bunch of data like the TIMESTAMPTZ of the call, answer, connection, etc. Btw, currently these tables never need to be UPDATEd. They are immutable in the current design. And in the end I'm not sure how the proposal of one table and a state that is updatable changes the basic thrust

Re: [GENERAL] Approach to Data Summary and Analysis

2014-04-14 Thread Vincent Veyron
On Mon, 14 Apr 2014 09:27:29 -0700 Robert DiFalco wrote: > I have several related tables that represent a call state. > > And so on for calls_connected, calls_completed, call_errors, etc. > > So for my question -- is the choice between these a personal preference > sort of thing or is there

[GENERAL] Approach to Data Summary and Analysis

2014-04-14 Thread Robert DiFalco
I have several related tables that represent a call state. Let's think of these as phone calls to simplify things. Sometimes I need to determine the last time a user was called, the last time a user answered a call, or the last time a user completed a call. The basic schema is something like this: