educative.io

Sorting popularity in Index

@Design_Gurus So what do you mean by this line : Each partition can sort the results based on this popularity number before returning results to the aggregator server. The aggregator server combines all these results, sorts them based on the popularity number, and sends the top results to the user.
I have below doubts :

  • What is partition here ? Do you mean index server?
  • Why we sort twice one by partition and another by aggregator?

What I thought is when the search request comes in aggregator will get all the result from the index server and sort it and return it back . But don’t you think it will increase the read latency in this case?

1 Like