managing calendars very slow

Bug #187772 reported by Tom Hoffman
Affects Status Importance Assigned to Milestone
Justas Sadzevičius

Bug Description

Clicking the "More..." button under the calendar legend is *very* slow. Submitting your results is also very slow. This isn't such a common task, so it doesn't have to be super optimized, but on my box at least, it is in the 10 second range and resource intensive.

Changed in schooltool:
assignee: nobody → ignas
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Ignas Mikalajūnas (ignas) wrote :

Hmm, this one is a bit difficult to solve. At the moment the code iterates through all the persons, resources and groups to generate the list of possible overlays.

And it is impossible to cache these values, because the list is permission dependent.

One solution would be to redo the overlays completely, only leaving the list of "already overlayed" calendars in that view. And have people add the calendars by browsing to the calendar that they need and clicking "Overlay" button somethere in the UI.

So instead of combing through a list of 1000 persons in a listbox and no search you would go to the Persons container, find the person, go to his calendar and click "Overlay" or a huge "+" sign.

OTOH - who would want to overlay a calendar of another person ;) Maybe we should limit the view to groups?

tags: added: optimization usability
Changed in schooltool:
assignee: Ignas Mikalajūnas (ignas) → Justas Sadzevičius (justas-pov)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers