The num_likes annotation is quite heavy, so avoiding it on pages where
it is not used seems smart.
With this, only the TopAllDweetFeed view should be particularly slow,
hopefully (the rest of the top views are fast since they start by
filtering out a lot of data based on posted at date before doing their
sorting).
When opening your Pull Request, we encourage you to do the following (you can add an X to check each task):
[x] Run make lint to ensure that all the files are formatted and using best practices.
The num_likes annotation is quite heavy, so avoiding it on pages where it is not used seems smart.
With this, only the TopAllDweetFeed view should be particularly slow, hopefully (the rest of the top views are fast since they start by filtering out a lot of data based on posted at date before doing their sorting).
When opening your Pull Request, we encourage you to do the following (you can add an X to check each task):
make lint
to ensure that all the files are formatted and using best practices.