Michele Riva

8.5K posts

Michele Riva banner
Michele Riva

Michele Riva

@MicheleRivaCode

Independent Researcher - Distributed systems for a living, philosophy & neuroscience for a life worth living.

San Francisco, California Katılım Mayıs 2011
943 Takip Edilen4.8K Takipçiler
Leonardo
Leonardo@mrloldev·
viva españa!
Español
2
0
14
280
Tejas Kumar
Tejas Kumar@TejasKumar_·
hear me out: strava but for books
English
28
0
83
10.6K
Lee Robinson
Lee Robinson@leerob·
She’s found the ancient scrolls.
Lee Robinson tweet media
English
86
36
2.2K
71K
Abhijit
Abhijit@AbhiCodes15·
unpopular opinion: vibe coding is actually hard work too
English
101
10
185
7.5K
Brandon
Brandon@brandonkpbailey·
@MicheleRivaCode I meant to say production users. Not really sure how i goofed that up
English
1
0
0
40
Michele Riva
Michele Riva@MicheleRivaCode·
Real interview question is how to move away from design A before you run out of integers. Serial4 exhausts at ~2.1B, moving a pk to uuid means regenerating an index and if you don't know how to index stuff correctly you’ll blow the db. Also you cannot backfill with a migration - you’ll blow the db again. Even when you backfill, how do you ensure non-nullish values without running an unique query? Mid-level eng question imho
Tanuj@tanujDE3180

Backend Interview Question: Which endpoint scales better ? Autoincrement vs UUID

English
8
3
71
39K
Daniel Brooks
Daniel Brooks@rackSpreader1·
Is sf dating scene relly that bad
English
36
0
37
6.9K
Michele Riva
Michele Riva@MicheleRivaCode·
@c4_cauliflower Yes. Index using `CREATE INDEX CONCURRENTLY` to avoid surprises. Next question is, how do you enforce foreign keys are not screwed up?
English
1
0
1
243
Coooooooolin
Coooooooolin@c4_cauliflower·
@MicheleRivaCode Before switching off of the integer pk, add a new optional column for the UUIDs, fill it for all new entries and use a script to backfill the old entries at whatever rate you can get away with. Once the old entries are all backfilled, switch to using the new column.
English
1
0
2
301
Michele Riva
Michele Riva@MicheleRivaCode·
ZBSearch works on @Cloudflare workers - scales as much as R2 does (a lot)
Michele Riva tweet media
English
0
0
10
1.4K
Ellianne
Ellianne@Elindalyne·
@MicheleRivaCode if you have 2 billion users you can afford to hire someone to figure it out...
English
1
0
0
1.4K
Michele Riva
Michele Riva@MicheleRivaCode·
@theharshpat First of all check the postgres version 'cause it's not supported <18 Then why v7 over v4? If time is the reason, wouldn't a timestamp column work just fine?
English
2
0
3
2.2K
Harsh
Harsh@theharshpat·
@MicheleRivaCode How do you move away from uuidv4 mess to uuidv7? 1TB database btw. Painful af
English
1
0
2
2.2K