assaf / vanity

Experiment Driven Development for Ruby
http://vanity.labnotes.org
MIT License
1.55k stars 269 forks source link

"Preload" multiple experiment status/participation for a page #378

Open bensheldon opened 2 years ago

bensheldon commented 2 years ago

If a page is running multiple experiments, Vanity will make multiple roundtrips to the database. It would be nice to be able to pre-fetch status for multiple experiments in a single (or at least not an N+1) number of queries.