Estadísticas del vídeo
Cifras públicas de la última actualización.
- Visualizaciones
- 1,052
- Me gusta
- 16
- Comentarios
- 0
- Compartidos
- 2
- Guardados
- 5
- Interacción
- 1.71%
- Duración
- 140 s
- Publicado
- 12 oct 2026
Análisis del vídeo
El vídeo de TikTok de @entrepreneurship93 “Comment LOCK and I'll send you the cheat sheet comparing locks, atomic updates, and constraints. One ticket left. Two people click Buy at the same time. Both your screens say you got it. ⚡ The bug isn't in your checkout code, it's the gap between checking and writing. Your server reads the seat, sees available, and then, before it writes sold, does something else entirely ⚡ In that gap Leo's request runs the exact same read. It also sees available. Then both writes land, and you send two confirmation emails for one chair ⚡ This is a race condition: not a rare crash, but the ordinary outcome of two requests arriving at once. Nothing threw. Nothing warned. The database did exactly what it was asked, twice ⚡ The first fix is pessimistic locking. SELECT ... FOR UPDATE takes a row lock, and Leo's request can't even read that row until Maya's transaction commits. The queue behind it stops being optional ⚡ The second fix is better because it removes the gap entirely: fold the check into the write. UPDATE seats SET status='sold' WHERE seat='F12' AND status='available', one statement, one decision ⚡ That runs as a single atomic operation. The check and the update either both succeed or neither happens. There is no "between" left for a second request to stand in Even buggy code can't break that rule, because the constraint lives in the database, not in your code. A unique key on the event-and-seat pair means two confirmed tickets for the same seat can't physically exist in the table. The engine refuses the second insert no matter what your application does. The database never really picks a winner by magic. It forces the two requests into a line. One goes first. The other sees the result. Two rules that outlive this specific example: keep your checks inside the write, and keep the final guarantee in the schema. Which has cost you more time, the bug or the incident review after it? Comment LOCK for the full cheat sheet. #databases #concurrency #postgresql #backend #programming” tiene 1,052 visualizaciones, 16 me gusta, 0 comentarios y 2 compartidos en las métricas públicas registradas por este índice. Eso equivale a una tasa de interacción de 1.71% (me gusta, comentarios y compartidos sobre visualizaciones). Se publicó hace más de dos semanas y dura 2 minutos 20 segundos. Se ha guardado 5 veces.
Datos al 26 oct 2026 (UTC), de la última actualización pública registrada por este índice.
- Seguidores
- 11,564
- Siguiendo
- 12
- Me gusta
- 646,906
- Vídeos
- 41
Vídeos recientes
503visualizaciones31me gusta0comentarioshace 26 días@entrepreneurship93 757visualizaciones44me gusta0comentarioshace 27 días@entrepreneurship93 357visualizaciones7me gusta0comentarioshace 27 días@entrepreneurship93 1 Kvisualizaciones46me gusta2comentarioshace 27 días@entrepreneurship93 144visualizaciones0me gusta0comentariosel mes pasado@entrepreneurship93 599visualizaciones21me gusta0comentarioshace 2 meses@entrepreneurship93 542visualizaciones29me gusta0comentarioshace 2 meses@entrepreneurship93 1.5 Kvisualizaciones55me gusta0comentarioshace 2 meses@entrepreneurship93 1 Kvisualizaciones36me gusta2comentarioshace 2 meses@entrepreneurship93 6.6 Kvisualizaciones66me gusta2comentarioshace 3 meses@entrepreneurship93
Hashtags de este vídeo
Los enlaces se mantienen dentro de este índice.
Preguntas frecuentes
- ¿Cuántas visualizaciones tiene este vídeo de TikTok?
- La captura indexada aquí registra 1,052 visualizaciones, 16 me gusta y 0 comentarios.
- ¿Quién publicó este vídeo de TikTok?
- Lo publicó @entrepreneurship93, cuyo perfil está enlazado en esta página.
- ¿Cuál es la tasa de interacción de este vídeo de TikTok?
- Según las métricas registradas, la tasa de interacción es de 1.71% (me gusta + comentarios + compartidos sobre visualizaciones).
- ¿Cuándo se publicó este vídeo de TikTok?
- Se publicó el 2026-10-12, hace más de dos semanas.
- ¿Qué hashtags se usan en este vídeo?
- La captura enlaza 1 hashtag, empezando por #programming.
- ¿Cuánto dura este vídeo de TikTok?
- El clip registrado dura 2 minutos 20 segundos.