-
Notifications
You must be signed in to change notification settings - Fork 4
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
Combine "playback_times" and "watching_now" tables into "playback_history" table #583
Comments
Complication because Also time updates are not sent for live streams, only vod, and both of these can belong to a single media item. Therefore it should be possible for the It should also be possible to easily determine what the view count is from this table with a simple query (and then the This means the view count can be calculated with a simple query which counts the results of filtering the records by When this system is in place there is then the issue of where the initial current view counts would be stored. Instead of the |
There also needs to be a |
Currently there is a "playback_times" table and "watching_now" table.
These should be combined into a single "playback_history" table which will store user session ids.
Each record will have a boolean which indicates whether the video was playing at the time the record was created, and a field which contains the number of seconds the user was into the video when the record was created, as well as a field containing the media item id that the person is watching.
There should be a
session_id
field which has a constraint to thesessions
table and is set to NULL when the session is removed, and also aoriginal_session_id
which has no constraints and is set to the same value when the record is created.When a users session expires the record should remain in the table along with the session id so that these records can then be used to generate statistics.
The text was updated successfully, but these errors were encountered: