Re: [SQL] separating improperly grouped page views

2007-07-05 Thread Jeff Frost
On Sun, 17 Jun 2007, Jeff Frost wrote: On Mon, 18 Jun 2007, Tom Lane wrote: Jeff Frost <[EMAIL PROTECTED]> writes: [ umpteen million iterations of: ] -> Limit (cost=0.00..367.09 rows=1 width=8) -> Index Scan Backward using page_view_stamp_idx on page_view

Re: [SQL] separating improperly grouped page views

2007-06-19 Thread Jeff Frost
On Sun, 17 Jun 2007, Jeff Frost wrote: - Seq Scan on page_view pv1 (cost=0.00..11529031.34 rows=3580205 width=239) SubPlan -> Result (cost=1.58..1.59 rows=

Re: [SQL] separating improperly grouped page views

2007-06-17 Thread Jeff Frost
On Mon, 18 Jun 2007, Tom Lane wrote: Jeff Frost <[EMAIL PROTECTED]> writes: [ umpteen million iterations of: ] -> Limit (cost=0.00..367.09 rows=1 width=8) -> Index Scan Backward using page_view_stamp_idx on page_view pv2 (cost=0.00..158215.86 rows=431 widt

Re: [SQL] separating improperly grouped page views

2007-06-17 Thread Tom Lane
Jeff Frost <[EMAIL PROTECTED]> writes: > [ umpteen million iterations of: ] > -> Limit (cost=0.00..367.09 rows=1 width=8) > -> Index Scan Backward using page_view_stamp_idx on > page_view pv2 (cost=0.00..158215.86 rows=431 width=8) >

[SQL] separating improperly grouped page views

2007-06-17 Thread Jeff Frost
It seems a user visit cookie's expiration has been improperly set and so the tables which represent a user's clickstream through the website are grouped improperly. I'd like to run a set-wise query to regroup them based on periods of inactivity greather than 1 hour. So, what we want to do is a