Query Metrics
2
Database Queries
2
Different statements
831.14 ms
Query time
0
Invalid entities
0
Managed entities
Grouped Statements
Time▼ | Count | Info |
---|---|---|
830.96 ms (99.98%) |
1 |
SELECT b.ip, COALESCE(NULLIF(b.port,''), s.portAgg) AS port, COALESCE(NULLIF(b.country,''), s.countryAgg) AS country, s.countryAgg AS countryCode, COALESCE(NULLIF(b.fai,''), s.faiAgg) AS fai, COALESCE(NULLIF(b.type,''), s.typeAgg) AS type, COALESCE(s.attackCount, 0) AS attackCount, s.lastSeen AS date FROM ban b LEFT JOIN (SELECT a.src_ip_txt, COUNT(*) AS attackCount, MAX(a.ts) AS lastSeen, MAX(a.country_code) AS countryAgg, MAX(a.as_org) AS faiAgg, MAX(a.sign_label) AS typeAgg, MAX(a.dport) AS portAgg FROM attempt a GROUP BY a.src_ip_txt) s ON s.src_ip_txt = b.ip ORDER BY (s.lastSeen IS NULL) ASC, s.lastSeen DESC LIMIT 50 OFFSET 40650
Parameters:
[] |
0.18 ms (0.02%) |
1 |
SELECT COUNT(*) FROM (SELECT b.ip, COALESCE(NULLIF(b.port,''), s.portAgg) AS port, COALESCE(NULLIF(b.country,''), s.countryAgg) AS country, s.countryAgg AS countryCode, COALESCE(NULLIF(b.fai,''), s.faiAgg) AS fai, COALESCE(NULLIF(b.type,''), s.typeAgg) AS type, COALESCE(s.attackCount, 0) AS attackCount, s.lastSeen AS date FROM ban b LEFT JOIN (SELECT a.src_ip_txt, COUNT(*) AS attackCount, MAX(a.ts) AS lastSeen, MAX(a.country_code) AS countryAgg, MAX(a.as_org) AS faiAgg, MAX(a.sign_label) AS typeAgg, MAX(a.dport) AS portAgg FROM attempt a GROUP BY a.src_ip_txt) s ON s.src_ip_txt = b.ip) tmp
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 |
---|
Entities Mapping
Class | Mapping errors |
---|---|
App\Entity\Ban | No errors. |