NPlusOneFinding
API reference › Debug Core › Panel › Db › NPlusOneFinding
Potential N+1 query group sharing one captured call-site fingerprint.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$count readonly constructor | positive-int | Number of observed query occurrences. | NPlusOneFinding |
$fingerprint readonly constructor | non-empty-string | Stable backtrace fingerprint. | NPlusOneFinding |
$firstSequence readonly constructor | int | First query sequence used as the deep-link target. | NPlusOneFinding |
$representativeQuery readonly constructor | string | Statement shown as the sample of the group. | NPlusOneFinding |
$sequences readonly constructor | list<int> | Query sequences belonging to the group. | NPlusOneFinding |
$totalDuration readonly constructor | float | Total group duration in milliseconds. | NPlusOneFinding |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates a potential N+1 query finding. | NPlusOneFinding |
id() | Returns the stable DOM id the queries grid deep-links the group with. | NPlusOneFinding |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(non-empty-string $fingerprint, positive-int $count, float $totalDuration, int $firstSequence, list<int> $sequences, string $representativeQuery)Creates a potential N+1 query finding.
Parameters
| Parameter | Type | Description |
|---|---|---|
$fingerprint | non-empty-string | Stable backtrace fingerprint. |
$count | positive-int | Number of observed query occurrences. |
$totalDuration | float | Total group duration in milliseconds. |
$firstSequence | int | First query sequence used as the deep-link target. |
$sequences | list<int> | Query sequences belonging to the group. |
$representativeQuery | string | Statement shown as the sample of the group. |
public function id(): stringReturns the stable DOM id the queries grid deep-links the group with.
Returns
string: DOM id derived from the first query sequence of the group.