Skip to content

Commit 1e31b65

Browse files
committed
[scripts] use EXISTS in breakpoint query instead of IN since it is faster
... for some reason
1 parent 626583b commit 1e31b65

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/scripts/lnav-moveto-breakpoint.lnav

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
FROM all_logs
3434
WHERE
3535
log_line $line_cmp log_msg_line() AND
36-
log_msg_schema IN (SELECT schema_id FROM lnav_log_breakpoints)
36+
EXISTS (SELECT 1 FROM lnav_log_breakpoints WHERE schema_id = log_msg_schema)
3737
ORDER BY log_line $line_order
3838
LIMIT 1
3939

0 commit comments

Comments
 (0)