Skip to content

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