View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0015796 | mantisbt | bugtracker | public | 2013-04-29 23:17 | 2013-06-24 02:59 |
| Reporter | Alyndri | Assigned To | dregad | ||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Product Version | 1.2.15 | ||||
| Summary | 0015796: very slow response times | ||||
| Description | Hi there, Our corporation uses Mantis as it's main defect management tool internally. At any one time we can have a high number of projects open and assigned to different users. Our issue is that every time any Mantis page refreshes, the 'project list' in the top right corner is refreshed also. This has been found to do over 200 queries to the database, taking up to 15 seconds whenever we request an action or try to move to a new page. Is there a possibility that this list could be enhanced to not cause so many queries every time a request is sent? | ||||
| Tags | No tags attached. | ||||
|
to be clearer on the 'over 200 queries' point: "This has been found to do a separate query for each project in the list when the same data could be brought back in one single query, which should be much more efficient" |
|
|
Thanks for the bug report. In the interest of reproducing the problem, what is exactly a "high number of projects open and assigned to different users." ? How many records in mantis_project_table, mantis_project_user_list_table, mantis_user_table ? Would you be able to provide a dump of these (anonymized if needed) ? As you appear to have already performed the analysis on optimizing the functionality, could you please share the details of your investigation, including the more efficient single query you mention ? Even better yet, if you know PHP, why don't you submit a pull request or a patch ? |
|
|
Is this related to or a duplicate of bug 0009876? |
|
|
Hi there, Thanks for the replies. We are looking into the comments you've given. It may take a bit of time to get this information together as we have other work priorities. Will let you know. Thanks again! |
|
|
We're using MS SQL. We have (in prod/test): |
|
|
I don't have access to an MSSQL platform so I'm afraid I can't help you much with this (at least in terms of reproducing the issue). I ran a quick test after creating a large number (2000) of projects and subprojects, but the performance was fine (page load < 2s) on my dev box (MySQL). |
|
|
Is there some sort of MS SQL profiling tool you can use to find out the problematic queries/query combinations? We might be able to guess what's wrong and send you a patch for validation. |
|
|
Please note that I just fixed a performance issue (see 0009876, thanks rombert for pointing this one out). This may or may not be the root cause of your problem, but in any case I invite you to download the next nightly build (date >= 02-May) or to patch your code with the fix [1] before performing any further testing. Should the problem persist, it may be useful to temporarily set $g_show_queries_count = ON; $g_show_queries_list = ON; in your config_inc.php. Please be aware that this setting may potentially expose sensitive information to your users, so if you don't have a test system available you may want to change this for your profile only, using the Manage Configuration page. Once this is done, reproduce the problem and check at bottom of the page for the following information
[1] https://github.com/mantisbt/mantisbt/commit/cc7703acc8d05f253d52a152a7d8cd0c1c43815d |
|
|
Hi there, I'll arrange for this nightly build to be installed on our DEV server to check the results. Thanks very much for all the help so far! |
|
|
Looking forward to your feedback. |
|
|
Hi there, Our developer patched our DEV environment to the 1.2.16 version. Unfortunately the speed of loading was still very slow with no noticeable improvement, and many queries were still sent to the database instead of just one. Thanks :) |
|
|
Could you share the information that dreagd requested at 0015796:0036735
and also 0015796:0036760
|
|
|
Alyndri, You did not provide any more feedback; I am therefore resolving this issue as "no change required". Feel free to reopen the issue at a later time and provide the requested information. |
|