Session Locking? Slow Query Log Filled With Session Query?

Solution 0

Solution 1

  • Fixed the request that take a long time (optimization in code or databsase query)
  • use session_write_close in php (after call that method, the session only can be read, can’t be write/update)
  • Use redis because dont have locking mechanism

Solution 2

--

--

--

Interested in Software Engineering, Devops. 🌐: abdillah.my.id . Made with ☕ from 🇲🇨

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

TryHackMe: Mobile Malware Analysis (pegasus malware)

Why are we so pedantic?

Write up of challenge Number 3 from AstonHack CTF

Adding Ledger Nano support and more in the new Thanos release

Thanos Wallet Features Highlighted

How to effectively write Integration Tests with NodeJS+Knex+Postgres

New Book “The Art of Coding”

5 Books that shaped my journey into hardware development

So what is an API and how can this 10x your business revenue ?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Herbert Abdillah

Herbert Abdillah

Interested in Software Engineering, Devops. 🌐: abdillah.my.id . Made with ☕ from 🇲🇨

More from Medium

How to Clone Laravel Project from Git Repository and Run it on Local Machine

Implementing RDS IAM authentication in a PHP/MySQL application

What’s RESTful API? #From Zero to One

Convert a local development folder into a Git repository