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

Same Title in different sections (charts) #24

Open
ljunkie opened this issue Oct 13, 2013 · 2 comments
Open

Same Title in different sections (charts) #24

ljunkie opened this issue Oct 13, 2013 · 2 comments
Labels

Comments

@ljunkie
Copy link

ljunkie commented Oct 13, 2013

This probably affects other areas to, but I noticed this in the charts page.

Example:

Movie: Iron Man 3
Section: Movies (ratingKey: 7675)
Section: 3d Movies (ratingKey: 8787)

The history will show a play count of lets say 11, however the linked item is only for rating key 7675, which only has one play. The rest of the plays were in 8787.

I was playing around with it, and it looks like we might want to pass info.php?id=7675|8787 and handle multiple rating keys for the same title. I have a working example for passing multiple keys, but I haven't worked on actually obtaining the multiple keys before being passed. You might have better ideas since it's your code :)

@Arcanemagus
Copy link
Collaborator

The problem lies in the original grouping query to the database, to order properly I think it would need to do sub-queries which would slow down an already slow query even further. It's come up elsewhere though so I might look into how feasible it is.

@Arcanemagus
Copy link
Collaborator

Alternatively the query could use the section ID as part of the uniqueness, but then the charts would just have two items with the "same" info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants