--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/83968c41-d415-4189-b33b-9f99b10b1c41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
- We need to move to a service-oriented infrastructure because Django is too monolithic
- It's too easy to write slow queries using the Django ORM
- It's hard to hire Django engineers
While Instagram and DISQUS use Django to service large numbers of people, they don't use it for any serious backend work
--
--
--
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/38b96b56-064a-4933-abb5-e6085cd24425%40googlegroups.com.
Optimize the site for speed
At the startup where I work, we've written a lot of our server code in Django. So far, we've adopted a "build it fast" mentality, so we invested very little time in optimizing our code. A small amount of load testing has revealed our codebase / infrastructure as it stands today needs to run faster and support more users.
We recently hired some new engineers who are extremely skeptical that we should optimize our existing code. Their main concerns are:
- We need to move to a service-oriented infrastructure because Django is too monolithic (monolithic = technology lock-in & difficult to troubleshoot)
- It's too easy to write slow queries using the Django ORM
- It's hard to hire Django engineers
- While Instagram and DISQUS use Django to service large numbers of people, they don't use it for any serious backend work
After having worked with Django for the last 3 years, I'm a big believer in it, and I believe it would scale. To defend my position, I've pointed out to my colleagues that it's easy to identify bottlenecks with tools like the Django Debug Toolbar and Yet Another Django Profiler. With my colleagues present, I've isolated and fixed significant speed problems inside of a few hours. I don't believe the Django ORM is inherently bad, although I do think that coders who use it should Know What They're Doing. Finally, I've referenced blog entries that talk about how Instagram and Disqus use Django on the backend for backend-y tasks.
Despite my best efforts, my colleagues are still pushing to have us rewrite large portions of our infrastructure as separate services before we try to fix them. For example, we have one slow REST endpoint that returns a boatload of user data, and so there's talk about using a new microservice for users in lieu of our existing Django models. Even if we are able to fix bottlenecks we encounter in a timely fashion, my colleagues fear that Django won't scale with the business.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ddc6db79-af4c-4e78-a16f-84f2dc8b69ae%40googlegroups.com.
Print database structure.Check possibility of DB normalization.
100 GB (my "record" is 452 GB )is not so high but this size requires some attention. (Look like you Mysql used only one db file: try to set table per file. Check index size , and verify that indexes are working corectly)
Is it possible switch from hardcode SQL to stored function and procedure ?Review your project:try to avoid Many to Many field
Look like this issue in not connected to django only.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2a7c4406-503d-4b4a-9e94-d9cca96d0d04%40googlegroups.com.