Ticket #4245 (reopened defect)
[PATCH] Tickets are slow with large amount of users and permissions
| Reported by: | ants.aasma@… | Owned by: | cmlenz |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.11.3 |
| Component: | general | Version: | devel |
| Severity: | normal | Keywords: | slow |
| Cc: |
Description
TicketSystem?.get_ticket_fields() implements an exremely inefficient algorithm to find users that have a certain permission (O(n2users * perms_per_useravg)). I have added a more efficient function to PermissionSystem? that enables querying users having a specified permission directly. It correctly resolves group memberships and hierarchical permissions.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


