bugGNU FM - Bugs: bug #26824, Graph of daily scrobblings on...

 
 

bug #26824: Graph of daily scrobblings on stats page

Submitted by:  Oscar C.P. <oscarcp>
Submitted on:  Wed 17 Jun 2009 01:34:20 AM UTC  
 
Category: nixtape/alphaSeverity: 3 - Normal
Item Group: UIStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 17 Jun 2009 05:29:20 PM UTC, comment #3:

Yes, I didn't think about that because there aren't too much client side things in the alpha but it's true. The graphs could be generated on client side, freeing the server from that load.

Although, it will load the client machine, but it's fine if the user can deactivate the graph options, because if the user does not have a good computer, generating all graphs and stuff could take some time and it will take down the user experience on the website.

But it's a very good idea, i totally forgot about client side! Thanks!

Oscar C.P. <oscarcp>
Wed 17 Jun 2009 03:19:11 AM UTC, comment #2:

I don't know if it would help with generating time but why not use some javascript to generate the graph ?( like flot: http://code.google.com/p/flot/ ). It's based on jquery and is MIT licensed.

It could create graphs based on existing tables and flot also enable some interactivity ( which may be usefull for time based stats ).

David Mignot <idflood>
Project Member
Wed 17 Jun 2009 01:58:56 AM UTC, comment #1:

Sorry, I missed something. Of course if this is implemented, there will be a lot of users by then, so the graph generating times must be calculated. Otherwise, there would be a group of users (I don't know how much people are now, imagine +1.000) that will generate the graph at the same time, overloading the server unnecessarily.

Oscar C.P. <oscarcp>
Wed 17 Jun 2009 01:34:20 AM UTC, original submission:

This is more a suggestion than a bug filing but I didn't know where to put it.

I suggest to do a graph with the daily scrobblings to libre.fm instead of the simple "Scrobblings by day" chart.

This can be accomplished using PyCHA for example (http://bitbucket.org/lgs/pycha/wiki/Home). Due to the quantity of users and constant updating, this graph should be generated weekly starting from the first week of activity from the user, p.e. if I registered in 2009-05-20 the first graph should be generated in 2009-05-27, and every week since then, other user registered in 2009-06-15, first graph on 2009-06-22 and every week since then. This distributes the graph generating load into different times, instead of doing everything at the same time.

It would show up the last 7 days, and if the users wants to see another time window, it can be generated on-the-fly.

Hope you like this suggestion! :)

Oscar C.P. <oscarcp>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by idflood (Posted a comment)
  • -unavailable- added by oscarcp (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup