Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

number of database queries django

from django.conf import settings
settings.DEBUG = True
from django.db import connection, reset_queries


def num_queries(reset=True):
    print(len(connection.queries))
    if reset:
        reset_queries()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #number #database #queries #django
ADD COMMENT
Topic
Name
6+1 =