3 ms·
From the article: User table is unsharded. They just use a big database and have a uniqueness constraint on user name and email. Inserting a User will fail if
by js2 14y ago
From the article:
User table is unsharded. They just use a big database and have a uniqueness constraint on user name and email. Inserting a User will fail if it isn’t unique. Then they do a lot of writes in their sharded database.
Get the user name from the URL. Go to the single huge database to find the user ID.
I believe the parent is correct.
- jokull 14y agoI see. We tackle the same issue by having a redis keyspace with emails. It can get pretty huge without any problems.