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

foreman/start-hydra: enable query log in postgres #1371

Closed
wants to merge 1 commit into from

Conversation

Ma27
Copy link
Member

@Ma27 Ma27 commented Mar 16, 2024

That way it's possible to observe which queries are fired against the DB from DBIx. This is particularly useful to find out if DBIx correctly prefetches everything it needs or if too much / too few things are loaded, see e.g. #1335.

That way it's possible to observe which queries are fired against the DB
from DBIx. This is particularly useful to find out if DBIx correctly
prefetches everything it needs or if too much / too few things are
loaded, see e.g. NixOS#1335.
@delroth
Copy link
Contributor

delroth commented Apr 15, 2024

Another way (what I've been doing) is DBIC_TRACE=1 in the environment variables when starting the Perl server. Maybe better?

@Ma27
Copy link
Member Author

Ma27 commented Apr 15, 2024

Oh yes it is, TIL!

@Ma27 Ma27 closed this Apr 15, 2024
@Ma27 Ma27 deleted the postgres-query-log branch April 15, 2024 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants