How many database queries is my django rest api is calling?

Run your django project locally in debug ( in visual studio) Place debug breakpoints at the points of the returns in the functions that would be called when you hit the api. Hit the api with appropriate payload. Run the following in the debug terminal of VS Code. from django.db import connectionconnection.queries len(connection.queries) Above stepsContinue reading “How many database queries is my django rest api is calling?”

Design a site like this with WordPress.com
Get started