Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial load performance a bit slow #436

Open
djtfmartin opened this issue Apr 16, 2021 · 2 comments
Open

Initial load performance a bit slow #436

djtfmartin opened this issue Apr 16, 2021 · 2 comments
Assignees
Milestone

Comments

@djtfmartin
Copy link
Member

The initial page load performance of biocache-hubs is slow. For me there is a 6-8 secs lag at the start of the load.

Screen Shot 2021-04-16 at 1 04 18 pm

GBIF report this is more like 11 seconds for them from Copenhagen.

@adam-collins
Copy link
Contributor

Tested today. Same old problem, too many default facets. e.g. in the test, all records search, 19s for the default 12 facets, 2.5s for the minimum of 1.

Not a lot of ideas. Limiting to 4 facets is probably too few for some users. The default 12 I saw today is far too many.

  1. Reduce the number of default facets enabled, again.
  2. Present all, or most, of the facets collapsed and load data when clicked and opened.

Other opinions required.

@adam-collins
Copy link
Contributor

Here is a summary of manual tests than can be used for finding possible errors. There were some minor value formatting fixes that were also required.

The code is still doing 2 requests, instead of 1, when data quality filters are enabled because I did not think it looked good when the displayed record count contained a spinner for the "of" count, e.g. 149,912,064 records returned of 149,912,064 for [all records].

If all facet groups are open, and both data quality sections are open, I expect the larger number of individual facet requests will have a slightly larger load on the backend. However facet groups are not open by default so this will not be the typical use case.

When comparing the performance, using the default facets and all records, the initial page response time did report ~2s vs 11s. This is not consistent and there are other factors that apply.

Test removal of empty facet groups:

  1. Add 'Month' and 'Year (by decade)' to the visible facets
  2. Confirm that 'Events' is not displayed in the "Narrow your results" section. biocache-test.ala.org.au/occurrences/search?q=%3A&fq=&fq=month%3A%221%22&fq=occurrence_decade_i%3A%222020%22&qualityProfile=ALA&disableAllQualityFilters=true

Test on-demand retrieval/display of selected Data Profile

  1. biocache-test.ala.org.au/occurrences/search?q=%3A&fq=&fq=month%3A%221%22&fq=occurrence_decade_i%3A%222020%22&qualityProfile=ALA&disableAllQualityFilters=true
  2. Data Profile in "Narrow your results" (now DQ1) and Data Profile below the number of "records returned" (now DQ2) sections can be opened and closed, try the combinations.
  3. Close DQ1 and DQ2, then reload page. Test opening DQ1, counts will load. Test opening DQ2, counts will load. Close and reopen each DQ1 and DQ2 to confirm counts remain visible.
  4. Close DQ1 and open DQ2, then reload page. Test opening DQ1, counts will load. Close and reopen each DQ1 and DQ2 to confirm counts remain visible.
  5. Open DQ1 and close DQ2, then reload page. Test opening DQ2, counts will load. Close and reopen each DQ1 and DQ2 to confirm counts remain visible.
  6. Open DQ1 and open DQ2, then reload page. Close and reopen each DQ1 and DQ2 to confirm counts remain visible.

Test "Narrow your results" group opening/closing. Excludes Data Profile group.

  1. biocache-test.ala.org.au/occurrences/search?q=%3A&fq=&fq=month%3A%221%22&fq=occurrence_decade_i%3A%222020%22&qualityProfile=ALA&disableAllQualityFilters=true
  2. Use defaults by clicking "Customise filters" and "Reset to defaults". The page will reload.
  3. Close each group; Taxon, Location, Record, Assertions, Attribution. Reload page. Open each as quickly as possible. Ensure that each section will all load, eventually. Initially a spinner is visible and it is replaced by a list. Test closing/opening of each group and that the contents are displayed correctly.
  4. Open each group; Taxon, Location, Record, Assertions, Attribution. Reload page. Test closing/opening of each group and that the contents are displayed correctly.
  5. Close each group except Taxon. Reload page. Open each as quickly as possible. Ensure that each section will all load, eventually. Initially a spinner is visible and it is replaced by a list. Test closing/opening of each group and that the contents are displayed correctly.

Test all facets (not using :, but probably should be)

  1. biocache-test.ala.org.au/occurrences/search?q=%3A&fq=&fq=month%3A%221%22&fq=occurrence_decade_i%3A%222020%22&qualityProfile=ALA&disableAllQualityFilters=true
  2. Select "Customise facets" and select all in the Taxon group only. Click 'update', the page reloads. Open the Taxon group, if not open, and check that all labels displayed are as expected, e.g. aligns with production for such formatted values as "Sub-species" for "Identified to rank" and "Exact match" for "Name match metric". "Species interaction" will be removed when the spinner finishes as it has no result.
  3. Repeat for all items in "Identification" group only. "Specimen type" is unchanged and formatted as uppercase.
  4. Repeat for all items in "Occurrence" group only. "Life stage" appears odd but is consistent with production.
  5. Repeat for all items in "Event" group only. Use this URL for "Event" http://localhost:8081/occurrences/search?q=kangaroo&qualityProfile=ALA. Confirm it aligns with production labels. e.g. "Year" is sorted in ascending order and "Year by decade" is not.
  6. Repeat for all items in "Location", then "Record", etc.

adam-collins added a commit that referenced this issue Feb 23, 2025
…performance

#436 get facet information for list view only when required
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants