jazzband/django-silk

Detect manual sql queries

Ouverte

#80 ouverte le 8 oct. 2015

 (9 commentaires) (14 réactions) (0 personne assignée)Python (319 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (3 958 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

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.

Guide contributeur