OpenSprites-next icon indicating copy to clipboard operation
OpenSprites-next copied to clipboard

Make models download complicated attributes on-demand

Open MegaApuTurkUltra opened this issue 9 years ago • 4 comments

So by default Resource shouldn't download owners, and Collection shouldn't download items, owners, curators, or subscribers, since those could potentially get quite large. Instead, checking if an ID is on that list should be done as a mongo query and all actual downloads of the list should be paginated. This kind of goes with #41

MegaApuTurkUltra avatar Jul 06 '16 14:07 MegaApuTurkUltra

https://docs.mongodb.com/manual/reference/operator/query/nin/#op._S_nin

bates64 avatar Jul 06 '16 15:07 bates64

Partially implemented in Collection 🎉

MegaApuTurkUltra avatar Jul 07 '16 13:07 MegaApuTurkUltra

Somewhat complete. Resources.downloaders could still use some work

MegaApuTurkUltra avatar Jul 16 '16 21:07 MegaApuTurkUltra

Just did Resource.downloaders. The last things should be collection owners/curators/subscribers (although I think owners should be ok - we don't expect a huge number of owners anyway - and curators/subscribers don't have any non-mongo-based operations so far 📦 ), and comments, where we probably want them paginated

MegaApuTurkUltra avatar Jul 25 '16 15:07 MegaApuTurkUltra