Tech IndustryMay 29, 2019
Clearstream.TVJobSearch

System design interviews. Do you actually list out sql types

For example, do you write each column’s data type? Like int, long, datetime etc. And do you actually calculate how many bytes you need for each column?

Add a comment
Facebook megarising May 29, 2019

No, dont need that. Hardly ever need full schema

CVS Health zzwJ42 May 29, 2019

Types not necessarily, bytes yes (especially when solving problems like url shortening, hashing)

Clearstream.TV JobSearch OP May 29, 2019

Ok literally all 3 responses have been different lol

Intel blindfaith May 29, 2019

did you get job from FB ?

Tesla AnlD52 May 29, 2019

Yes and no

WeWork sad May 29, 2019

Summary: Maybe

Yelp sJJv80 May 29, 2019

Better summary: it depends. The URL shortener and hashing examples are instances where you would probably want to do that. So might be a distributed web crawler, or an app that tracks historical prices of items on Amazon. Where might you not care? When you know the whole data set is small enough that you don’t have to, or there is an obvious way of storing the data so that you know one database instance will be enough. (Turns our that storing every product id on Amazon actually falls into this category, too, but you might need to think a little to realize that.)

Symantec eYcG72 May 29, 2019

All of the system design interviews I have done haven't needed to go that deep.

Amazon fahrenheit May 30, 2019

If you're asked to be this specific, it means your interview is not about system design at all, irrespective of the interviewer understanding this.

Spotify qbeforeu Jun 1, 2019

sql tables does not sound like “system design”

Uber gofka675 Jun 3, 2019

A general sense of the types, their size, the approximate size of a row and approximate overall data size is easy to do and will definitely impress your interviewer. See https://www.practicecodinginterview.com/blog/2018/8/18/the-system-design-interview