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

Feature: Store anonymised totalled counts of listening and downloading #129

Open
pvj opened this issue Nov 26, 2021 · 0 comments
Open

Feature: Store anonymised totalled counts of listening and downloading #129

pvj opened this issue Nov 26, 2021 · 0 comments
Assignees

Comments

@pvj
Copy link
Member

pvj commented Nov 26, 2021

Having a number of listeners and downloads for stored episodes and shows can be useful internally and externally both

In our schema we already have download_count we don't use it however. On each successful request to the episode download endpoint we should increment this value and commit it to db

We need to expand our schema and introduce listening_count which I think is missing.

These both should be stored as integer

download_count & listening_count should both be added to our serialisation dumps for episodes.

We might introduce a class method on shows objects that collect the counts of all episodes hosted by the show. In that case that is not part of the model as we expect that adding all selected rows would not be a huge performance hit. If it is we should expand the show schema.

In either case show-serialisation has to include the totalled counts.

@pvj pvj added this to the New endpoints for ananasz milestone Nov 26, 2021
@pvj pvj self-assigned this Nov 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant