pimbongaerts / mesophotic

Ruby on Rails application to host scientific information on mesophotic coral ecosystems
http://www.mesophotic.org
MIT License
1 stars 3 forks source link

Metadata summary per page rather than search result #60

Closed pimbongaerts closed 5 years ago

pimbongaerts commented 5 years ago

When selecting a specific field on the fields pages - it summarizes the result by paginated page rather than overall search result

ryanbooker commented 5 years ago

This is probably the same anywhere that summaries are done because the collection will be the subset for display on that particular page…

ryanbooker commented 5 years ago

Fixing this slows things down drastically. Fixing the Publication summary doesn't make much difference. Fixing the authors slows it down significantly, and fixing the word cloud slows it down to a crawl.

ryanbooker commented 5 years ago

For now I've just fixed the Publication Summary.

ryanbooker commented 5 years ago

I will look at rendering those summary boxes async, so they can do their calculations without holding up the entire page. Perhaps they can be cached somehow.

pimbongaerts commented 5 years ago

Awesome. For the time being maybe we can just set a max. number of publications for which authors and word cloud will be shown/rendered?

ryanbooker commented 5 years ago

https://github.com/pimbongaerts/mesophotic/pull/76