Posts by Daniel Lopes • 39 points
8 posts
-
2
votes2
answers116
viewsQ: Difficulty returning the result in a single query without duplicating
I am trying to assemble a query (MYSQL) to return me all the clients that a particular seller can view. The rules to show the list of customers for this seller are: - Customers with contracts…
-
0
votes1
answer1903
viewsQ: Free up memory in php
Is it possible to free up memory in PHP? In a method I run some functions between them a foreach and after I finish wanted to free up memory. I’m unset on some variables but I don’t recover l space…
phpasked Daniel Lopes 39 -
0
votes0
answers206
viewsQ: Strange memory consumption PHP Laravel
All right guys, I’m using Laravel for a project and I’m kind of worried about using memory in some classes. So I decided to do a basic test and discover that a method was consuming a lot of memory…
-
0
votes1
answer56
viewsQ: Wordpress slow and with database access errors
All right guys, I had asked another question, but I was able to identify some queries that are consuming a lot of running time. I developed a theme for a news portal, and in each area I upload news…
-
0
votes0
answers72
viewsQ: Problem with Wordpress and Mysql connection.
All right, guys I developed a news portal for the company I work for and on this portal I have an average of 500 thousand monthly accesses. I’m having for some time many problems with my site. The…
-
0
votes1
answer182
viewsQ: Foreach and multidimensional associative array with only one item
All right guys, I am facing a problem with foreach in PHP, in which I receive an xml and convert it to array. Only that in some cases xml has only one item (See the example below) <?xml…
-
0
votes2
answers1153
viewsQ: Laravel Relationship 5.2 Eloquent
Good morning, everyone, I’m having a problem in a relationship between tables with Elouquent (Laravel) I have two tables [clients / activities_commercial] (innoDB MYSQL) In the client table there is…
-
1
votes2
answers68
viewsQ: Create more fields and avoid JOIN decreases load?
I have 3 tables that are connected: 1ª tabela: GRADE (grade de horários) Campos: ID - GRADE - ESTADO - VALIDADE 2ª tabela: BLOCOS (blocos de horários da grade) Campos: ID - ID_GRADE - BLOCO -…