17 Commits

Author SHA1 Message Date
Danny van Kooten
e92b4b9a29 clean-up route & func names 2018-11-14 11:47:47 +01:00
Danny van Kooten
7ccdea4535 don't COALESCE when it's unnecessary 2018-11-14 10:27:14 +01:00
Danny van Kooten
2ca1e0f36e switch to hourly storage for stats.
- allows showing an hourly chart on the 'today' view
- fixes timezone issues when in 'today' view #134
- increases size of stats tables by factor 24, but that should be less of an issue after dbcadcd73772258f2d2fd781673e559d5ed74dba
2018-11-13 15:23:18 +01:00
Danny van Kooten
dbcadcd737 normalize hostname and pathname columns
to save on disk storage
2018-11-12 14:45:21 +01:00
Danny van Kooten
ce8f585827 sqlstore GetXStats funcs should return nil when there are 0 results. #50 2018-10-10 09:02:32 +02:00
Danny van Kooten
1b06bd3179 change precision on numeric columns for postgres so we don't have to apply rounding. closes #116 2018-10-09 13:27:50 +02:00
Danny van Kooten
876309ae59 clean-up sqlstore pkg 2018-10-05 14:34:39 +02:00
Danny van Kooten
d4176de238 get aggregator to take site ID's into account 2018-10-05 14:19:11 +02:00
Danny van Kooten
c1367325e6 modify all routes & queries to take a site ID parameter 2018-10-05 13:09:58 +02:00
Danny
50c0d9ccd0 add NULLIF in group statement because of go null values = empty string 2018-06-08 16:00:32 +02:00
Danny
e2294c4b6c fix postgres errors by converting to null in divisions. closes #54 relates to #52 2018-06-08 15:39:38 +02:00
Danny
a72df6274f generate sql statement dynamically 2018-06-01 13:21:54 +02:00
Danny
6f45edc790 fix groupby with null values 2018-06-01 11:43:59 +02:00
Danny
b856477d2a fix sqlite datastore compat, concat does note xist there 2018-05-30 13:29:20 +02:00
Danny
071ea5ace0 split hostname and pathname in referrers table 2018-05-30 12:50:28 +02:00
Danny
df7496a80d add known_durations column and use that for calculating duration averages, instead of total # pageviews 2018-05-28 15:31:40 +02:00
Danny
c30e5b3120 introduce datastore interface & stop relying on package var to retrieve db conn. relates to #29 2018-05-15 13:30:37 +02:00