Comments (3)
I've only briefly looked into the code, but here is a suggestion that may or may not make sense.
I see you have 3 partitions: site
, year
, and month
.
For year and month, you can use partition projection. There is even a specific type for dates. Then you don't need to update partitions, Athena will know that there may exist year
partitions, let's say from 2023 to 2099. And month
partitions from 1 to 12.
site
is more tricky. But it's also less common change that can be done manually. With dynamic partitions, you can use enum type, if possible sites are given in Swa config (I'm not sure about it). Otherwise, I see there is also an "injected type", but I did not use it and don't know exactly how it works.
Again, great job with this project!
from serverless-website-analytics.
That is a great idea! Completely slipped my mind. I will explore this, thanks for the suggestion.
Regarding site
that can easily be managed via a Custom Resource in the CDK. So it will then create/update/delete the site partition whenever it gets added, so a once-off. Then the date partitions are dynamic which means no more partition creating 🙂. Definitely going to look into this one. Thanks again.
from serverless-website-analytics.
Released in v.0.0.5, thanks @m-radzikowski! I could delete a lot of code 😃
from serverless-website-analytics.
Related Issues (20)
- Clicking on a referrer should have a context menu instead HOT 1
- Outbound link tracking HOT 1
- Add performance tracking
- Logo and favicon
- Email reports HOT 1
- Auto analyize traffic
- Add option to view by hour/day HOT 4
- Document query your own data HOT 1
- Uptime monitoring
- Add time filtering
- Explore using AWS Timestream instead of Athena HOT 2
- Auto vacuum if X amount of records have been ingested for that day
- Insights
- Experiment Glue Table Statistics HOT 1
- S3 Express One Zone
- Anomaly Detection HOT 1
- Udpate Anomaly Detection Algorithm so that it better detects when an anomaly is over HOT 6
- Basic real time view
- Use LLRT runtime if possible
- Bug: wrong A record for Cognito domain if using a subdomain HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless-website-analytics.