Refactor set_access process for efficiency
Bug #1952961 reported by
Doris Tam
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Doris Tam | ||
21.10 |
Fix Released
|
High
|
Unassigned | ||
22.04 |
Fix Released
|
High
|
Doris Tam |
Bug Description
The set_access function takes a very long time. Need to reduce Big-O complexity.
This issue has surfaced from trying to upgrade a site with many collections. We're getting stuck at the db upgrade step 'Add "progress" page type' when needing to process 4000 collections and setting pages access for each the pages.
Changed in mahara: | |
assignee: | nobody → Doris Tam (doristam) |
Changed in mahara: | |
milestone: | none → 22.04.0 |
importance: | Undecided → High |
status: | New → Fix Committed |
To post a comment you must log in.
Reviewed: https:/ /reviews. mahara. org/12282 /git.mahara. org/mahara/ mahara/ commit/ 9c9388315dbe078 06ebf5faa928451 2fb18c5fba
Committed: https:/
Submitter: Robert Lyon (<email address hidden>)
Branch: main
commit 9c9388315dbe078 06ebf5faa928451 2fb18c5fba
Author: Doris Tam <email address hidden>
Date: Wed Dec 1 17:28:05 2021 +1300
Bug 1952961: Reduce complexity of set_access
Change-Id: Ifd728955324ad6 a39dd1123e69944 4e739f4d5b4