回到首页

输入关键词,多个关键词用空格分隔。

← 面试刷题笔记 · 系列目录

Sales Rank

约 1 分钟
本页目录

Sales Rank

A large eCommerce company wishes to list the best-selling products, overall and by category. For example, one product might be the #1056th best-selling product overall but th #13th best-selling product under Sports Equipment and the #24th best-selling product under Safety. Describe how you would design the system

Solution

Assume that each product can be in multiple categories, and there is no concept of subcategories.

we do not have to update in the real-time, hourly based / daily

cache, reduce the amounts of operations on Database

相关文章