---
title: "Discussion on \"Your slow query log will never show you an N+1. Your full log will.\" | Hashnode"
description: "Discussion on \"Your slow query log will never show you an N+1. Your full log will.\". Each query of an N+1 is fast, so log_min_duration_statement never catches it. Log everything for an hour and the loops are right there."
url: "https://hashnode.com/posts/your-slow-query-log-will-never-show-you-an-n-1-your-full-log-will/6b118ca5b8513745d42917e4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Your slow query log will never show you an N+1. Your full log will.](https://yourreferralcodes.hashnode.dev/your-slow-query-log-will-never-show-you-an-n-1-your-full-log-will?utm_source=hashnode&utm_medium=feed)

Each query of an N+1 is fast, so log\_min\_duration\_statement never catches it. Log everything for an hour and the loops are right there.

1d ago · 5 min read · yourreferralcodes.hashnode.dev  
Read the article

-   [#postgres](https://hashnode.com/tag/postgres)
-   [#database](https://hashnode.com/tag/database)
-   [#performance](https://hashnode.com/tag/performance)
-   [#go](https://hashnode.com/tag/go)

## Written by

[Alex](https://hashnode.com/@alex4315)

@alex4315 · Spain

  
[View profile](https://hashnode.com/@alex4315)

Building yourreferralcodes.com, a place to share and find referral codes and invite links, with each company’s reward and effort explained. Solo founder, building in public.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
