0

Django ORM vs Raw SQL

How faster RAW SQL queries in comparison with Django ORM model? What're the pros and cons of each method? Can you bring the examples from your experience, where you used RAW SQL in your Django Project?

11th Oct 2018, 7:25 PM
Yuri Alekseev
Yuri Alekseev - avatar
1 Respuesta
0
https://docs.djangoproject.com/en/3.2/topics/db/sql/ "Explore the ORM before using raw SQL!" That was pretty helpful to me. After I learned SQL, I wanted to use it in django-projects, but then I realized, that RAW SQL is less safe than the ORM. Hope that helps!
16th Jun 2021, 9:29 AM
Fu Foy
Fu Foy - avatar