Skip to content

Commit f283610

Browse files
authored
Fix foreign key reference in profile SQL query (#4010)
* Fix foreign key reference in profile SQL query c.id is the primary key on the calls table. For the first few calls it may be equal to the routine ID, but not for long :-) * Group by routine ID, too
1 parent 5356b30 commit f283610

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/Language/performance.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ opening in SQLite.
100100
calls c,
101101
routines r
102102
where
103-
c.id = r.id
103+
c.routine_id = r.id
104104
group by
105-
c.id
105+
r.id
106106
order by
107107
inclusive_time desc
108108
limit 30;

0 commit comments

Comments
 (0)