rkohser / gustaf

http://rkohser.github.io/gustaf
MIT License
0 stars 0 forks source link

Avoid N+1 problem #6

Open rkohser opened 10 years ago

rkohser commented 10 years ago

By using prefecthing : http://peewee.readthedocs.org/en/latest/peewee/api.html#prefetch

Or deduplication : http://peewee.readthedocs.org/en/latest/peewee/api.html#SelectQuery.aggregate_rows

rkohser commented 10 years ago

Check behaviour of ModelManager mergeEpisode method