Profile    Mohammed Shiroz Status   Loading  
Logo
Share This

My mysql
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

What Building a Contract Management Module Taught Me About Data Integrity

23 Nov 2025Category : Blog
What Building a Contract Management Module Taught Me About Data Integrity

Blog Summary

A tenancy contract looks like a five-minute table. With 2,000+ contracts in Kate PMS, it's really validation, a state machine, locks against overlapping dates, frozen signed terms and an audit trail.

Read more
  • 75
  • 91
  • 9

Writing SQL You Can Still Read Six Months Later

Writing SQL You Can Still Read Six Months Later

Blog Summary

Every codebase has a query everyone is afraid to touch. Formatting, honest names, CTEs, comments that explain business rules and a first look at window functions turn it into SQL anyone can follow.

Read more
  • 125
  • 15
  • 22

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
  • 122
  • 97
  • 12

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
  • 142
  • 119
  • 3

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
  • 22
  • 47
  • 15

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
  • 51
  • 122
  • 7

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