java.lang.Object
io.ebean.config.SlowQueryEvent
Slow query event.
-
Constructor Summary
ConstructorDescriptionSlowQueryEvent
(String sql, long timeMillis, int rowCount, ObjectGraphNode originNode) Construct with the SQL and execution time in millis. -
Method Summary
Modifier and TypeMethodDescriptionReturn the origin point for the root query.int
Return the total row count associated with the query.getSql()
Return the SQL for the slow query.long
Return the execution time in millis.
-
Constructor Details
-
SlowQueryEvent
Construct with the SQL and execution time in millis.
-
-
Method Details
-
getSql
Return the SQL for the slow query. -
getTimeMillis
public long getTimeMillis()Return the execution time in millis. -
getRowCount
public int getRowCount()Return the total row count associated with the query. -
getOriginNode
Return the origin point for the root query.Typically the
originNode.getOriginQueryPoint().getFirstStackElement()
provides the stack line that shows the code that invoked the query.
-