Profile    Mohammed Shiroz Status   Loading  
Logo
Share This

My sql
blog and Updates

It's my personal blog and my post about what was my interested in. Not regularly. If you have any questions any discussion, I'm happy you get in touch with me, and try to answer as many as possible!

Blog
Let's See
Back to blog
Filter by:
Tags
//Article

Soft Deletes, Archives and Audit Logs: Keeping History the Right Way

Soft Deletes, Archives and Audit Logs: Keeping History the Right Way

Blog Summary

Undo a delete, get finished records out of the way, answer who changed what, and forget a user on request: four different jobs. When to use soft deletes, archives, audit logs and hard deletes in Laravel, including the unique index trap.

Read more
  • 22
  • 101
  • 21

Race Conditions Explained With a Bank Account: Where the Missing Money Went

Race Conditions Explained With a Bank Account: Where the Missing Money Went

Blog Summary

Two withdrawals hit an account at the same moment. Both succeed, and money disappears. Here's how a lost update happens, and four ways to stop it in Laravel: atomic updates, row locks, version checks and unique constraints.

Read more
  • 51
  • 86
  • 6

Backups You Can Actually Restore: A Practical Strategy for Web Apps

Backups You Can Actually Restore: A Practical Strategy for Web Apps

Blog Summary

Most backup failures aren't missing backups. They're backups that silently stopped, can't be decrypted, or were never tested. A practical strategy built backwards from the restore: 3-2-1, dumps vs snapshots, encryption, retention and restore drills.

Read more
  • 97
  • 145
  • 12

Pagination Done Right: Offset vs Cursor, and Why Page 40,000 Is So Slow

Pagination Done Right: Offset vs Cursor, and Why Page 40,000 Is So Slow

Blog Summary

Page 1 is instant, page 40,000 takes forever, and infinite scroll shows duplicates. Here's how OFFSET really works, why cursor pagination stays fast, and when to use paginate, simplePaginate or cursorPaginate in Laravel.

Read more
  • 21
  • 14
  • 17

SQL vs NoSQL: How to Choose a Database Without the Hype

SQL vs NoSQL: How to Choose a Database Without the Hype

Blog Summary

"SQL doesn't scale" and "NoSQL is faster" are both half-truths. Four myths, one honest comparison table, when NoSQL really fits, and how MySQL JSON columns give you flexibility without a second database.

Read more
  • 112
  • 63
  • 14

Zero-Downtime Database Migrations: The Expand and Contract Pattern

Zero-Downtime Database Migrations: The Expand and Contract Pattern

Blog Summary

Renaming a column is one line of code and, deployed naively, a short outage. The expand and contract pattern lets you change your schema while old and new code run side by side, with Laravel examples.

Read more
  • 83
  • 39
  • 23

01. About Shiroz

Mohammed Shiroz

Hi, I'm Mohammed Shiroz, a software engineer and AI enthusiast from Sri Lanka who turns ideas into intelligent, real-world solutions. With over 9 years of hands-on experience, I currently lead real estate ERP development at Kate Group, a...

03.My Projects

04. Categories

Ready To Start Your Project ?

Get in Touch
Close