GET https://rifutest.com/en/rifas

Query Metrics

22 Database Queries
16 Different statements
543.64 ms Query time
0 Invalid entities

Queries

Group similar statements

default connection

# Time Info
1 19.79 ms
SELECT t0.id AS id_1, t0.fqdn AS fqdn_2, t0.username AS username_3, t0.host AS host_4, t0.password AS password_5, t0.database_name AS database_name_6, t0.created_at AS created_at_7, t0.updated_at AS updated_at_8, t0.deleted_at AS deleted_at_9, t0.tenant_id AS tenant_id_10, t11.id AS id_12, t11.uuid AS uuid_13, t11.created_at AS created_at_14, t11.updated_at AS updated_at_15, t11.deleted_at AS deleted_at_16, t11.local AS local_17 FROM hostname t0 INNER JOIN tenant t11 ON t0.tenant_id = t11.id WHERE t0.fqdn = ? LIMIT 1
Parameters:
[
  "rifutest.com"
]
2 18.97 ms
SELECT if(@@global.time_zone = 'SYSTEM', @@system_time_zone, @@global.time_zone) AS timezone;
Parameters:
[]
3 18.97 ms
SELECT valor from main_setting where llave = 'validate_integrity';
Parameters:
[]
4 19.47 ms
SELECT t0.id AS id_1, t0.fqdn AS fqdn_2, t0.username AS username_3, t0.host AS host_4, t0.password AS password_5, t0.database_name AS database_name_6, t0.created_at AS created_at_7, t0.updated_at AS updated_at_8, t0.deleted_at AS deleted_at_9, t0.tenant_id AS tenant_id_10, t11.id AS id_12, t11.uuid AS uuid_13, t11.created_at AS created_at_14, t11.updated_at AS updated_at_15, t11.deleted_at AS deleted_at_16, t11.local AS local_17 FROM hostname t0 INNER JOIN tenant t11 ON t0.tenant_id = t11.id WHERE t0.fqdn = ? LIMIT 1
Parameters:
[
  "rifutest.com"
]
5 19.45 ms
SELECT t0.id AS id_1, t0.fqdn AS fqdn_2, t0.username AS username_3, t0.host AS host_4, t0.password AS password_5, t0.database_name AS database_name_6, t0.created_at AS created_at_7, t0.updated_at AS updated_at_8, t0.deleted_at AS deleted_at_9, t0.tenant_id AS tenant_id_10, t11.id AS id_12, t11.uuid AS uuid_13, t11.created_at AS created_at_14, t11.updated_at AS updated_at_15, t11.deleted_at AS deleted_at_16, t11.local AS local_17 FROM hostname t0 INNER JOIN tenant t11 ON t0.tenant_id = t11.id WHERE t0.fqdn = ? LIMIT 1
Parameters:
[
  "rifutest.com"
]

tenant connection

# Time Info
1 19.22 ms
SELECT s0_.valor AS valor_0, s0_.llave AS llave_1 FROM setting s0_ ORDER BY s0_.id ASC
Parameters:
[]
2 21.30 ms
SELECT
                    subcategoria.id AS id,
                    subcategoria.orden,
                    subcategoria_translation.nombre as subcategoria,
                    locale.locale AS idioma,
                    ct.nombre as nombre_categoria,
                    (SELECT COUNT(rifa_subcategoria.subcategoria_id)
                     FROM rifa_subcategoria
                     INNER JOIN rifa ON rifa.id = rifa_subcategoria.rifa_id
                     INNER JOIN estado_rifa ON estado_rifa.id = rifa.estado_id
                     WHERE rifa_subcategoria.subcategoria_id = subcategoria.id and estado_rifa.ref = 'APROBADA' and rifa.fecha_fin >= NOW()) as conteo_rifas
                
                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 
                
                ORDER BY c.orden ASC, subcategoria.orden ASC
Parameters:
[
  "idioma" => "en"
]
3 19.28 ms
SELECT t0.id AS id_1, t0.iso AS iso_2, t0.conversion_rate_to_usd AS conversion_rate_to_usd_3, t0.symbol AS symbol_4 FROM currency t0
Parameters:
[]
4 20.30 ms
SELECT DISTINCT r0_.id AS id_0, r0_.created_at AS created_at_1 FROM rifa r0_ INNER JOIN usuario u1_ ON (u1_.id = r0_.gestor_id) INNER JOIN rifa_currency r2_ ON (r0_.id = r2_.objeto_id) INNER JOIN rifa_translation r3_ ON (r0_.id = r3_.objeto_id) INNER JOIN locale l4_ ON r3_.locale_id = l4_.id INNER JOIN currency c5_ ON r2_.currency_id = c5_.id LEFT JOIN rifa_subcategoria r7_ ON r0_.id = r7_.rifa_id LEFT JOIN subcategoria s6_ ON s6_.id = r7_.subcategoria_id LEFT JOIN imagen i8_ ON (r0_.imagen_base_id = i8_.id) LEFT JOIN imagen i9_ ON (u1_.imagen_perfil_principal_id = i9_.id) INNER JOIN estado_rifa e10_ ON (e10_.id = r0_.estado_id) WHERE COALESCE(r0_.es_suscripcion, 0) = 0 AND r0_.fecha_fin >= CURRENT_DATE AND e10_.ref = ? AND c5_.iso = ? ORDER BY r0_.created_at DESC LIMIT 10
Parameters:
[
  "APROBADA"
  "COP"
]
5 21.01 ms
SELECT DISTINCT r0_.id AS id_0, r0_.fecha_fin AS fecha_fin_1, r0_.fecha_inicio AS fecha_inicio_2, i1_.image AS image_3, u2_.nombre AS nombre_4, u2_.apellidos AS apellidos_5, u2_.id AS id_6, i3_.image AS image_7, l4_.locale AS locale_8, r5_.nombre AS nombre_9, r0_.fecha_sorteo AS fecha_sorteo_10, r6_.valor AS valor_11, c7_.symbol AS symbol_12, c7_.iso AS iso_13, DATEDIFF(r0_.fecha_fin, CURRENT_DATE) AS sclr_14 FROM rifa r0_ INNER JOIN usuario u2_ ON (u2_.id = r0_.gestor_id) INNER JOIN rifa_currency r6_ ON (r0_.id = r6_.objeto_id) INNER JOIN rifa_translation r5_ ON (r0_.id = r5_.objeto_id) INNER JOIN locale l4_ ON r5_.locale_id = l4_.id INNER JOIN currency c7_ ON r6_.currency_id = c7_.id LEFT JOIN rifa_subcategoria r9_ ON r0_.id = r9_.rifa_id LEFT JOIN subcategoria s8_ ON s8_.id = r9_.subcategoria_id LEFT JOIN imagen i1_ ON (r0_.imagen_base_id = i1_.id) LEFT JOIN imagen i3_ ON (u2_.imagen_perfil_principal_id = i3_.id) INNER JOIN estado_rifa e10_ ON (e10_.id = r0_.estado_id) WHERE COALESCE(r0_.es_suscripcion, 0) = 0 AND r0_.fecha_fin >= CURRENT_DATE AND e10_.ref = ? AND c7_.iso = ? AND r0_.id IN (?, ?, ?) ORDER BY r0_.created_at DESC
Parameters:
[
  "APROBADA"
  "COP"
  310
  288
  280
]
6 19.87 ms
SELECT DISTINCT count(DISTINCT r0_.id) AS sclr_0 FROM rifa r0_ INNER JOIN usuario u1_ ON (u1_.id = r0_.gestor_id) INNER JOIN rifa_currency r2_ ON (r0_.id = r2_.objeto_id) INNER JOIN rifa_translation r3_ ON (r0_.id = r3_.objeto_id) INNER JOIN locale l4_ ON r3_.locale_id = l4_.id INNER JOIN currency c5_ ON r2_.currency_id = c5_.id LEFT JOIN rifa_subcategoria r7_ ON r0_.id = r7_.rifa_id LEFT JOIN subcategoria s6_ ON s6_.id = r7_.subcategoria_id LEFT JOIN imagen i8_ ON (r0_.imagen_base_id = i8_.id) LEFT JOIN imagen i9_ ON (u1_.imagen_perfil_principal_id = i9_.id) INNER JOIN estado_rifa e10_ ON (e10_.id = r0_.estado_id) WHERE COALESCE(r0_.es_suscripcion, 0) = 0 AND r0_.fecha_fin >= CURRENT_DATE AND e10_.ref = ? AND c5_.iso = ?
Parameters:
[
  "APROBADA"
  "COP"
]
7 19.31 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
  "en"
]
8 19.28 ms
SELECT s0_.valor AS valor_0, s0_.llave AS llave_1 FROM setting s0_ ORDER BY s0_.id ASC
Parameters:
[]
9 19.38 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:
[
  "rifas"
  "en"
]
10 19.43 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:
[
  "/"
  "en"
]
11 84.02 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:
[]
12 23.38 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:
[]
13 22.86 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 19.66 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_rifas"
]
15 59.90 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:
[]
16 19.71 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"
]
17 19.08 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.