I have my django app running on Server 1 which is connected to Amazon RDS (PostgreSQL) present on Server 2. On a day-to-day basis, I have to interact with database often to write/fetch/query data.
Currently, I am following the django ORM way across the app. I just wanted to know if there would be any improvement in the performance if I use PostgreSQL raw SQL queries using django.db connection cursor over ORM?
Following are the proposed ways for one sample query.
Can someone please suggest which one of the above will lead to a faster increased in performance provided I have my database running on RDS in another server.
