Class N1QueryDetectedEvent
Published when the N+1 detector observes the same query template firing many times within a single request scope. Fires once per scope per offending template.
public record N1QueryDetectedEvent : IEvent, IEquatable<N1QueryDetectedEvent>
- Inheritance
-
N1QueryDetectedEvent
- Implements
-
IEvent
- Inherited Members
Constructors
N1QueryDetectedEvent(string, string, int, DateTime)
Published when the N+1 detector observes the same query template firing many times within a single request scope. Fires once per scope per offending template.
public N1QueryDetectedEvent(string ConnectionId, string QueryTemplate, int Count, DateTime At)
Parameters
Properties
At
public DateTime At { get; init; }
Property Value
ConnectionId
public string ConnectionId { get; init; }
Property Value
Count
public int Count { get; init; }
Property Value
QueryTemplate
public string QueryTemplate { get; init; }