I could not find any issue/question/pr related to this, so I'm starting a new one. It would be great to have query logging implemented inside `asyncpg`: - to see all executed queries and their parameters - especially nice would be to have a query cache logging to see cache hits/misses
Activity
elprans commentedon Sep 30, 2020
Not a bad idea. Patches are welcome.
dmig commentedon Oct 1, 2020
Are there any performance tests in the repo?
dmig-alarstudios commentedon Oct 1, 2020
Could you please have a look at changes while I'm fixing and writing new tests?
maksimartemevalar commentedon May 11, 2022
@elprans
any updates guys?
bayersglassey-zesty commentedon Mar 7, 2023
It's possible to implement this oneself!
Now just pass ConnectionLogger as the
connection_classparameter ofasyncpg.create_pool.elprans commentedon Oct 9, 2023
Implemented in #1043.