Open laurenwalker opened 4 years ago
In #1346, the Stats model was refactored, so no work is needed for the StatsView:
StatsView (used by portals) This is partially getting addressed in #1346. There are 9 total queries sent to Solr to render the various graphs, which I won't go into right now, but they should be looked at.
Look into Solr features released after version 3 (metacat 2.12.0 and earlier) to minimize query HTTP calls sent by MetacatUI views.
Some examples and the Solr join query parser and subqueries.
Since this requires Metacat 2.13.0, we should be careful about when to release this in MetacatUI since users who haven't upgraded won't be able to move forward that UI release.
Places for improvement:
DataCatalogView
Request 1 and 2 could be combined. Request 3 and 4 could possibly be removed all together or only sent when the Year filter is expanded. I don't think we need to update the year slider with every single search since that filter is used infrequently.
MetatdataView
StatsView (used by portals) This is partially getting addressed in #1346. There are 9 total queries sent to Solr to render the various graphs, which I won't go into right now, but they should be looked at.