{"repo":"Lukas-Schillinger/django-queryset-feeler","free":true,"listed":false,"github":"https://github.com/Lukas-Schillinger/django-queryset-feeler","clone":"git clone https://github.com/Lukas-Schillinger/django-queryset-feeler.git","description":"Get a feel for how Django queries your database. Profile query count, execution time, and raw SQL from the command line, IPython, or Jupyter. No configuration required.","language":"Python","stars":66,"topics":["debugging-tool","django","django-rest-framework","orm","python","sql"],"license":"MIT","category":"databases-storage","readme_excerpt":"django-queryset-feeler Get a feel for how Django queries your database. Profile query count, execution time, and raw SQL from the command line, IPython, or Jupyter. No configuration required. Unlike django-debug-toolbar, dqf isn't limited to views. Pass it functions, querysets, model instances, class-based views, or DRF serializers. It profiles a single callable and works outside the browser making it useful for prototyping or learning how Django querysets work. Installation or with pip: Usage Pass Feel() any of the following: Query Type About :--------------------- :------------------------------------------------------------------ Feel(view) Profile a function-based view with an empty HttpRequest . Feel(ClassBasedView) Profile a class-based view with an empty GET request. Feel(serializer) Profile a DRF serializer against all instances of its Meta.model . Feel(queryset) Profile a queryset. Feel(model instance) Re-fetch the instance via .refresh from db() . Feel(function) Profile a plain function. Views and CBVs use an empty HttpRequest by default. Pass request= to supply your own. Async functions, views, and CBVs are all supported. However, Feel.profile() is sync-only; wrap async code blocks in an async def instead. Profile your queries with these properties: Property About :--------------- :------------------------------------------------------------------------------ feel.count The number of database queries executed. feel.time Average execution time in seconds over 32 run","default_branch":null,"files":null,"tree":[],"storefront":"/r/Lukas-Schillinger","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Lukas-Schillinger/django-queryset-feeler/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}