google-code-export / bibapp

Automatically exported from code.google.com/p/bibapp
Other
0 stars 0 forks source link

g.works.size for subgroups drastically slows groups/show.html.haml #169

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Create a group with around 30 subgroups and over 3000 works
2. View the group's page, e.g. http://experts.kumc.edu/groups/11
3.

What is the expected output? What do you see instead?
Displaying the group's page took 7-8 seconds in my development machine's 
browser and much longer on our production box. Commenting out line 57 in 
groups/show.html.haml with no other changes reduces the time to under a second.

What version of the product are you using? On what operating system?
svn trunk. Mac OSX and Solaris 10

Please provide any additional information below.

/### Commenting out line below *drastically* reduces page load time ###/
              -  ="(#{g.works.size})"

I'm not sure where g.works.size is coming from, but my average time for 
StandardRequestHandler is ~ 160ms

Original issue reported on code.google.com by stirnam...@gmail.com on 29 Jul 2010 at 9:47