Opened 16 years ago
Closed 12 years ago
#528 closed defect (fixed)
Loading Viewer forwever when attempting to display Zea mays subsp. mays accessions on species display page
| Reported by: | Mark J. Millard | Owned by: | bweaver |
|---|---|---|---|
| Priority: | major | Milestone: | Release Candidate 2 |
| Component: | Public Website App. | Version: | 2.0.1431 |
| Severity: | Keywords: | ||
| Cc: | Database Engine: | SQL Server | |
| Operating System: | Windows 7 Ultimate 64 bit |
Description
On my localhost installation I went to the taxonomy search and typed in Zea in the genus and navigated down until I got to the 3,046 item for Zea mays subsp. mays. I then clicked on that entry and got the taxon page for Zea mays subsp. mays. I then clicked on the 3,046 entry and got a slow script warning. If I click no I repeatedly got the slow script. If I said yes, I got the "loading viewer please be patient. I have waited 15 minutes with no response. I will go to lunch and come back to see if it ever comes up. I am using IE8.0.7600.16385 32 bit browser on Windows 7 Ultimate 64.
Attachments (2)
Change History (8)
by , 16 years ago
| Attachment: | ZeaAccessionList_2010-09-22a.jpg added |
|---|
by , 16 years ago
| Attachment: | ZeaAccessionList_2010-09-22b.jpg added |
|---|
Warning about slow script and part of the loading viewer please be patient screen
comment:1 by , 16 years ago
This is a IE8 compatibility issue. Chrome, Firefox, and Safari are ok on this operating system. While this may not be an unbiased source of information it is one estimation of browser usage: http://en.wikipedia.org/wiki/Usage_share_of_web_browsers . Therefore I think we need to make sure GG website is IE compatible.
comment:2 by , 16 years ago
| Component: | Curator Tool → Web Application |
|---|---|
| Owner: | changed from to |
comment:3 by , 16 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → accepted |
This is actually an IE-specific issue. http://support.microsoft.com/kb/175500
There is a built-in default of executing 5,000,000 statements before the dialog pops up. The data from the server for this request is actually considerably more than 3,000 -- due to the fact that we join data in and return duplicates, and have the client-side group as needed.
The grouping code currently runs through the server data O(n2) times -- or 3000 x 3000 minimum, which is 9,000,000 times. Since that's over the 5 million default limit, IE issues the warning. If you continue clicking No a few times, it will eventually work exactly like it does in all other major browsers.
There are only 3 ways around this:
- Give IE a higher limit - http://support.microsoft.com/kb/175500 - really bad approach
- Make code more efficient (maximum efficiency achievable is O(n log n) which would be under the 5,000,000 limit. I'm looking into this.
- Use any of Firefox, Chrome, Safari, Opera, etc.
comment:4 by , 16 years ago
| Status: | accepted → addressed |
|---|
(In [1444]) - fixes #528 : pivoter.js unique() function now uses a hash sieve instead of a classic quadratic approach to move from O(n2) to O(2n) time complexity. This means instead of 9,000,000 iterations, we only have 6,000. Stop script error no longer occurs in IE and all pages using the pivoter.js to show data are considerably snappier now.
comment:5 by , 16 years ago
| Status: | addressed → released |
|---|
comment:6 by , 12 years ago
| Resolution: | → fixed |
|---|---|
| Status: | released → closed |
I am closing this ticket in that the webpage has changed considerably and probably would work with 3,000 records. Now refer to ticket #925.

Start of process expecting to see a paged list of Zea mays subsp. mays accessions