Query Metrics
2
Database Queries
2
Different statements
8.51 ms
Query time
0
Invalid entities
0
Managed entities
Queries
#▲ | Time | Info |
---|---|---|
1 | 8.33 ms |
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:
[] |
2 | 0.18 ms |
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 415050
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. |