Danny van Kooten
b5ee8ea5f0
in postgresql, pageviews.timestamp column should be without timezone
2018-11-14 09:31:34 +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
21c0f97b1b
cannot vacuum from inside a transaction
2018-11-13 11:16:23 +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
3c934b29fc
add is_finished column indicating whether a pageview is done (ready to be aggregated). closes #123
2018-10-10 10:27:55 +02:00
Danny van Kooten
c877319046
fix DROP INDEX statements for mysql
2018-10-10 10:27:16 +02:00
Danny van Kooten
2f64d56771
alter stats table constraints to take site_id column into consideration
2018-10-10 09:30:52 +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
84cd897319
use auto increment column for pk on sites table
2018-10-09 11:17:26 +02:00
Danny van Kooten
80088570b0
default to site_id 1, even though it may not exist yet
2018-10-05 16:07:15 +02:00
Danny van Kooten
f0eecc04cd
add sites table & site_id columns for multi-site tracking #50
2018-09-25 15:03:07 +02:00
Danny
42008ab83f
get rid of session_id and move knowledge of previous pageview to client. this also gets rid of the (only) index on the pageviews table, allowing for much faster INSERT's. closes #14
2018-07-11 15:03:56 +02:00
Danny
958e653b1f
set explicit charset for mysql tables to workaround key limit of 7xx bytes. #58
2018-06-13 09:56: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
Jay Nagpaul
0ab5d12e1b
Fix Postgres Migration
2018-06-07 16:36:31 -04:00
Danny
8c6e07255f
failsafe sql for referrer migrations
2018-06-01 13:21:40 +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