https://ctr.antallis-dev.com/stats/trafic

Query Metrics

2 Database Queries
2 Different statements
84.67 ms Query time
1 Invalid entities

Grouped Statements

Show all queries

Time Count Info
71.86 ms
(84.87%)
1
select 
                    req.day,
                    sum(req.cat1) as 8_12, 
                    sum(req.cat2) as 12_16, 
                    sum(req.cat3) as 16_20, 
                    sum(req.cat4) as 20_00
                    from(
                        select s.id as vente, DAYOFWEEK(s.date) as day, s.shop_id as shop,
                        if (date_format(s.`date`, '%H') >= 8 and date_format(s.`date`, '%H') < 12 , 1 , 0 ) as cat1,
                        if (date_format(s.`date`, '%H') >= 12 and date_format(s.`date`, '%H') < 16 , 1 , 0 ) as cat2,
                        if (date_format(s.`date`, '%H') >= 16 and date_format(s.`date`, '%H') < 20 , 1 , 0 ) as cat3,
                        if (date_format(s.`date`, '%H') >= 20 and date_format(s.`date`, '%H') <= 23 , 1 , 0 ) as cat4
                        from sales s
                        where s.deleted != 1 and date_format(s.`date` , '%m') = 04
                    )req
                group by day;
Parameters:
[]
12.81 ms
(15.13%)
1
SELECT t0.id AS id_1, t0.label AS label_2, t0.code AS code_3, t0.creation_date AS creation_date_4 FROM shop t0
Parameters:
[]

Database Connections

Name Service
default doctrine.dbal.default_connection

Entity Managers

Name Service
default doctrine.orm.default_entity_manager

Second Level Cache

Second Level Cache is not enabled.

Entities Mapping

Class Mapping errors
App\Entity\Sales No errors.
App\Entity\Shop No errors.
App\Entity\Stock No errors.
App\Entity\Discount No errors.
App\Entity\UserShop
  • The field App\Entity\UserShop#user is on the owning side of a bi-directional relationship, but the specified inversedBy association on the target-entity App\Entity\User#userShops does not contain the required 'mappedBy="user"' attribute.
  • If association App\Entity\UserShop#user is many-to-one, then the inversed side App\Entity\User#userShops has to be one-to-many.