Remove active_votes from post data across bridge and condenser_api
Almost every call in bridge
and condenser_api
that returns posts includes active_votes
. For calls related to popular posts, especially hot
and trending
, data about votes can take even 90% of whole result (and the same percentage of response time). That data is mostly unused, needlessly eating bandwidth and server CPU. Even the hiveblocks.com
that shows all the vote details, it does so only after user clicks on the link - a moment when frontend should ask for votes in separate call. As far as I can see the only information about votes displayed directly with posts is their amount. That information can easily be provided instead of full vote details.
Note that for hivemind prior to HF24 it kind of made sense to include vote details in posts. It was because votes were stored as part of post in large string that needed to be parsed in order to compute data such as number of votes, number of upvotes, cumulative rshares etc. Since hivemind had to decompose vote string in order to supplement data about the post anyway, it was natural to include vote details in the same result. It is no longer true for current hivemind. Now everything related to pulling and processing active_votes
is waste.