https://test.inzynio.pl/en/offers?filters%5Bindustry%5D%5B0%5D=electrical-electronic

Query Metrics

81 Database Queries
33 Different statements
174.92 ms Query time
0 Invalid entities

Grouped Statements

Show all queries

Time▼ Count Info
51.84 ms
(29.64%)
1
SELECT JSON_ARRAY(
               JSON_OBJECT(
                    'id', offer.id,
                    'industry', offer.id,
                    'offerNumber', (SELECT COUNT(offer2.id) FROM offer AS offer2 WHERE offer.id = offer2.offer_id),
                    'offers', (SELECT JSON_ARRAYAGG(JSON_OBJECT(
                                'workData', offer2.work_data, 
                                'language', offer2.language,
                                'temporaryId', offer2.temporary_id
                    )) FROM offer AS offer2 WHERE offer.id = offer2.offer_id),
                    'namePl', offer.offer_name_pl,
                    'nameEn', offer.offer_name_en,
                    'language', offer.language,
                    'temporaryId', offer.temporary_id,
                    'mainOffer', (SELECT JSON_OBJECT(
                                                 'logo', (SELECT JSON_OBJECT('fileName', FILE.file_name, 'extension', FILE.extension) FROM offer_company LEFT JOIN FILE ON offer_company.logo_id = FILE.id WHERE offer2.offer_company_id = offer_company.id)
                                         ) FROM offer AS offer2 WHERE offer.offer_id = offer2.id),
                    'logo', (SELECT JSON_OBJECT('fileName', FILE.file_name, 'extension', FILE.extension) FROM offer_company LEFT JOIN FILE ON offer_company.logo_id = FILE.id WHERE offer.offer_company_id = offer_company.id),
                    'invoiceData', (SELECT JSON_OBJECT('name', invoice_data.name) FROM offer_company LEFT JOIN invoice_data ON (invoice_data.id = offer_company.invoice_data_id) WHERE offer.offer_company_id = offer_company.id),
                    'workData', offer.work_data,
                    'salaryData', offer.salary_data,
                    'publishedAt', offer.published_at,
                    'boostedAt', offer.boost_date
               )
            ) AS item 
            FROM offer
            
            WHERE offer.done = 1
            AND offer.active = 1
            AND MATCH(offer.keywords) AGAINST('+"electrical-electronic"' IN BOOLEAN MODE)
            
            AND offer.offer_id IS NULL
            GROUP BY offer.id, offer.boost_date
            
            ORDER BY CASE WHEN offer.boost_date IS NOT NULL THEN offer.boost_date ELSE offer.published_at END DESC
            LIMIT 20 OFFSET 0;
Parameters:
[]
47.11 ms
(26.93%)
1
SELECT offer.id AS offerMax  FROM offer
                
                WHERE offer.done = 1
                AND offer.active = 1
                AND MATCH(offer.keywords) AGAINST('+"electrical-electronic"' IN BOOLEAN MODE) 
                
                AND offer.offer_id IS NULL
                GROUP BY offer.id, offer.boost_date
                
                ORDER BY CASE WHEN offer.boost_date IS NOT NULL THEN offer.boost_date ELSE offer.published_at END DESC
Parameters:
[]
29.96 ms
(17.13%)
2
SELECT t0.content AS content_1, t0.id AS id_2 FROM offer_name_cache t0 LIMIT 1
Parameters:
[]
5.81 ms
(3.32%)
2
SELECT t0.content AS content_1, t0.id AS id_2 FROM technology_cache t0 LIMIT 1
Parameters:
[]
4.91 ms
(2.81%)
2
SELECT location.name AS city FROM location GROUP BY city;
Parameters:
[]
4.50 ms
(2.57%)
14
SELECT t0.migration_id AS migration_id_1, t0.template_path AS template_path_2, t0.id AS id_3, t0.created_at AS created_at_4, t0.updated_at AS updated_at_5, t0.blog_id AS blog_id_6, t0.footer_link_id AS footer_link_id_7 FROM PAGE t0 WHERE t0.migration_id = ? LIMIT 1
Parameters:
[
  1
]
4.03 ms
(2.31%)
10
SELECT t0.created_at AS created_at_1, t0.updated_at AS updated_at_2, t0.name AS name_3, t0.info AS info_4, t0.field_type AS field_type_5, t0.can_be_nice_to_have AS can_be_nice_to_have_6, t0.category_type AS category_type_7, t0.required AS required_8, t0.placeholder AS placeholder_9, t0.can_enter_own AS can_enter_own_10, t0.translation AS translation_11, t0.show_can_nice_to_be_have_button AS show_can_nice_to_be_have_button_12, t0.active AS active_13, t0.is_name_offer AS is_name_offer_14, t0.is_level_offer AS is_level_offer_15, t0.search_slug AS search_slug_16, t0.field_type_view AS field_type_view_17, t0.is_technology AS is_technology_18, t0.item_quantity AS item_quantity_19, t0.position AS position_20, t0.show_label AS show_label_21, t0.id AS id_22, t0.item_category_id AS item_category_id_23, t0.seo_industry_id AS seo_industry_id_24 FROM item_category t0 WHERE t0.id = ?
Parameters:
[
  2
]
3.55 ms
(2.03%)
2
SELECT TABLE_NAME
FROM information_schema.TABLES
WHERE TABLE_SCHEMA = ?
  AND TABLE_TYPE = 'BASE TABLE'
ORDER BY TABLE_NAME
Parameters:
[
  "m1451_inzynio_tt"
]
3.37 ms
(1.92%)
10
SELECT t0.url AS url_1, t0.displayed_title AS displayed_title_2, t0.displayed_description AS displayed_description_3, t0.id AS id_4, t0.locale AS locale_5, t0.translatable_id AS translatable_id_6 FROM page_translation t0 WHERE t0.translatable_id = ?
Parameters:
[
  25
]
2.08 ms
(1.19%)
1
SELECT       c.COLUMN_NAME        AS field,
       c.COLUMN_TYPE       AS TYPE,
       c.IS_NULLABLE        AS `null`,
       c.COLUMN_KEY         AS `key`,
       c.COLUMN_DEFAULT     AS `default`,
       c.EXTRA,
       c.COLUMN_COMMENT     AS COMMENT,
       c.CHARACTER_SET_NAME AS characterset,
       c.COLLATION_NAME     AS COLLATION
FROM information_schema.COLUMNS c
    INNER JOIN information_schema.TABLES t
        ON t.TABLE_NAME = c.TABLE_NAME
     WHERE c.TABLE_SCHEMA = ? AND t.TABLE_SCHEMA = ? AND t.TABLE_TYPE = 'BASE TABLE' AND t.TABLE_NAME = ? ORDER BY ORDINAL_POSITION
Parameters:
[
  "m1451_inzynio_tt"
  "m1451_inzynio_tt"
  "doctrine_migration_versions"
]
1.46 ms
(0.83%)
1
SELECT DISTINCT            k.CONSTRAINT_NAME,
            k.COLUMN_NAME,
            k.REFERENCED_TABLE_NAME,
            k.REFERENCED_COLUMN_NAME,
            k.ORDINAL_POSITION /*!50116,
            c.UPDATE_RULE,
            c.DELETE_RULE */
FROM information_schema.key_column_usage k /*!50116
INNER JOIN information_schema.referential_constraints c
ON c.CONSTRAINT_NAME = k.CONSTRAINT_NAME
AND c.TABLE_NAME = k.TABLE_NAME */ WHERE k.TABLE_SCHEMA = ? AND k.TABLE_NAME = ? AND k.REFERENCED_COLUMN_NAME IS NOT NULL /*!50116 AND c.CONSTRAINT_SCHEMA = 'm1451_inzynio_tt' */ ORDER BY k.ORDINAL_POSITION
Parameters:
[
  "m1451_inzynio_tt"
  "doctrine_migration_versions"
]
1.36 ms
(0.78%)
2
SELECT t0.content AS content_1, t0.id AS id_2 FROM company_cache t0 LIMIT 1
Parameters:
[]
1.35 ms
(0.77%)
5
SELECT t0.migration_id AS migration_id_1, t0.template_path AS template_path_2, t0.id AS id_3, t0.created_at AS created_at_4, t0.updated_at AS updated_at_5, t0.blog_id AS blog_id_6, t0.footer_link_id AS footer_link_id_7 FROM PAGE t0 WHERE t0.footer_link_id = ? LIMIT 1
Parameters:
[
  "8"
]
1.22 ms
(0.70%)
6
SELECT DATABASE()
Parameters:
[]
1.17 ms
(0.67%)
1
SELECT t.TABLE_NAME,
           t.ENGINE,
           t.AUTO_INCREMENT,
           t.TABLE_COMMENT,
           t.CREATE_OPTIONS,
           t.TABLE_COLLATION,
           ccsa.CHARACTER_SET_NAME
      FROM information_schema.TABLES t
        INNER JOIN information_schema.COLLATION_CHARACTER_SET_APPLICABILITY ccsa
          ON ccsa.COLLATION_NAME = t.TABLE_COLLATION WHERE t.TABLE_SCHEMA = ? AND t.TABLE_NAME = ? AND t.TABLE_TYPE = 'BASE TABLE'
Parameters:
[
  "m1451_inzynio_tt"
  "doctrine_migration_versions"
]
1.05 ms
(0.60%)
2
SELECT 
                JSON_OBJECT(
                        'namePl', CASE WHEN item_category.name = '' THEN JSON_EXTRACT(item_category.translation, '$.en.nameCategory') ELSE item_category.name END,
                        'nameEn', JSON_EXTRACT(item_category.translation, '$.en.nameCategory'),
                        'searchSlug', item_category.search_slug
                )
             AS item FROM item_category WHERE item_category_id IS NULL AND active = 1;
Parameters:
[]
1.00 ms
(0.57%)
2
SELECT t0.id AS id_1, t0.name_pl AS name_pl_2, t0.name_en AS name_en_3, t0.created_at AS created_at_4, t0.updated_at AS updated_at_5, t0.content_pl AS content_pl_6, t0.content_en AS content_en_7, t0.url_pl AS url_pl_8, t0.url_en AS url_en_9, t0.page_id AS page_id_10 FROM footer_link t0
Parameters:
[]
0.99 ms
(0.57%)
1
SELECT        NON_UNIQUE  AS Non_Unique,
        INDEX_NAME  AS Key_name,
        COLUMN_NAME AS Column_Name,
        SUB_PART    AS Sub_Part,
        INDEX_TYPE  AS Index_Type
FROM information_schema.STATISTICS WHERE TABLE_SCHEMA = ? AND TABLE_NAME = ? ORDER BY SEQ_IN_INDEX
Parameters:
[
  "m1451_inzynio_tt"
  "doctrine_migration_versions"
]
0.84 ms
(0.48%)
1
SELECT
            JSON_OBJECT(
                'name', search_city.name_pl,
                'nameSlug', search_city.name_slug
            )
         AS item
        FROM search_city WHERE search_city.name_slug IS NOT NULL AND search_city.name_slug != '' ORDER BY position ASC;
Parameters:
[]
0.82 ms
(0.47%)
1
SELECT t0.url AS url_1, t0.displayed_title AS displayed_title_2, t0.displayed_description AS displayed_description_3, t0.id AS id_4, t0.locale AS locale_5, t0.translatable_id AS translatable_id_6 FROM page_translation t0 WHERE t0.locale = ? AND t0.url = ? LIMIT 1
Parameters:
[
  "en"
  "offers"
]
0.71 ms
(0.40%)
1
SELECT
            JSON_OBJECT(
                'id', item_category.id,
                'plName', item_category.name,
                'enName', JSON_EXTRACT(item_category.translation, '$.en.nameCategory'),
                'slugName', item_category.search_slug
            )
         AS item
        FROM search_industry
        LEFT JOIN item_category ON item_category.id = search_industry.item_category_id
        ORDER BY search_industry.position ASC
Parameters:
[]
0.69 ms
(0.40%)
1
SELECT
            JSON_OBJECT(
                'plName', another.label_pl,
                'enName', another.label_en,
                'slug', another.name_slug
            )
         AS item
        FROM another WHERE active = 1 ORDER BY position ASC;
Parameters:
[]
0.69 ms
(0.39%)
1
SELECT JSON_OBJECT('slugName', item_category.search_slug)
             AS item FROM item_category 
                    WHERE item_category_id IS NULL 
                    AND active = 1 
                    AND search_slug IS NOT NULL 
                    AND search_slug != '';
Parameters:
[]
0.66 ms
(0.38%)
2
SELECT t0.id AS id_1, t0.name_pl AS name_pl_2, t0.id_offer AS id_offer_3, t0.name_slug AS name_slug_4, t0.position AS position_5, t0.search_engine_id AS search_engine_id_6 FROM search_city t0 ORDER BY t0.position ASC
Parameters:
[]
0.64 ms
(0.37%)
1
SELECT
                JSON_ARRAY(
                    JSON_OBJECT(
                            'id', item.id,
                            'name', CASE WHEN item.name = '' THEN item.name_en ELSE item.name END,
                            'slug', item.search_slug
                    )
                ) AS item
            FROM job_level AS jl
            LEFT JOIN job_level_item jli ON (jli.job_level_id = jl.id)
            LEFT JOIN item ON (item.id = jli.item_id)
            WHERE jl.active = 1 AND item.id IS NOT NULL
            ORDER BY jl.position ASC;
Parameters:
[]
0.53 ms
(0.30%)
1
SELECT i0_.created_at AS created_at_0, i0_.updated_at AS updated_at_1, i0_.name AS name_2, i0_.info AS info_3, i0_.field_type AS field_type_4, i0_.can_be_nice_to_have AS can_be_nice_to_have_5, i0_.category_type AS category_type_6, i0_.required AS required_7, i0_.placeholder AS placeholder_8, i0_.can_enter_own AS can_enter_own_9, i0_.translation AS translation_10, i0_.show_can_nice_to_be_have_button AS show_can_nice_to_be_have_button_11, i0_.active AS active_12, i0_.is_name_offer AS is_name_offer_13, i0_.is_level_offer AS is_level_offer_14, i0_.search_slug AS search_slug_15, i0_.field_type_view AS field_type_view_16, i0_.is_technology AS is_technology_17, i0_.item_quantity AS item_quantity_18, i0_.position AS position_19, i0_.show_label AS show_label_20, i0_.id AS id_21, i0_.item_category_id AS item_category_id_22, i0_.seo_industry_id AS seo_industry_id_23 FROM item_category i0_ WHERE i0_.active = 1 AND i0_.item_category_id IS NULL AND i0_.search_slug LIKE ?
Parameters:
[
  "electrical-electronic"
]
0.52 ms
(0.30%)
1
SELECT t0.migration_id AS migration_id_1, t0.template_path AS template_path_2, t0.id AS id_3, t0.created_at AS created_at_4, t0.updated_at AS updated_at_5, t0.blog_id AS blog_id_6, t0.footer_link_id AS footer_link_id_7 FROM PAGE t0 WHERE t0.id = ?
Parameters:
[
  25
]
0.41 ms
(0.24%)
1
SELECT t0.id AS id_1, t0.shortcut AS shortcut_2, t0.name_pl AS name_pl_3, t0.name_en AS name_en_4, t0.symbol AS symbol_5 FROM currency t0
Parameters:
[]
0.38 ms
(0.22%)
1
SELECT t0.id AS id_1, t0.can_show AS can_show_2 FROM level_job_select t0 WHERE t0.id = ? LIMIT 1
Parameters:
[
  1
]
0.36 ms
(0.20%)
1
SELECT t0.label_pl AS label_pl_1, t0.label_en AS label_en_2, t0.calculation_factor AS calculation_factor_3, t0.name_slug AS name_slug_4, t0.active AS active_5, t0.position AS position_6, t0.id AS id_7, t0.item_id AS item_id_8 FROM another t0 WHERE t0.active = ? ORDER BY t0.position ASC
Parameters:
[
  1
]
0.35 ms
(0.20%)
1
SELECT t0.seo_right_block_pl AS seo_right_block_pl_1, t0.seo_left_block_pl AS seo_left_block_pl_2, t0.seo_right_block_en AS seo_right_block_en_3, t0.seo_left_block_en AS seo_left_block_en_4, t0.id_industry AS id_industry_5, t0.id AS id_6 FROM seo_industry t0 WHERE t0.id = ?
Parameters:
[
  8
]
0.32 ms
(0.18%)
1
SELECT t0.id AS id_1, t0.position AS position_2, t0.search_engine_id AS search_engine_id_3, t0.item_category_id AS item_category_id_4 FROM search_industry t0 ORDER BY t0.position ASC
Parameters:
[]
0.23 ms
(0.13%)
1
SELECT * FROM doctrine_migration_versions
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.