ScienceCommons / api

API for interacting with Curate Science model
http://curatescience.org
MIT License
2 stars 4 forks source link

use eager_load to speed up Article queries #230

Closed alexkyllo closed 9 years ago

alexkyllo commented 9 years ago

The Article queries for the landing page were essentially nested in a loop (N+1 query problem) and I changed it to use "eager loading" which converts the multiple queries in to a single LEFT OUTER JOIN query. This should cause the landing page to load a lot faster.