logoalt Hacker News

bijowo1676today at 3:49 AM2 repliesview on HN

not the best design to have 1000 rows for each shop*SKU combination. If a candidate proposed this solution during Shopify's System Design interview, i doubt he would be vetted for Senior+ position.

Instead of having 1000 rows per shop*SKU, why not just have one row per shopping cart*SKU?

That way a single row would represent a single cart, and will hold info of multiple items of the same SKU.

No need a cludge with 1000 rows limit and replenishment process. Instead of dealing with N rows, you always deal with a single row.


Replies

atomicnumber3today at 5:01 AM

I have never worked anywhere where describing how their system actually works would pass the company's own system design interview

soontimestoday at 4:06 AM

> Instead of having 1000 rows per shopSKU, why not just have one row per shopping cartSKU?

At what point that row is inserted?

show 1 reply