Enviar pesquisa
Carregar
Tradeoffs of replacing core components
•
0 gostou
•
1,081 visualizações
Andy Dai
Seguir
Tecnologia
Diversão e humor
Denunciar
Compartilhar
Denunciar
Compartilhar
1 de 33
Baixar agora
Baixar para ler offline
Recomendados
fmp experiments 2
fmp experiments 2
alfiehorwell
Replacing Laptop Harddrive
Replacing Laptop Harddrive
Electro Computer Warehouse
Upgrading the Computer Component
Upgrading the Computer Component
Perla Pelicano Corpez
Creating peer to peer network nadia perandos bisnar
Creating peer to peer network nadia perandos bisnar
Perla Pelicano Corpez
27. nature of directing
27. nature of directing
Perla Pelicano Corpez
Ang Kolonyalismo at Imperyalismo sa Timog at Kanlurang Asya
Ang Kolonyalismo at Imperyalismo sa Timog at Kanlurang Asya
Vanessa Marie Matutes
K to 12 PC Hardware Servicing Learning Module
K to 12 PC Hardware Servicing Learning Module
Dr. Joy Kenneth Sala Biasong
Kolonyalismo at imperyalismo sa silangan at timog silangang asya
Kolonyalismo at imperyalismo sa silangan at timog silangang asya
Jared Ram Juezan
Recomendados
fmp experiments 2
fmp experiments 2
alfiehorwell
Replacing Laptop Harddrive
Replacing Laptop Harddrive
Electro Computer Warehouse
Upgrading the Computer Component
Upgrading the Computer Component
Perla Pelicano Corpez
Creating peer to peer network nadia perandos bisnar
Creating peer to peer network nadia perandos bisnar
Perla Pelicano Corpez
27. nature of directing
27. nature of directing
Perla Pelicano Corpez
Ang Kolonyalismo at Imperyalismo sa Timog at Kanlurang Asya
Ang Kolonyalismo at Imperyalismo sa Timog at Kanlurang Asya
Vanessa Marie Matutes
K to 12 PC Hardware Servicing Learning Module
K to 12 PC Hardware Servicing Learning Module
Dr. Joy Kenneth Sala Biasong
Kolonyalismo at imperyalismo sa silangan at timog silangang asya
Kolonyalismo at imperyalismo sa silangan at timog silangang asya
Jared Ram Juezan
Grpc + python.key
Grpc + python.key
Andy Dai
該怎麼樣(認真的)部署你的 Python Web 應用程式?
該怎麼樣(認真的)部署你的 Python Web 應用程式?
Andy Dai
Power UP your CLI
Power UP your CLI
Andy Dai
Search search search
Search search search
Andy Dai
Django channels
Django channels
Andy Dai
Django Third party packages
Django Third party packages
Andy Dai
Practical django secuirty
Practical django secuirty
Andy Dai
總之來講講 Search
總之來講講 Search
Andy Dai
Python web meetup 11 18
Python web meetup 11 18
Andy Dai
Django in heavy load environment
Django in heavy load environment
Andy Dai
電腦不只會幫你選土豆,還會幫你選新聞
電腦不只會幫你選土豆,還會幫你選新聞
Andy Dai
用 Python 打造你自己的 summly
用 Python 打造你自己的 summly
Andy Dai
ElastiCache
ElastiCache
Andy Dai
Dynamo db
Dynamo db
Andy Dai
Django deploy
Django deploy
Andy Dai
Build your own trello witihin 100 LOC (with Meteor)
Build your own trello witihin 100 LOC (with Meteor)
Andy Dai
Boost your django admin with Grappelli
Boost your django admin with Grappelli
Andy Dai
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
Radu Cotescu
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
ThousandEyes
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
Delhi Call girls
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
The Digital Insurer
Mais conteúdo relacionado
Mais de Andy Dai
Grpc + python.key
Grpc + python.key
Andy Dai
該怎麼樣(認真的)部署你的 Python Web 應用程式?
該怎麼樣(認真的)部署你的 Python Web 應用程式?
Andy Dai
Power UP your CLI
Power UP your CLI
Andy Dai
Search search search
Search search search
Andy Dai
Django channels
Django channels
Andy Dai
Django Third party packages
Django Third party packages
Andy Dai
Practical django secuirty
Practical django secuirty
Andy Dai
總之來講講 Search
總之來講講 Search
Andy Dai
Python web meetup 11 18
Python web meetup 11 18
Andy Dai
Django in heavy load environment
Django in heavy load environment
Andy Dai
電腦不只會幫你選土豆,還會幫你選新聞
電腦不只會幫你選土豆,還會幫你選新聞
Andy Dai
用 Python 打造你自己的 summly
用 Python 打造你自己的 summly
Andy Dai
ElastiCache
ElastiCache
Andy Dai
Dynamo db
Dynamo db
Andy Dai
Django deploy
Django deploy
Andy Dai
Build your own trello witihin 100 LOC (with Meteor)
Build your own trello witihin 100 LOC (with Meteor)
Andy Dai
Boost your django admin with Grappelli
Boost your django admin with Grappelli
Andy Dai
Mais de Andy Dai
(17)
Grpc + python.key
Grpc + python.key
該怎麼樣(認真的)部署你的 Python Web 應用程式?
該怎麼樣(認真的)部署你的 Python Web 應用程式?
Power UP your CLI
Power UP your CLI
Search search search
Search search search
Django channels
Django channels
Django Third party packages
Django Third party packages
Practical django secuirty
Practical django secuirty
總之來講講 Search
總之來講講 Search
Python web meetup 11 18
Python web meetup 11 18
Django in heavy load environment
Django in heavy load environment
電腦不只會幫你選土豆,還會幫你選新聞
電腦不只會幫你選土豆,還會幫你選新聞
用 Python 打造你自己的 summly
用 Python 打造你自己的 summly
ElastiCache
ElastiCache
Dynamo db
Dynamo db
Django deploy
Django deploy
Build your own trello witihin 100 LOC (with Meteor)
Build your own trello witihin 100 LOC (with Meteor)
Boost your django admin with Grappelli
Boost your django admin with Grappelli
Último
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
Radu Cotescu
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
ThousandEyes
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
Delhi Call girls
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
The Digital Insurer
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
The Digital Insurer
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
Principled Technologies
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
Safe Software
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Neo4j
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
Maria Levchenko
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
apidays
How to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
naman860154
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
debabhi2
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
The Digital Insurer
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
Delhi Call girls
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
Gabriella Davis
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
UK Journal
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
Pixlogix Infotech
Último
(20)
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
How to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
Tradeoffs of replacing core components
1.
Tradeoffs of Replacing
Core Components Andy Dai andy@dorm7.com Django Workshop 2014/1/21
2.
SHOULD I SWAP
OUT DJANGO TEMPLATE/ORM?
3.
DON’T DO IT!
4.
WAIT! NOT REALLY! IT’S
WORTH IF…
5.
YOU ARE OKAY
WITH SACRIFICING ABILITY TO USE THIRD-PARTY DJANGO PACKAGES
6.
YOU HAVE NO
PROBLEM GIVING UP THE POWERFUL DJANGO ADMIN
7.
YOU HAVE ALREADY
ANALYZED YOUR OWN CODE TO FIND AND FIX THE ROOT CAUSES OF YOUR PROBLEMS
8.
YOU’VE EXPLORED ALL
OTHER OPTIONS INCLUDING CACHING AND DENORMALIZATION
9.
YOU’RE VERY SURE
THAT YOU’RE NOT OPTIMIZING PREMATURELY
10.
YOU’RE WILLING TO
ACCEPT THE FACT THAT UPGRADING DJANGO WILL BE EXTREMELY PAINFUL
11.
THINK AGAIN!
12.
OK. SO YOU
WANT TO USE DJANGO WITHOUT…
13.
“Django Admin” “Django Template” “Django
ORM” “Django Third-Party Packages”
14.
AND YOU ADD
SOME PACKAGES…
15.
“MongoEngine” “SQLAlchemy” “WTForms” “Jinja2”
16.
CONGRATULATION! YOU GOT FLASK!
17.
BUT ORM/TEMPLATE SUCKS…
18.
REPLACE ORM WITH NOSQL
19.
DO NOT DO
THIS GUESS WEBSITE WILL GROW RAPIDLY
20.
IT’S OK IF…
21.
YOU HAVE TRIED
CACHING, INDEX, QUERY OPTIMIZATION..
22.
YOU KNOW WHAT
YOU ARE DOING
23.
REPLACE DJANGO TEMPLATE WITH
JINJA2/MAKO
24.
DO NOT DO
THIS LOGIC IN YOUR TEMPLATE
25.
IT’S OK IF
THERE ARE SOME PAGES THAT
26.
ASK YOURSELF BEFORE REPLACING
DJANGO TEMPLATE
27.
“Why you want
to do this?” “Where’s the bottleneck?” “Cache?”
28.
DO IT ONLY
WHEN YOU KNOW WHAT YOU ARE DOING
29.
ALWAYS USE THE
RIGHT TOOL FOR THE RIGHT JOB
30.
“Premature optimization is
the root of all evil” – Donald Knuth
31.
Django/Jinja2 Integration • Jingo -
https://github.com/jbalogh/jingo • coffin - https://github.com/coffin/coffin/ • django-jinja - https://github.com/niwibe/django-jinja
32.
Replace Django ORM • SQLAlchemy
- http://www.sqlalchemy.org/ • MongoEngine - http://mongoengine.org/
33.
THANKS!
Baixar agora