Query Metrics
4841
Database Queries
14
Different statements
754.86 ms
Query time
0
Invalid entities
11796
Managed entities
Grouped Statements
| Time▼ | Count | Info |
|---|---|---|
|
311.42 ms (41.26%) |
1609 |
SELECT t0.id AS id_1, t0.price AS price_2, t0.product_group_ref AS product_group_ref_3, t0.sku AS sku_4, t0.ean AS ean_5, t0.vat_rate AS vat_rate_6, t0.quantity AS quantity_7, t0.is_virtual AS is_virtual_8, t0.is_preorder AS is_preorder_9, t0.active AS active_10, t0.refused_reason AS refused_reason_11, t0.stock_alert_floor AS stock_alert_floor_12, t0.available_for_sale AS available_for_sale_13, t0.external_id AS external_id_14, t0.author AS author_15, t0.illustrator AS illustrator_16, t0.isbn AS isbn_17, t0.pages_number AS pages_number_18, t0.file_name AS file_name_19, t0.hscode AS hscode_20, t0.desired_file_name AS desired_file_name_21, t0.has_been_updated AS has_been_updated_22, t0.created_at AS created_at_23, t0.updated_at AS updated_at_24, t0.has_been_fully_updated AS has_been_fully_updated_25, t0.holiday_save AS holiday_save_26, t0.deleted AS deleted_27, t0.company_id AS company_id_28, t0.warehouse_id AS warehouse_id_29, t0.brand_id AS brand_id_30, t0.attribute_id AS attribute_id_31 FROM product t0 WHERE t0.id = ?
Parameters:
[
4487
]
|
|
225.41 ms (29.86%) |
1609 |
SELECT t0.id AS id_1, t0.file_name AS file_name_2, t0.file_extension AS file_extension_3, t0.cover AS cover_4, t0.created_at AS created_at_5, t0.product_id AS product_id_6 FROM product_image t0 WHERE t0.product_id = ? ORDER BY t0.id ASC
Parameters:
[
4487
]
|
|
200.34 ms (26.54%) |
1609 |
SELECT t0.id AS id_1, t0.file_name AS file_name_2, t0.file_extension AS file_extension_3, t0.file_size AS file_size_4, t0.created_at AS created_at_5, t0.product_id AS product_id_6 FROM attachment t0 WHERE t0.product_id = ?
Parameters:
[
4487
]
|
|
5.55 ms (0.74%) |
1 |
SELECT t0.id AS id_1, t0.external_id AS external_id_2, t0.reduction_amount AS reduction_amount_3, t0.reduction_percent AS reduction_percent_4, t0.from_date AS from_date_5, t0.to_date AS to_date_6, t0.created_at AS created_at_7, t0.updated_at AS updated_at_8, t0.external_deleted AS external_deleted_9, t0.deleted_at AS deleted_at_10, t0.product_id AS product_id_11 FROM discount t0 WHERE t0.external_id IS NULL AND t0.deleted_at IS NULL AND t0.external_deleted = ?
Parameters:
[
0
]
|
|
2.72 ms (0.36%) |
1 |
SELECT n.nspname, c.relname, a.attname, t.typname, format_type(a.atttypid, a.atttypmod), bt.typname, format_type(bt.oid, t.typtypmod), a.attnotnull, a.attidentity, ( SELECT CASE WHEN a.attgenerated = 's' THEN NULL ELSE pg_get_expr(adbin, adrelid) END FROM pg_attrdef WHERE c.oid = pg_attrdef.adrelid AND pg_attrdef.adnum=a.attnum), dsc.description, CASE WHEN coll.collprovider = 'c' THEN coll.collcollate WHEN coll.collprovider = 'd' THEN NULL ELSE coll.collname END FROM pg_attribute a JOIN pg_class c ON c.oid = a.attrelid JOIN pg_namespace n ON n.oid = c.relnamespace JOIN pg_type t ON t.oid = a.atttypid LEFT JOIN pg_type bt ON t.typtype = 'd' AND bt.oid = t.typbasetype LEFT JOIN pg_collation coll ON coll.oid = a.attcollation LEFT JOIN pg_depend dep ON dep.objid = c.oid AND dep.deptype = 'e' AND dep.classid = (SELECT oid FROM pg_class WHERE relname = 'pg_class') LEFT JOIN pg_description dsc ON dsc.objoid = c.oid AND dsc.objsubid = a.attnum LEFT JOIN pg_inherits i ON i.inhrelid = c.oid LEFT JOIN pg_class p ON i.inhparent = p.oid AND p.relkind = 'p' WHERE n.nspname = ? AND c.relname = ? AND n.nspname NOT LIKE 'pg\_%' AND n.nspname != 'information_schema' AND c.relkind IN ('r', 'p') AND c.relname NOT IN ('geometry_columns', 'spatial_ref_sys') AND a.attnum > 0 AND dep.refobjid IS NULL -- exclude partitions (tables that inherit from partitioned tables) AND p.oid IS NULL ORDER BY n.nspname, c.relname, a.attnum
Parameters:
[ "marketplace" "doctrine_migration_versions" ] |
|
2.22 ms (0.29%) |
2 |
SELECT quote_ident(table_name) AS table_name, table_schema AS schema_name FROM information_schema.tables WHERE table_catalog = ? AND table_schema NOT LIKE 'pg\_%' AND table_schema != 'information_schema' AND table_name != 'geometry_columns' AND table_name != 'spatial_ref_sys' AND table_type = 'BASE TABLE' ORDER BY quote_ident(table_name)
Parameters:
[
"philibert_mp_pp"
]
|
|
2.05 ms (0.27%) |
1 |
SELECT pkn.nspname, pkc.relname, r.conname, fkn.nspname, fkc.relname, r.confupdtype, r.confdeltype, r.condeferrable, r.condeferred, pka.attname, fka.attname FROM pg_constraint r JOIN pg_class fkc ON fkc.oid = r.confrelid JOIN pg_namespace fkn ON fkn.oid = fkc.relnamespace JOIN unnest(r.confkey) WITH ORDINALITY AS fk_attnum(attnum, ord) ON TRUE JOIN pg_attribute fka ON fka.attrelid = fkc.oid AND fka.attnum = fk_attnum.attnum JOIN pg_class pkc ON pkc.oid = r.conrelid JOIN pg_namespace pkn ON pkn.oid = pkc.relnamespace JOIN unnest(r.conkey) WITH ORDINALITY AS pk_attnum(attnum, ord) ON pk_attnum.ord = fk_attnum.ord JOIN pg_attribute pka ON pka.attrelid = pkc.oid AND pka.attnum = pk_attnum.attnum WHERE pkn.nspname = ? AND pkc.relname = ? AND pkn.nspname NOT LIKE 'pg\_%' AND pkn.nspname != 'information_schema' AND pkc.relkind IN ('r', 'p') AND pkc.relname NOT IN ('geometry_columns', 'spatial_ref_sys') AND r.contype = 'f' ORDER BY pkn.nspname, pkc.relname, r.conname
Parameters:
[ "marketplace" "doctrine_migration_versions" ] |
|
1.78 ms (0.24%) |
1 |
SELECT n.nspname, c.relname, ct.conname, a.attname FROM pg_namespace n INNER JOIN pg_class c ON c.relnamespace = n.oid INNER JOIN pg_constraint ct ON ct.conrelid = c.oid INNER JOIN pg_index i ON i.indrelid = c.oid AND i.indexrelid = ct.conindid INNER JOIN LATERAL unnest(i.indkey) WITH ORDINALITY AS keys(attnum, ord) ON true INNER JOIN pg_attribute a ON a.attrelid = c.oid AND a.attnum = keys.attnum WHERE n.nspname = ? AND c.relname = ? AND n.nspname NOT LIKE 'pg\_%' AND n.nspname != 'information_schema' AND c.relkind IN ('r', 'p') AND c.relname NOT IN ('geometry_columns', 'spatial_ref_sys') AND ct.contype = 'p' ORDER BY n.nspname, c.relname, ct.conname, keys.ord
Parameters:
[ "marketplace" "doctrine_migration_versions" ] |
|
1.35 ms (0.18%) |
1 |
SELECT n.nspname, c.relname, ct.conname, a.attname FROM pg_namespace n INNER JOIN pg_class c ON c.relnamespace = n.oid INNER JOIN pg_constraint ct ON ct.conrelid = c.oid INNER JOIN pg_index i ON i.indrelid = c.oid AND i.indexrelid = ct.conindid INNER JOIN LATERAL unnest(i.indkey) WITH ORDINALITY AS keys(attnum, ord) ON true INNER JOIN pg_attribute a ON a.attrelid = c.oid AND a.attnum = keys.attnum WHERE n.nspname = ? AND c.relname = ? AND n.nspname NOT LIKE 'pg\_%' AND n.nspname != 'information_schema' AND c.relkind IN ('r', 'p') AND c.relname NOT IN ('geometry_columns', 'spatial_ref_sys') AND ct.contype = 'u' ORDER BY n.nspname, c.relname, ct.conname, keys.ord
Parameters:
[ "marketplace" "doctrine_migration_versions" ] |
|
0.89 ms (0.12%) |
1 |
SELECT n.nspname, c.relname, ic.relname, i.indisunique, pg_get_expr(indpred, indrelid), attname FROM pg_index i JOIN pg_class AS c ON c.oid = i.indrelid JOIN pg_namespace n ON n.oid = c.relnamespace JOIN pg_class AS ic ON ic.oid = i.indexrelid JOIN LATERAL unnest(i.indkey) WITH ORDINALITY AS keys(attnum, ord) ON TRUE JOIN pg_attribute a ON a.attrelid = c.oid AND a.attnum = keys.attnum WHERE n.nspname = ? AND c.relname = ? AND n.nspname NOT LIKE 'pg\_%' AND n.nspname != 'information_schema' AND c.relkind IN ('r', 'p') AND c.relname NOT IN ('geometry_columns', 'spatial_ref_sys') AND i.indisprimary = false ORDER BY n.nspname, c.relname, ic.relname, keys.ord
Parameters:
[ "marketplace" "doctrine_migration_versions" ] |
|
0.49 ms (0.06%) |
3 |
SELECT CURRENT_DATABASE()
Parameters:
[] |
|
0.35 ms (0.05%) |
1 |
SELECT n.nspname, c.relname, CASE c.relpersistence WHEN 'u' THEN true ELSE false END, obj_description(c.oid, 'pg_class') FROM pg_class c INNER JOIN pg_namespace n ON n.oid = c.relnamespace WHERE n.nspname = ? AND c.relname = ? AND n.nspname NOT LIKE 'pg\_%' AND n.nspname != 'information_schema' AND c.relkind IN ('r', 'p') AND c.relname NOT IN ('geometry_columns', 'spatial_ref_sys')
Parameters:
[ "marketplace" "doctrine_migration_versions" ] |
|
0.19 ms (0.03%) |
1 |
SELECT * FROM doctrine_migration_versions
Parameters:
[] |
|
0.11 ms (0.01%) |
1 |
SELECT current_schema()
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.
Managed Entities
default entity manager
| Class | Amount of managed objects |
|---|---|
| App\Entity\Catalog\ProductImage | 5880 |
| App\Entity\Catalog\Discount | 4259 |
| App\Entity\Catalog\Product | 1609 |
| App\Entity\Catalog\Attribute | 27 |
| App\Entity\Company\Company | 7 |
| App\Entity\Company\Warehouse | 7 |
| App\Entity\Catalog\Brand | 7 |
Entities Mapping
| Class | Mapping errors |
|---|---|
| App\Entity\Catalog\Discount | No errors. |
| App\Entity\Catalog\Product | No errors. |
| App\Entity\Company\Company | No errors. |
| App\Entity\Company\Warehouse | No errors. |
| App\Entity\Catalog\Brand | No errors. |
| App\Entity\Catalog\Attribute | No errors. |
| App\Entity\Catalog\ProductLang | No errors. |
| App\Entity\Catalog\ProductImage | No errors. |
| App\Entity\Catalog\ProductHistory | No errors. |
| App\Entity\Catalog\Attachment | No errors. |
| App\Entity\Catalog\FeatureValue | No errors. |