Skip to content

Instantly share code, notes, and snippets.

@rjp
Created June 22, 2011 16:16
Show Gist options
  • Save rjp/1040461 to your computer and use it in GitHub Desktop.
Save rjp/1040461 to your computer and use it in GitHub Desktop.
ribot url counts
scribot=# select id, wh from url where id in (select min(id) from url union select max(id) from url union select id from url where id % 5000 = 0) order by id asc;
id | wh
-------+-------------------------------
135 | 2002-08-13 15:15:20+01
5000 | 2003-05-07 11:28:34+01
10000 | 2003-11-12 13:14:19+00
15000 | 2004-05-15 10:31:01+01
20000 | 2004-12-10 10:18:29.182655+00
25000 | 2005-06-08 14:34:57.188951+01
30000 | 2005-11-08 13:50:39.732762+00
35000 | 2006-04-11 16:14:27.273072+01
40000 | 2006-10-17 14:24:55.249109+01
45000 | 2007-07-13 16:42:33.25275+01
50000 | 2008-02-12 14:11:37.847876+00
55000 | 2008-09-09 10:20:18.794736+01
60000 | 2009-02-20 22:13:40.305826+00
65000 | 2009-07-30 13:06:19.048066+01
70000 | 2009-12-09 10:02:25.692369+00
75000 | 2010-06-04 10:27:34.86402+01
80000 | 2011-03-21 12:01:38.949904+00
85000 | 2011-12-16 10:48:37.138456+00
89788 | 2012-11-26 05:57:34.743883+00
(19 rows)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment