jazzband/django-silk

Detect manual sql queries

Open

#80 aperta il 8 ott 2015

Vedi su GitHub
 (9 commenti) (14 reazioni) (0 assegnatari)Python (319 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (3958 star)
Metriche merge PR
 (Merge medio 4h 49m) (1 PR mergiata in 30 g)

Descrizione

At the moment silk does its magic by hijacking execute_sql, but this doesn't catch RawQuerySet queries and certainly doesn't catch queries that use the bare cursor.execute, so these appear as time spent in python and the final sql doesn't get logged for nice introspection.

It may be tricky, but it would be nice if silk were able to catch these queries too, possibly by doing the hijacking at a lower level.

Guida contributor