Problem: say that an Apache process is currently executing PHP that is performing a very long database query (30 seconds or so). You want to push a fix to optimize the database query.
If you do a git push
, will this affect PHP processes currently executing, and their respective database queries?
I'm using MySql, PHP and Apache on a linux platform (LAMP setup).
Obviously I'm worried about the PHP code changing mid-database-call.
This answer may help:
You cannot edit your program because it's compiled in memory. Any modification to the source code will be active after you reload the program. This means that you have to kill the process and reload the script.
Found here: https://softwareengineering.stackexchange.com/a/213265