Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.x] Don't use familyHash for queries #773

Merged
merged 1 commit into from
Nov 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion resources/js/components/RelatedEntries.vue
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
queriesSummary() {
return {
time: _.reduce(this.queries, (time, q) => { return time + parseFloat(q.content.time) }, 0.00),
duplicated: this.queries.length - _.size(_.groupBy(this.queries, 'family_hash')),
duplicated: this.queries.length - _.size(_.groupBy(this.queries, (q) => { return q.content.hash })),
};
},

Expand Down
3 changes: 2 additions & 1 deletion src/Watchers/QueryWatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public function recordQuery(QueryExecuted $event)
'slow' => isset($this->options['slow']) && $time >= $this->options['slow'],
'file' => $caller['file'],
'line' => $caller['line'],
])->tags($this->tags($event))->withFamilyHash($this->familyHash($event)));
'hash' => $this->familyHash($event),
])->tags($this->tags($event)));
}

/**
Expand Down