I have table called “guids” that looks like this: From that I would like to get data in this format: Basically, I need to use multiple columns to build a nested array with grouped data. I know that I can achive that structure using foreach loop like this: But if possible I would like a more optimized solution on the
Tag: performance
cURL request (with Stripe API) slowing down page load times – optimal way to make the request?
I’m making a call at the beginning of each page of my site to Stripe (a payment/subscription service) using its API in PHP. I need to check if at any point the subscription has failed/changed so they lose access to the current page. The problem is that it seems to be slowing down my pages a lot, causing noticeable issues
Speed-up/Optimise MySQL statement – finding a new row that hasn’t been selected before
First a bit of background about the tables & DB. I have a MySQL db with a few tables in: films: Contains all film/series info with netflixid as a unique primary key. users: Contains user info “ratingid” is a unique primary key rating: Contains ALL user rating info, netflixid and a unique primary key of a compound “netflixid-userid” This statement
Handling hundreds of API requests in one time
I am trying to make a user dashboard which will generate reports of all of my 37 game accounts played by different gamers. so, for each i scrape data and then calculate the amount of rewards it generated. but for that i need to do hundreds of api requests and due to max_exec_time limit of 30sec it gives me a
Laravel 6 with Nginx, php 7.4 fpm and mysql 8 on docker is slower than Laravel 4 on php 7.1
I have been working on a site built on Laravel 4.2 and on Php 7.1. Recently I have been trying to migrate the site to Laravel 6 with php 7.4 and mysql 8. I setup docker with the following settings. …
How to see full query in New Relic
When I go to APM > Applications > PHP Application > Databases it shows the list of queries and their performance. But the queries are shown like