Danny van Kooten
019b7c9743
show pagination arrows in table component which allows paginating the table results. closes #153
2018-11-20 12:11:35 +01:00
Danny van Kooten
e92b4b9a29
clean-up route & func names
2018-11-14 11:47:47 +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
53c1702d0d
only re-fetch data when needed
2018-10-05 15:13:48 +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 van Kooten
4b855c6d05
add site related func to sqlstore
2018-10-03 10:44:31 +02:00
Danny van Kooten
7c3adcb10b
rework user cli management
2018-09-26 14:44:13 +02:00
Vincent Boutour
e712f0fcdd
Adding /health endpoint and using it in container
2018-09-17 17:20:48 +02:00
Danny van Kooten
291d53fcaf
add CountUsers func to sqlstore
2018-09-12 09:11:50 +02:00
Danny van Kooten
1fea0dc66f
return error from datastore.Close func
2018-07-15 09:20:07 +02:00
Danny van Kooten
f2683d1f0c
buffer insert & updates of pageviews for performance gain under heavy load. closes #24
2018-07-12 13:30:32 +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
7bf8978cb6
use a single http request to fetch all data for left-sidebar
2018-06-04 12:53:17 +02:00
Danny
071ea5ace0
split hostname and pathname in referrers table
2018-05-30 12:50:28 +02:00
Danny
7adc5d3bec
wip on chart implementation using d3
2018-05-22 12:23:17 +02:00
Danny van Kooten
3b8a884991
godoc improvements
2018-05-21 11:54:01 +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
Danny
8b639d348d
lowercase all log messages and strip newlines
2018-05-15 10:26:35 +02:00
Danny van Kooten
27e1d5d368
set packr box dir dynamically to ensure all drivers are packrd
2018-05-08 18:49:56 +02:00
Danny
60cca7d40f
add support for postgres too. closes #9
2018-05-08 15:41:48 +02:00
Danny
0683cac2bf
use packr to embed migration files & web assets into binary. closes #8
2018-05-08 14:57:08 +02:00
Danny
2ceaaeb9f5
add support for sqlite. #9
2018-05-08 12:31:51 +02:00
Danny
433c6e2f4d
get general data flow up & running again for site stats
2018-05-07 16:05:53 +02:00
Danny van Kooten
082073afb8
[wip] move bulk of storage to client-side for improved scalability, simplicity and privacy. see #14 .
2018-05-06 11:53:19 +02:00
Danny
c238a2abc3
use COALESCE instead of IFNULL, get rid of backticks. First steps towards Postgres compliance
2018-04-30 16:11:47 +02:00
Danny van Kooten
ac15507023
stop exporting DB instance in datastore pkg. yay
2018-04-27 17:32:16 +02:00
Danny van Kooten
94b5a03d8e
refactor part of count package to datastore, needs more work for other metrics besides pageviews
2018-04-26 20:40:00 +02:00
Danny
6f0ed92dfe
use sqlx pkg for scanning user queries
2018-04-25 13:45:21 +02:00