Query Metrics
1
Database Queries
1
Different statements
150.68 ms
Query time
0
Invalid entities
Grouped Statements
| Time▼ | Count | Info |
|---|---|---|
|
150.68 ms (100.00%) |
1 |
SELECT DISTINCT product.id, product.company_id, product.orig_name, IF (product.orig_name LIKE ?, 20, IF (product.orig_brand_name LIKE ?, 10, 0)) + IF (product.orig_brand_name LIKE ?, 10, 0) + IF (company.name LIKE ?, 5, 0) + IF (tag.name LIKE ?, 5, 0) AS weight, ( ( (SELECT COUNT(cart_product.id) FROM cart_product WHERE cart_product.product_id = product.id) + 1 ) / 100 ) as total_cart FROM product LEFT JOIN company ON company.id = product.company_id LEFT JOIN tag_product ON tag_product.product_id = product.id LEFT JOIN tag ON tag.id = tag_product.tag_id WHERE ( product.orig_name LIKE ? OR product.orig_brand_name LIKE ? OR product.orig_description LIKE ? OR product.list_of_ingredients LIKE ? OR company.name LIKE ? OR tag.name LIKE ? ) AND ( product.draft != 1 AND product.available > 0 AND product.is_hri = 0 AND product.is_displayed_in_association_only = 0 AND product.main_image_id IS NOT NULL AND company.show_publicly = 1 ) AND ( ( product.qty_ready_to_ship > 0 AND product.delivery_type = 0 ) OR ( product.delivery_type != 0 ) ) ORDER BY ( `weight` + `total_cart` ) DESC
Parameters:
[ 1 => "%Le%gars%du%lc%" 2 => "%Le%gars%du%lc%" 3 => "%Le%gars%du%lc%" 4 => "%Le%gars%du%lc%" 5 => "%Le%gars%du%lc%" 6 => "%Le%gars%du%lc%" 7 => "%Le%gars%du%lc%" 8 => "%Le%gars%du%lc%" 9 => "%Le%gars%du%lc%" 10 => "%Le%gars%du%lc%" 11 => "%Le%gars%du%lc%" ] |
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
| Class | Mapping errors |
|---|---|
| App\Entity\User | No errors. |
| App\Entity\Notification | No errors. |
| App\Entity\Message | No errors. |
| App\Entity\Product | No errors. |
| App\Entity\Cart | No errors. |
| App\Entity\Image | No errors. |