Query Metrics
21
Database Queries
15
Different statements
662.44 ms
Query time
1
Invalid entities
Queries
default connection
tenant connection
#▲ | Time | Info |
---|---|---|
1 | 24.53 ms |
SELECT s0_.valor AS valor_0, s0_.llave AS llave_1 FROM setting s0_ ORDER BY s0_.id ASC
Parameters:
[] |
2 | 24.57 ms |
SELECT subcategoria.id AS id, subcategoria.orden, subcategoria_translation.nombre as subcategoria, locale.locale AS idioma, ct.nombre as nombre_categoria, (SELECT COUNT(usuario_subcategoria.subcategoria_id) FROM usuario_subcategoria where usuario_subcategoria.subcategoria_id = subcategoria.id) as conteo_gestores FROM subcategoria INNER JOIN subcategoria_categoria ON subcategoria.id = subcategoria_categoria.subcategoria_id INNER JOIN categoria c ON subcategoria_categoria.categoria_id = c.id INNER JOIN categoria_translation ct on c.id = ct.objeto_id INNER JOIN subcategoria_translation ON subcategoria.id = subcategoria_translation.objeto_id INNER JOIN locale ON subcategoria_translation.locale_id = locale.id AND locale.id = ct.locale_id WHERE locale.locale = :idioma AND c.visible = true AND subcategoria.visible = true AND c.id = 1 ORDER BY c.orden ASC, subcategoria.orden ASC
Parameters:
[ "idioma" => "es" ] |
3 | 24.98 ms |
SELECT DISTINCT u0_.id AS id_0, u0_.created_at AS created_at_1 FROM usuario u0_ LEFT JOIN imagen i1_ ON (i1_.id = u0_.imagen_perfil_principal_id) INNER JOIN estado_solicitud e2_ ON (e2_.id = u0_.estado_gestor_id) LEFT JOIN usuario_subcategoria u4_ ON u0_.id = u4_.usuario_id LEFT JOIN subcategoria s3_ ON s3_.id = u4_.subcategoria_id WHERE JSON_CONTAINS(u0_.roles, ?) = 1 AND u0_.activo = 1 AND e2_.nombre = ? ORDER BY u0_.created_at DESC LIMIT 6
Parameters:
[ ""ROLE_GESTOR"" "Aprobado" ] |
4 | 32.49 ms |
SELECT DISTINCT u0_.id AS id_0, u0_.nombre AS nombre_1, u0_.apellidos AS apellidos_2, u0_.calificacion AS calificacion_3, i1_.image AS image_4, u0_.calificacion AS calificacion_5, (SELECT COUNT(p2_.id) AS sclr_7 FROM producto p2_ INNER JOIN rifa r3_ ON (p2_.rifa_id = r3_.id) WHERE r3_.gestor_id = u0_.id AND p2_.es_ganador = 1) AS sclr_6, (SELECT COUNT(r4_.id) AS sclr_9 FROM rifa r4_ LEFT JOIN estado_rifa e5_ ON r4_.estado_id = e5_.id WHERE r4_.gestor_id = u0_.id AND e5_.ref NOT IN ('ELIMINADA', 'BLOQUEADA')) AS sclr_8 FROM usuario u0_ LEFT JOIN imagen i1_ ON (i1_.id = u0_.imagen_perfil_principal_id) INNER JOIN estado_solicitud e6_ ON (e6_.id = u0_.estado_gestor_id) LEFT JOIN usuario_subcategoria u8_ ON u0_.id = u8_.usuario_id LEFT JOIN subcategoria s7_ ON s7_.id = u8_.subcategoria_id WHERE JSON_CONTAINS(u0_.roles, ?) = 1 AND u0_.activo = 1 AND e6_.nombre = ? AND u0_.id IN (?, ?, ?, ?, ?, ?) ORDER BY u0_.created_at DESC
Parameters:
[ ""ROLE_GESTOR"" "Aprobado" 318 312 292 271 270 253 ] |
5 | 24.55 ms |
SELECT DISTINCT count(DISTINCT u0_.id) AS sclr_0 FROM usuario u0_ LEFT JOIN imagen i1_ ON (i1_.id = u0_.imagen_perfil_principal_id) INNER JOIN estado_solicitud e2_ ON (e2_.id = u0_.estado_gestor_id) LEFT JOIN usuario_subcategoria u4_ ON u0_.id = u4_.usuario_id LEFT JOIN subcategoria s3_ ON s3_.id = u4_.subcategoria_id WHERE JSON_CONTAINS(u0_.roles, ?) = 1 AND u0_.activo = 1 AND e2_.nombre = ?
Parameters:
[ ""ROLE_GESTOR"" "Aprobado" ] |
6 | 24.19 ms |
SELECT s0_.id AS id_0, s1_.nombre AS nombre_1 FROM subcategoria s0_ INNER JOIN subcategoria_translation s1_ ON s0_.id = s1_.objeto_id AND (s1_.objeto_id = s0_.id) INNER JOIN locale l2_ ON s1_.locale_id = l2_.id AND (s1_.locale_id = l2_.id) WHERE s0_.id IN (?) AND l2_.locale = ?
Parameters:
[ null "es" ] |
7 | 24.29 ms |
SELECT s0_.valor AS valor_0, s0_.llave AS llave_1 FROM setting s0_ ORDER BY s0_.id ASC
Parameters:
[] |
8 | 24.24 ms |
SELECT s0_.id AS id_0, s0_.url AS url_1, i1_.image AS image_2, s2_.titulo AS titulo_3, s2_.keywords AS keywords_4, s2_.descripcion AS descripcion_5 FROM seo s0_ LEFT JOIN seo_translation s2_ ON s0_.id = s2_.objeto_id LEFT JOIN locale l3_ ON s2_.locale_id = l3_.id LEFT JOIN imagen i1_ ON s0_.imagen_id = i1_.id WHERE s0_.url = ? AND l3_.locale = ?
Parameters:
[ "gestores" "es" ] |
9 | 24.42 ms |
SELECT s0_.id AS id_0, s0_.url AS url_1, i1_.image AS image_2, s2_.titulo AS titulo_3, s2_.keywords AS keywords_4, s2_.descripcion AS descripcion_5 FROM seo s0_ LEFT JOIN seo_translation s2_ ON s0_.id = s2_.objeto_id LEFT JOIN locale l3_ ON s2_.locale_id = l3_.id LEFT JOIN imagen i1_ ON s0_.imagen_id = i1_.id WHERE s0_.url = ? AND l3_.locale = ?
Parameters:
[ "/" "es" ] |
10 | 103.19 ms |
SELECT t0_.llave AS llave_0, GROUP_CONCAT(JSON_OBJECT('locale', l1_.locale, 'valor', t2_.valor)) AS sclr_1 FROM texto t0_ LEFT JOIN texto_translation t2_ ON t0_.id = t2_.objeto_id LEFT JOIN locale l1_ ON t2_.locale_id = l1_.id GROUP BY t0_.id ORDER BY t0_.id DESC
Parameters:
[] |
11 | 32.11 ms |
SELECT i0_.llave AS llave_0, g1_.llave AS llave_1, i0_.path AS path_2, i0_.link AS link_3, i0_.image AS image_4, GROUP_CONCAT(JSON_OBJECT('locale', l2_.locale, 'valor', i3_.titulo, 'resumen', i3_.resumen)) AS sclr_5 FROM imagen i0_ INNER JOIN imagen_translation i3_ ON (i0_.id = i3_.objeto_id) LEFT JOIN galeria g1_ ON (i0_.galeria_id = g1_.id) INNER JOIN locale l2_ ON i3_.locale_id = l2_.id WHERE i0_.visible = 1 GROUP BY i0_.id ORDER BY i0_.orden ASC
Parameters:
[] |
12 | 24.79 ms |
SELECT i0_.llave AS llave_0, g1_.llave AS llave_1, i0_.path AS path_2, i0_.link AS link_3, i0_.image AS image_4, i0_.image_mobile AS image_mobile_5, GROUP_CONCAT(JSON_OBJECT('locale', l2_.locale, 'valor', i3_.titulo, 'resumen', i3_.resumen)) AS sclr_6 FROM imagen i0_ INNER JOIN galeria g1_ ON (i0_.galeria_id = g1_.id) LEFT JOIN imagen_translation i3_ ON (i0_.id = i3_.objeto_id) LEFT JOIN locale l2_ ON i3_.locale_id = l2_.id WHERE i0_.visible = 1 AND g1_.llave = ? GROUP BY i0_.id ORDER BY i0_.orden ASC
Parameters:
[
"main_banner_gestores"
]
|
13 | 24.54 ms |
SELECT i0_.llave AS llave_0, g1_.llave AS llave_1, i0_.path AS path_2, i0_.link AS link_3, i0_.image AS image_4, i0_.image_mobile AS image_mobile_5, GROUP_CONCAT(JSON_OBJECT('locale', l2_.locale, 'valor', i3_.titulo, 'resumen', i3_.resumen)) AS sclr_6 FROM imagen i0_ INNER JOIN galeria g1_ ON (i0_.galeria_id = g1_.id) LEFT JOIN imagen_translation i3_ ON (i0_.id = i3_.objeto_id) LEFT JOIN locale l2_ ON i3_.locale_id = l2_.id WHERE i0_.visible = 1 AND g1_.llave = ? GROUP BY i0_.id ORDER BY i0_.orden ASC
Parameters:
[
"main_banner_gestores"
]
|
14 | 74.08 ms |
SELECT t0_.llave AS llave_0, GROUP_CONCAT(JSON_OBJECT('locale', l1_.locale, 'valor', t2_.valor)) AS sclr_1 FROM texto_big t0_ LEFT JOIN texto_big_translation t2_ ON t0_.id = t2_.objeto_id LEFT JOIN locale l1_ ON t2_.locale_id = l1_.id GROUP BY t0_.id ORDER BY t0_.id DESC
Parameters:
[] |
15 | 24.92 ms |
SELECT i0_.llave AS llave_0, g1_.llave AS llave_1, i0_.path AS path_2, i0_.link AS link_3, i0_.image AS image_4, i0_.image_mobile AS image_mobile_5, GROUP_CONCAT(JSON_OBJECT('locale', l2_.locale, 'valor', i3_.titulo, 'resumen', i3_.resumen)) AS sclr_6 FROM imagen i0_ INNER JOIN galeria g1_ ON (i0_.galeria_id = g1_.id) LEFT JOIN imagen_translation i3_ ON (i0_.id = i3_.objeto_id) LEFT JOIN locale l2_ ON i3_.locale_id = l2_.id WHERE i0_.visible = 1 AND g1_.llave = ? GROUP BY i0_.id ORDER BY i0_.orden ASC
Parameters:
[
"social_media"
]
|
16 | 24.25 ms |
SELECT v0_.id AS id_0, v0_.version AS version_1, v0_.created_at AS created_at_2, v0_.updated_at AS updated_at_3 FROM version_aplicacion v0_ ORDER BY v0_.id DESC LIMIT 1
Parameters:
[] |
Database Connections
Name | Service |
---|---|
default | doctrine.dbal.default_connection |
tenant | doctrine.dbal.tenant_connection |
Entity Managers
Name | Service |
---|---|
default | doctrine.orm.default_entity_manager |
tenant | doctrine.orm.tenant_entity_manager |
Second Level Cache
Second Level Cache is not enabled.
Entities Mapping
default entity manager
Class | Mapping errors |
---|---|
MultiTenancyBundle\Entity\Hostname | No errors. |
MultiTenancyBundle\Entity\Tenant | No errors. |
tenant entity manager
Class | Mapping errors |
---|---|
App\Entity\General\Setting | No errors. |
App\Entity\Catalogue\Subcategoria | No errors. |
App\Entity\Usuario\Usuario | No errors. |
App\Entity\Catalogue\Producto |
|
App\Entity\Rifa\Rifa | No errors. |
App\Entity\Rifa\EstadoRifa | No errors. |
App\Entity\General\Imagen | No errors. |
App\Entity\Solicitud\EstadoSolicitud | No errors. |
App\Entity\Catalogue\SubcategoriaTranslation | No errors. |
App\Entity\General\Locale | No errors. |
App\Entity\General\Seo | No errors. |
App\Entity\General\SeoTranslation | No errors. |
App\Entity\General\Texto | No errors. |
App\Entity\General\TextoTranslation | No errors. |
App\Entity\General\ImagenTranslation | No errors. |
App\Entity\General\Galeria | No errors. |
App\Entity\General\TextoBig | No errors. |
App\Entity\General\TextoBigTranslation | No errors. |
App\Entity\General\VersionAplicacion | No errors. |
App\Entity\General\VersionAplicacionTranslation | No errors. |