AtlasOfLivingAustralia / spatial-hub

New spatial portal front end using AngularJS
https://spatial.ala.org.au/
7 stars 16 forks source link

Some large authoritative lists perpetually show "Loading..." in Spatial #473

Open timhicks-ala opened 3 months ago

timhicks-ala commented 3 months ago
  1. Load an authoritative list with > 200 taxa into Spatial (example: "Birds of Western Australia", 537 taxa) - dots will eventually show on map, "Loading" will appear perpetually until you click Cancel - info button shows 505 species so it looks like all species were successfully added (possibly there were 0 occurrences for some).
  2. If you add the exact same list again immediately after, this time the "Loading" box will go away once dots are appearing on the map. This is consistent and repeatable by opening a new tab/session of Spatial and doing the same thing, suggesting the perpetual "Loading" screen is a byproduct of having to load/cache the contents of a list or its records only the first time in a session.
  3. Authoritative lists with < 200 taxa seem inconsistently affected - I've not seen it happen with a list of 14 species, it happened once with one a little below 200 (and then would load first time every time in new tabs).
adam-collins commented 3 months ago

Make the 200 configurable, but use the OR workaround when > 1000 SOLR terms.