Skip to content
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
40 changes: 20 additions & 20 deletions example/report.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions internal/pgcompare/bench.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,11 @@ func (b *benchmark) ReadinessCheck(ctx context.Context, queries []Query) error {
return fmt.Errorf("no tables in public schema — migrations may have failed")
}

if _, err := b.db.ExecContext(ctx, "ANALYZE"); err != nil {
return fmt.Errorf("analyze: %w", err)
if _, err := b.db.ExecContext(ctx, "VACUUM (ANALYZE)"); err != nil {
return fmt.Errorf("vacuum analyze: %w", err)
}
if _, err := b.db.ExecContext(ctx, "CHECKPOINT"); err != nil {
return fmt.Errorf("checkpoint: %w", err)
}

for _, q := range queries {
Expand Down
4 changes: 2 additions & 2 deletions internal/pgcompare/templates/report.html
Original file line number Diff line number Diff line change
Expand Up @@ -474,8 +474,8 @@
hideTooltip();
});

window.addEventListener('scroll', hideTooltip, true);
window.addEventListener('resize', hideTooltip);
window.addEventListener('scroll', hideTooltip, { passive: true, capture: true });
window.addEventListener('resize', hideTooltip, { passive: true });
}
</script>
</body>
Expand Down