Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weekly/Monthly and maybe alltime Stats #76

Open
Megachip opened this issue Sep 22, 2020 · 9 comments
Open

Weekly/Monthly and maybe alltime Stats #76

Megachip opened this issue Sep 22, 2020 · 9 comments
Labels
api intensive This enhancement isn't currently possible due to heavy API usage enhancement New feature or request

Comments

@Megachip
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Nope ;)
Would like to see long term stats similar to the one day stats in MunzStat or like gc_stat/oc_stat generates for geocaching.
These could include:

  • Top10/Top25 of Captures and Cap-ons by player
  • Points by type (Caps, deps, capons)
  • ...
    I really would love to know wo captured most of my munzees and vice versa.

Describe the solution you'd like
To prevent additional load to the api, the data of older days could be stored persistent on the phone and only refreshed on request (e.g. lately submitted offline caps)

Describe alternatives you've considered
Doing API requests for a longer period of time isn't a good alternative :(

Additional context
Provided on request. Hopefully Explanation is enough ;)

@Megachip
Copy link
Contributor Author

oh, figured out, that at least all time already exists ;)
https://statzee.munzee.com/player/leaderboard/

@sohcah
Copy link
Member

sohcah commented Sep 22, 2020

This would use a lot of API requests. Assuming I could designate 10 requests per minute for fetching this data, it would take over 4 hours just to fetch this data for my account. So, unfortunately, this probably won't be possible. 😢

@sohcah sohcah added the enhancement New feature or request label Sep 22, 2020
@Megachip
Copy link
Contributor Author

This would use a lot of API requests. Assuming I could designate 10 requests per minute for fetching this data, it would take over 4 hours just to fetch this data for my account. So, unfortunately, this probably won't be possible. 😢

Thats why the described solution. Just cache/store the data, the user already requested. So its up on the user to keep his local backup/copy up2date. Everything else would kill the servers ;) ... Ill guess we saw the result when the first universal was released ;)

Lets keep it as an idea, if you're fine with it ;)

Maybe some times someone will find the time and resources ;)

@sohcah
Copy link
Member

sohcah commented Sep 22, 2020

Unfortunately, it would still take 4 hours that first time.. for a single person. Any other people that want to use it would have to wait for that 4 hours to be over to use it themselves.
If you had even 12 people wanting to use it, it would take 2 days to load for them all.

@sohcah
Copy link
Member

sohcah commented Sep 22, 2020

Sure, it may only take a minute or 2 for future loads, but with 2491 CuppaZee users, it's completely unfeasible.

@Megachip
Copy link
Contributor Author

I do not plan any additional api requests ...

I'll guess, not yet checked, why my profile is loaded, the data for the actual day will be loaded (what did I cap, who capped things from me... including types, points etc) ... when I change the day, these data will be loaded for that day. So, why not just store these data persistent and generate stats out of this local data? - maybe there is data missing cause the user didn't opened that date...

@sohcah
Copy link
Member

sohcah commented Sep 22, 2020

We wouldn't have that data cached from the past. Some people have been playing this game for over 9 years now.. so going back and getting data for every single day going back would take a huge amount of time.

@sohcah
Copy link
Member

sohcah commented Sep 22, 2020

If this were possible, I'd implement it, definitely. But due to the Munzee API having strict limits on the amount of API requests I can send, it's really not possible. 😢

@sohcah sohcah closed this as completed Sep 22, 2020
@sohcah sohcah reopened this Sep 22, 2020
@sohcah sohcah added the api intensive This enhancement isn't currently possible due to heavy API usage label Sep 22, 2020
@Megachip
Copy link
Contributor Author

We wouldn't have that data cached from the past. Some people have been playing this game for over 9 years now.. so going back and getting data for every single day going back would take a huge amount of time.

They have to this either manually day by day (congrats ^^) or living without that data. There should no automatism which increases the load to the api.

For the moment it's just an idea, which I didn't want to loose out of my mind. No priorities or anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api intensive This enhancement isn't currently possible due to heavy API usage enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants