Skip to content

Tag: mariadb

NewRelic not capturing database queries

NewRelic not capturing database queries. Other queries are ok, that is a signal that the agent is running and everything is ok. However, I can not see the database queries on the explorer, I just have the PHP agent. Do I need the database agent running? Answer Check out the PHP agent docs to validate if your …

Random peaks in Mysql load slowing all users

We have a site that has been working pretty well for the past 2 years. But we are actually seeing random peaks in the database load that make the site very slow for a few seconds. These peaks only appear from a certain load on the server and are impossible to predict. More users = more peaks. Everything run v…

How to find a time between nested Json

I have created a table called ticket_manager with the following structure: Each time when the user based QR Code gets scanned it will add a new row (either when it’s a check-in it will add a new line to “checkIn with “check_in_$count” or a new line to checkOut with “check_out_$co…

PHP MYSQL Select OneToMany as a nested json

I’ve two tables, one being the Customer table and the other the Address table having a one to many between them. I want to select all customers with their respective addresses and displaying it something like this: My code is the following now: But it results in two records with same data but different …