mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #27911
[Bug 1465281] Re: Significant slowdown in page loads when working with large numbers of files in groups
Hi Mike,
Did this only start happening after you upgraded to Mahara 15.04?
Cheers,
Aaron
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1465281
Title:
Significant slowdown in page loads when working with large numbers of
files in groups
Status in Mahara:
Triaged
Bug description:
When working in groups where many files have been uploaded to the
group space (hundreds or more), any part of the interface which uses
the file browser slows significantly. For example when viewing the
Files tab in the group, or when adding an Image content block to a
group page.
There are two aspects to this - the retrieval of the page from the
server, and the rendering of the page in the browser. Both become
significantly slower as more files are uploaded.
Browser end
In the Files tab in a group with about 250 files, the Mochiscript javascript starts throwing errors due to long processing time, when rendering the page in the browser. (Firefox 38). This appears to be due to the code which initializes drag and drop on files and folders. (If all files are put into folders, the rendering of the Files tab page is almost instantaneous - once the page is retrieved from the server.)
Server end
The retrieval of pages from the server becomes very slow, apparently due to checking for files and permissions across many database tables, many times.
In a very large group with GB of user content the group became
unusable, with uploads taking 20 seconds or more.
Suggestions
The filebrowser seems to load all available files every time. Could we load only the files in the current folder, and load other files when required?
Could we optimize the database query which returns the list of available files?
Notes
This issue is likely to occur in the users' personal upload space as well - I haven't tested that as yet.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1465281/+subscriptions
References