Query Metrics
13
Database Queries
9
Different statements
12.95 ms
Query time
0
Invalid entities
Grouped Statements
| Time▼ | Count | Info |
|---|---|---|
|
2.59 ms (19.96%) |
1 |
SELECT COALESCE( SUM( CASE WHEN type = :startType THEN -CAST(amount AS numeric) WHEN type = :endType THEN -CAST(amount AS numeric) ELSE 0 END ) , 0) AS net FROM transaction_history WHERE subtitle = :sc
Parameters:
[ "startType" => 3 "endType" => 5 "sc" => "265541" ] |
|
2.38 ms (18.35%) |
1 |
SELECT t0.id AS id_1, t0.smart_contract AS smart_contract_2, t0.name AS name_3, t0.company_name AS company_name_4, t0.location AS location_5, t0.country AS country_6, t0.country_flag AS country_flag_7, t0.description AS description_8, t0.rate AS rate_9, t0.category AS category_10, t0.amount AS amount_11, t0.amount_collected AS amount_collected_12, t0.waiting_people AS waiting_people_13, t0.people AS people_14, t0.economic_rating AS economic_rating_15, t0.legal_rating AS legal_rating_16, t0.community_rating AS community_rating_17, t0.favorite AS favorite_18, t0.start_date AS start_date_19, t0.end_date AS end_date_20 FROM investment t0 WHERE t0.id = ?
Parameters:
[
2
]
|
|
1.61 ms (12.44%) |
1 |
SELECT AVG(r0_.rating) AS sclr_0 FROM rating r0_ WHERE r0_.investment_id = ? AND r0_.data <= ?
Parameters:
[ 2 "2028-10-22 13:00:00" ] |
|
1.40 ms (10.82%) |
1 |
SELECT t0_.id AS id_0, t0_.icon AS icon_1, t0_.title AS title_2, t0_.subtitle AS subtitle_3, t0_.amount AS amount_4, t0_.unit AS unit_5, t0_.type AS type_6, t0_.amount_style AS amount_style_7, t0_.date AS date_8 FROM transaction_history t0_ ORDER BY t0_.date DESC, t0_.id DESC LIMIT 7
Parameters:
[] |
|
1.33 ms (10.25%) |
5 |
SELECT t0_.amount AS amount_0 FROM transaction_history t0_ WHERE t0_.type = ?
Parameters:
[
1
]
|
|
1.32 ms (10.21%) |
1 |
SELECT t0.id AS id_1, t0.amound AS amound_2, t0.data AS data_3, t0.is_user AS is_user_4, t0.investment_id AS investment_id_5 FROM waiting_line t0 WHERE t0.investment_id = ? ORDER BY t0.data ASC
Parameters:
[
2
]
|
|
1.25 ms (9.68%) |
1 |
SELECT n0_.id AS id_0, n0_.title AS title_1, n0_.description AS description_2, n0_.readed AS readed_3, n0_.add_date AS add_date_4, n0_.read_date AS read_date_5, n0_.image AS image_6, n0_.style AS style_7 FROM notification n0_ WHERE n0_.readed = ? ORDER BY n0_.add_date DESC
Parameters:
[
0
]
|
|
0.61 ms (4.71%) |
1 |
SELECT t0.id AS id_1, t0.rating AS rating_2, t0.data AS data_3, t0.is_user AS is_user_4, t0.investment_id AS investment_id_5 FROM rating t0 WHERE t0.investment_id = ? AND t0.is_user = ? LIMIT 1
Parameters:
[ 2 1 ] |
|
0.46 ms (3.57%) |
1 |
SELECT w0_.id AS id_0, w0_.amound AS amound_1, w0_.data AS data_2, w0_.is_user AS is_user_3, w0_.investment_id AS investment_id_4 FROM waiting_line w0_ WHERE w0_.investment_id = ? ORDER BY w0_.data ASC LIMIT 1
Parameters:
[
2
]
|
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\Investment | No errors. |
| App\Entity\WaitingLine | No errors. |
| App\Entity\Rating | No errors. |
| App\Entity\TransactionHistory | No errors. |
| App\Entity\Notification | No errors. |