How To Build An Online Dating Site, NoSQL Edition
This is part 2 in a series about the architecture of Similarity.com. For a general overview, see part 1.
Like a lot of people building websites today, I emerged from the 2000s with a lot of experience building applications using the “traditional web stack”: Some sort of web server that accepts HTTP requests, issues SQL queries to an RDBMS, and returns the results as formatted HTML. Starting in university and proceeding throughout my career, I learned the “correct” way to model data structures and query them with relational algebra.
Ten years ago, if you asked me to model an online dating site with people, answers to questions, freeform essays, etc, I would have built an attractive, normalized structure like this:
CREATE TABLE person ( id INT PRIMARY KEY, name VARCHAR(255), email VARCHAR(255), first_login TIMESTAMP, last_login TIMESTAMP, birth DATE, sex CHAR(1), orientation CHAR(1)); |
CREATE TABLE like ( id INT PRIMARY KEY, person_id INT, like_id INT, value INT); |
CREATE TABLE essay_question ( id INT PRIMARY KEY, question VARCHAR(255)); |
CREATE TABLE essay_answer ( id INT PRIMARY KEY, person_id INT, question_id INT, answer VARCHAR(4096)); |
57 Notes/ Hide
-
java-oracle-programacion likes this
-
website-designers-brighton reblogged this from simians
-
repositoryyu8 likes this
-
gregorynicholas likes this
-
emileeyou89 likes this
-
dominquezpop likes this
-
mildredbod8 likes this
-
yeseniauio09 likes this
-
stephensok85 likes this
-
danielsrose likes this
-
dating7767 likes this
-
simians posted this



