Video stats
Public counts from the last refresh.
- Views
- 1,052
- Likes
- 16
- Comments
- 0
- Shares
- 2
- Saves
- 5
- Engagement
- 1.71%
- Duration
- 140s
- Posted
- Oct 12, 2026
Video insights
@entrepreneurship93's TikTok video "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" has 1,052 views, 16 likes, 0 comments, 2 shares in the public metrics captured by this index. That is an engagement rate of 1.71% (likes, comments and shares over views). It was posted over two weeks ago and runs 2 minutes 20 seconds. It has been saved 5 times.
Data as of Oct 26, 2026 (UTC), from the last public refresh captured by this index.
- Followers
- 11,564
- Following
- 12
- Likes
- 646,906
- Videos
- 41
Recent Videos
503views31likes0comments18 days ago@entrepreneurship93 757views44likes0comments18 days ago@entrepreneurship93 357views7likes0comments18 days ago@entrepreneurship93 1Kviews46likes2comments18 days ago@entrepreneurship93 144views0likes0comments24 days ago@entrepreneurship93 599views21likes0comments2 months ago@entrepreneurship93 542views29likes0comments2 months ago@entrepreneurship93 1.5Kviews55likes0comments2 months ago@entrepreneurship93 1Kviews36likes2comments2 months ago@entrepreneurship93 6.6Kviews66likes2comments3 months ago@entrepreneurship93
Hashtags in this video
Links stay inside this index.
Frequently asked questions
- How many views does this TikTok video have?
- The capture indexed here reports 1,052 views, 16 likes and 0 comments.
- Who posted this TikTok video?
- It was posted by @entrepreneurship93, who is linked from this page.
- What is this TikTok video's engagement rate?
- Across the captured metrics the engagement rate is 1.71% (likes + comments + shares over views).
- When was this TikTok video posted?
- It was posted on 2026-10-12, over two weeks ago.
- What hashtags are used in this video?
- The capture links 1 hashtag, starting with #programming.
- How long is this TikTok video?
- The captured clip runs 2 minutes 20 seconds.