Submit Search
Upload
Profile django
•
6 likes
•
1,026 views
Tim (文昌)
Follow
Some tips for profiling django
Read less
Read more
Software
Report
Share
Report
Share
1 of 33
Download now
Download to read offline
Recommended
Django tricks (2)
Django tricks (2)
Carlos Hernando
Drupal Theming
Drupal Theming
takrin54
Unit testing JavaScript using Mocha and Node
Unit testing JavaScript using Mocha and Node
Josh Mock
Unit Testing JavaScript Applications
Unit Testing JavaScript Applications
Ynon Perek
How to write not breakable unit tests
How to write not breakable unit tests
Rafal Ksiazek
Decent exposure: Controladores sin @ivars
Decent exposure: Controladores sin @ivars
Leonardo Soto
Unit testing with mocha
Unit testing with mocha
Revath S Kumar
Template syntax in Angular 2.0
Template syntax in Angular 2.0
Eyal Vardi
Recommended
Django tricks (2)
Django tricks (2)
Carlos Hernando
Drupal Theming
Drupal Theming
takrin54
Unit testing JavaScript using Mocha and Node
Unit testing JavaScript using Mocha and Node
Josh Mock
Unit Testing JavaScript Applications
Unit Testing JavaScript Applications
Ynon Perek
How to write not breakable unit tests
How to write not breakable unit tests
Rafal Ksiazek
Decent exposure: Controladores sin @ivars
Decent exposure: Controladores sin @ivars
Leonardo Soto
Unit testing with mocha
Unit testing with mocha
Revath S Kumar
Template syntax in Angular 2.0
Template syntax in Angular 2.0
Eyal Vardi
Tango with django
Tango with django
Rajan Kumar Upadhyay
Introduction to Django
Introduction to Django
Jagdeep Singh Malhi
django_introduction20141030
django_introduction20141030
Kevin Wu
GDG Addis - An Introduction to Django and App Engine
GDG Addis - An Introduction to Django and App Engine
Yared Ayalew
伝説のギタリストじゃない方のDjango
伝説のギタリストじゃない方のDjango
makoto tsuyuki
Django
Django
Mohamed Ramadan
Django’s nasal passage
Django’s nasal passage
Erik Rose
A gentle intro to the Django Framework
A gentle intro to the Django Framework
Ricardo Soares
Test Driven Development With Python
Test Driven Development With Python
Siddhi
Django for mobile applications
Django for mobile applications
Hassan Abid
Django
Django
Toru Furukawa
國民雲端架構 Django + GAE
國民雲端架構 Django + GAE
Winston Chen
gDayX 2013 - Advanced AngularJS - Nicolas Embleton
gDayX 2013 - Advanced AngularJS - Nicolas Embleton
George Nguyen
What's new in Django 1.2?
What's new in Django 1.2?
Jacob Kaplan-Moss
Reproducible AI using MLflow and PyTorch
Reproducible AI using MLflow and PyTorch
Databricks
Hands on django part 1
Hands on django part 1
MicroPyramid .
Mod04 analysis designphase
Mod04 analysis designphase
BITs Information Technology Consultants Co., Ltd.
Introduction To Django (Strange Loop 2011)
Introduction To Django (Strange Loop 2011)
Jacob Kaplan-Moss
Angular Intermediate
Angular Intermediate
LinkMe Srl
Analytics Metrics delivery and ML Feature visualization: Evolution of Data Pl...
Analytics Metrics delivery and ML Feature visualization: Evolution of Data Pl...
Chester Chen
Python的50道陰影
Python的50道陰影
Tim (文昌)
Frontend django, Django Web 前端探索
Frontend django, Django Web 前端探索
Tim (文昌)
More Related Content
Similar to Profile django
Tango with django
Tango with django
Rajan Kumar Upadhyay
Introduction to Django
Introduction to Django
Jagdeep Singh Malhi
django_introduction20141030
django_introduction20141030
Kevin Wu
GDG Addis - An Introduction to Django and App Engine
GDG Addis - An Introduction to Django and App Engine
Yared Ayalew
伝説のギタリストじゃない方のDjango
伝説のギタリストじゃない方のDjango
makoto tsuyuki
Django
Django
Mohamed Ramadan
Django’s nasal passage
Django’s nasal passage
Erik Rose
A gentle intro to the Django Framework
A gentle intro to the Django Framework
Ricardo Soares
Test Driven Development With Python
Test Driven Development With Python
Siddhi
Django for mobile applications
Django for mobile applications
Hassan Abid
Django
Django
Toru Furukawa
國民雲端架構 Django + GAE
國民雲端架構 Django + GAE
Winston Chen
gDayX 2013 - Advanced AngularJS - Nicolas Embleton
gDayX 2013 - Advanced AngularJS - Nicolas Embleton
George Nguyen
What's new in Django 1.2?
What's new in Django 1.2?
Jacob Kaplan-Moss
Reproducible AI using MLflow and PyTorch
Reproducible AI using MLflow and PyTorch
Databricks
Hands on django part 1
Hands on django part 1
MicroPyramid .
Mod04 analysis designphase
Mod04 analysis designphase
BITs Information Technology Consultants Co., Ltd.
Introduction To Django (Strange Loop 2011)
Introduction To Django (Strange Loop 2011)
Jacob Kaplan-Moss
Angular Intermediate
Angular Intermediate
LinkMe Srl
Analytics Metrics delivery and ML Feature visualization: Evolution of Data Pl...
Analytics Metrics delivery and ML Feature visualization: Evolution of Data Pl...
Chester Chen
Similar to Profile django
(20)
Tango with django
Tango with django
Introduction to Django
Introduction to Django
django_introduction20141030
django_introduction20141030
GDG Addis - An Introduction to Django and App Engine
GDG Addis - An Introduction to Django and App Engine
伝説のギタリストじゃない方のDjango
伝説のギタリストじゃない方のDjango
Django
Django
Django’s nasal passage
Django’s nasal passage
A gentle intro to the Django Framework
A gentle intro to the Django Framework
Test Driven Development With Python
Test Driven Development With Python
Django for mobile applications
Django for mobile applications
Django
Django
國民雲端架構 Django + GAE
國民雲端架構 Django + GAE
gDayX 2013 - Advanced AngularJS - Nicolas Embleton
gDayX 2013 - Advanced AngularJS - Nicolas Embleton
What's new in Django 1.2?
What's new in Django 1.2?
Reproducible AI using MLflow and PyTorch
Reproducible AI using MLflow and PyTorch
Hands on django part 1
Hands on django part 1
Mod04 analysis designphase
Mod04 analysis designphase
Introduction To Django (Strange Loop 2011)
Introduction To Django (Strange Loop 2011)
Angular Intermediate
Angular Intermediate
Analytics Metrics delivery and ML Feature visualization: Evolution of Data Pl...
Analytics Metrics delivery and ML Feature visualization: Evolution of Data Pl...
More from Tim (文昌)
Python的50道陰影
Python的50道陰影
Tim (文昌)
Frontend django, Django Web 前端探索
Frontend django, Django Web 前端探索
Tim (文昌)
Introduction to protocol buffer
Introduction to protocol buffer
Tim (文昌)
I18n
I18n
Tim (文昌)
Mock Introduction
Mock Introduction
Tim (文昌)
Ml weka
Ml weka
Tim (文昌)
Tainan.py, Experience about package
Tainan.py, Experience about package
Tim (文昌)
Performance Enhancement Tips
Performance Enhancement Tips
Tim (文昌)
pygame sharing pyhug
pygame sharing pyhug
Tim (文昌)
More from Tim (文昌)
(9)
Python的50道陰影
Python的50道陰影
Frontend django, Django Web 前端探索
Frontend django, Django Web 前端探索
Introduction to protocol buffer
Introduction to protocol buffer
I18n
I18n
Mock Introduction
Mock Introduction
Ml weka
Ml weka
Tainan.py, Experience about package
Tainan.py, Experience about package
Performance Enhancement Tips
Performance Enhancement Tips
pygame sharing pyhug
pygame sharing pyhug
Recently uploaded
MYjobs Presentation Django-based project
MYjobs Presentation Django-based project
AnoyGreter
Salesforce Implementation Services PPT By ABSYZ
Salesforce Implementation Services PPT By ABSYZ
ABSYZ Inc
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Matt Ray
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
Alina Yurenko
SpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at Runtime
andrehoraa
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
OnePlan Solutions
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
StefanoLambiase
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
jennyeacort
Post Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on Identity
team-WIBU
UI5ers live - Custom Controls wrapping 3rd-party libs.pptx
UI5ers live - Custom Controls wrapping 3rd-party libs.pptx
Andreas Kunz
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Ahmed Mohamed
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdf
Marharyta Nedzelska
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
Christian Birchler
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Angel Borroy López
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...
Velvetech LLC
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
Dinusha Kumarasiri
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEE
VICTOR MAESTRE RAMIREZ
Odoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 Enterprise
preethippts
How To Manage Restaurant Staff -BTRESTRO
How To Manage Restaurant Staff -BTRESTRO
motivationalword821
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
Christoph Pohl
Recently uploaded
(20)
MYjobs Presentation Django-based project
MYjobs Presentation Django-based project
Salesforce Implementation Services PPT By ABSYZ
Salesforce Implementation Services PPT By ABSYZ
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
SpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at Runtime
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Post Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on Identity
UI5ers live - Custom Controls wrapping 3rd-party libs.pptx
UI5ers live - Custom Controls wrapping 3rd-party libs.pptx
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML Diagrams
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdf
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEE
Odoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 Enterprise
How To Manage Restaurant Staff -BTRESTRO
How To Manage Restaurant Staff -BTRESTRO
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
Profile django
1.
Profiling Django
2.
1. models =
MyModel.object.all() 2. filtered = models.filter( size__lte=20 ) 3. fronts = filtered[:9] 4. print(fronts[0].attribute)
3.
• QuerySet lazy
evaluation • https://docs.djangoproject.com/es/1.9/ref/models/ querysets/
4.
• • profile
5.
Profile • • Profile
6.
view • django-debug-toolbar • django-debug-toolbar-line-profiler
7.
8.
9.
Performance
10.
silk • view benchmark •
Query
11.
12.
13.
Demo
14.
Django Command
15.
cProfile python -m cProfile
-o my-profile-data.out manage.py cprofilev -f my-profile-data.out -a 0.0.0.0 -p 4000
16.
17.
• • function.
18.
line profiler •
19.
kernprof -l manage.py
<Command> python -m line_profiler manage.py.lprof
20.
21.
• db • django
orm orz…
22.
code snippet def store_conversion(post_back,
conversion_type): time_stamp = dateutil.parser.parse(post_back['at']) nested_data = post_back['data'] if not nested_data: return try: ConversionRecord.objects.create( time_stamp=time_stamp ) except IntegrityError: pass
23.
Profile • Python Parse
24.
25.
60
26.
•
27.
for index in
range(1, piece+1): r = update_metric_task(index, total_count, piece, metrics_qs, records) jobs.append(r) Query task
28.
benchmark • query set…
29.
Reason Pickling QuerySets¶ If you
pickle a QuerySet, this will force all the results to be loaded into memory prior to pickling.
30.
• Query Set
Task • Task QuerySet
31.
• bulk create •
call save method •
32.
• Unittest Sqlite Process •
TEST_NAME, Sqlite lock • postgres sql
33.
• Profile • Django
ORM
Download now