Query Metrics

240 Database Queries
25 Different statements
50.53 ms Query time
0 Invalid entities

Grouped Statements

Show all queries

Time Count Info
19.24 ms
(38.07%)
109
SELECT item_id, CASE WHEN item_lifetime IS NULL OR item_lifetime + item_time > ? THEN item_data ELSE NULL END FROM cache_items WHERE item_id IN (?)
Parameters:
[
  1734953385
  "site_domain_edeba2033b891e73733d3bc86fb4ce51"
]
6.15 ms
(12.16%)
26
SELECT id,language FROM documents_translations WHERE sourceId = ? UNION SELECT sourceId as id,"source" FROM documents_translations WHERE id = ?
Parameters:
[
  1584
  1584
]
4.84 ms
(9.58%)
24
SELECT * FROM documents_editables WHERE documentId = ?
Parameters:
[
  1380
]
3.18 ms
(6.29%)
12
SELECT id FROM documents WHERE `path` = BINARY ? AND `key` = BINARY ?
Parameters:
[
  "/pl/obrobka-powierzchniowa/"
  "eloksalowanie"
]
2.94 ms
(5.82%)
8
SELECT * FROM properties WHERE
                             (
                                 (cid IN (1,1374,1337,1335) AND inheritable = 1) OR cid = ?
                             ) AND ctype='document'
Parameters:
[
  1380
]
2.66 ms
(5.26%)
12
SELECT item_id, CASE WHEN item_lifetime IS NULL OR item_lifetime + item_time > ? THEN item_data ELSE NULL END FROM cache_items WHERE item_id IN (?, ?)
Parameters:
[
  1734953385
  "system\x01tags\x01"
  "site\x01tags\x01"
]
2.12 ms
(4.20%)
11
SELECT id FROM documents_page WHERE prettyUrl = ?
Parameters:
[
  "/pl/obrobka-powierzchniowa/eloksalowanie"
]
1.42 ms
(2.80%)
5
SELECT *
            FROM website_settings
            WHERE name = ?
                AND (
                    siteId IS NULL
                    OR siteId = 0
                    OR siteId = ?
                )
                AND (
                    language IS NULL
                    OR language = ''
                    OR language = ?
                )
            ORDER BY CONCAT(siteId, language) DESC, siteId DESC, language DESC
Parameters:
[
  "googleMapApiKey"
  null
  null
]
1.15 ms
(2.27%)
5
SELECT documents.*, documents_page.*, tree_locks.locked FROM documents
            LEFT JOIN documents_page ON documents.id = documents_page.id
            LEFT JOIN tree_locks ON documents.id = tree_locks.id AND tree_locks.type = 'document'
                WHERE documents.id = ?
Parameters:
[
  1383
]
0.96 ms
(1.90%)
5
SELECT documents.*, tree_locks.locked FROM documents
            LEFT JOIN tree_locks ON documents.id = tree_locks.id AND tree_locks.type = 'document'
                WHERE documents.id = ?
Parameters:
[
  1383
]
0.84 ms
(1.66%)
2
SELECT * FROM redirects WHERE
            (
                (source = ? AND (`type` = ? OR `type` = ?)) OR
                (source = ? AND `type` = ?) OR
                (source = ? AND `type` = ?)
            ) AND active = 1 AND (regex IS NULL OR regex = 0) AND (expiry > UNIX_TIMESTAMP() OR expiry IS NULL) AND sourceSite IS NULL AND priority = 99 ORDER BY `priority` DESC
Parameters:
[
  "/pl/obrobka-powierzchniowa/eloksalowanie"
  "path"
  "auto_create"
  "/pl/obrobka-powierzchniowa/eloksalowanie"
  "path_query"
  "http://stage.rohde-technics.com/pl/obrobka-powierzchniowa/eloksalowanie"
  "entire_uri"
]
0.84 ms
(1.65%)
1
SELECT documents.id, documents.type FROM documents WHERE  (parentId = ?) AND published = 1 ORDER BY `index` ASC
Parameters:
[
  1374
]
0.72 ms
(1.42%)
2
SELECT id,language FROM documents_translations WHERE sourceId IN(?, ?) UNION SELECT sourceId as id,"source" FROM documents_translations WHERE id = ?
Parameters:
[
  10
  1374
  1374
]
0.49 ms
(0.97%)
3
SELECT * FROM settings_store WHERE id = ? AND scope = ?
Parameters:
[
  "BUNDLE_INSTALLED__Pimcore\Bundle\SeoBundle\PimcoreSeoBundle"
  "pimcore"
]
0.45 ms
(0.90%)
3
SELECT * FROM website_settings WHERE id = ?
Parameters:
[
  8
]
0.43 ms
(0.85%)
2
SELECT sourceId FROM documents_translations WHERE id = ?
Parameters:
[
  1374
]
0.39 ms
(0.78%)
2
SELECT item_id, CASE WHEN item_lifetime IS NULL OR item_lifetime + item_time > ? THEN item_data ELSE NULL END FROM cache_items WHERE item_id IN (?, ?, ?)
Parameters:
[
  1734953385
  "system\x01tags\x01"
  "redirect\x01tags\x01"
  "route\x01tags\x01"
]
0.31 ms
(0.61%)
1
SELECT item_id, CASE WHEN item_lifetime IS NULL OR item_lifetime + item_time > ? THEN item_data ELSE NULL END FROM cache_items WHERE item_id IN (?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  1734953385
  "document_1335\x01tags\x01"
  "asset_5384\x01tags\x01"
  "asset_5386\x01tags\x01"
  "asset_5385\x01tags\x01"
  "document_1359\x01tags\x01"
  "document_1358\x01tags\x01"
  "asset_5383\x01tags\x01"
]
0.28 ms
(0.54%)
1
SELECT id FROM sites ORDER BY (SELECT LENGTH(`path`) FROM documents WHERE documents.id = sites.rootId) DESC
Parameters:
[]
0.24 ms
(0.47%)
1
SELECT * FROM object_url_slugs WHERE slug = '/pl/obrobka-powierzchniowa/eloksalowanie' AND siteId = 0 ORDER BY siteId DESC LIMIT 1
Parameters:
[]
0.20 ms
(0.41%)
1
SELECT * FROM object_relations_73 WHERE src_id = ?
Parameters:
[
  32231
]
0.20 ms
(0.39%)
1
SELECT item_id, CASE WHEN item_lifetime IS NULL OR item_lifetime + item_time > ? THEN item_data ELSE NULL END FROM cache_items WHERE item_id IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  1734953385
  "document_47\x01tags\x01"
  "asset_5572\x01tags\x01"
  "asset_5573\x01tags\x01"
  "asset_5574\x01tags\x01"
  "asset_5575\x01tags\x01"
  "asset_5576\x01tags\x01"
  "asset_5577\x01tags\x01"
  "asset_5570\x01tags\x01"
  "asset_5571\x01tags\x01"
  "asset_5474\x01tags\x01"
]
0.17 ms
(0.34%)
1
SELECT * FROM tmp_store WHERE id = ?
Parameters:
[
  "maintenance_mode"
]
0.17 ms
(0.34%)
1
SELECT * FROM translations_messages LIMIT 1;
Parameters:
[]
0.16 ms
(0.32%)
1
SELECT name FROM classes WHERE id = ?
Parameters:
[
  "73"
]

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