I have a website using Django that loads about 100 rows from a single table in a postgresql database when entering it.
Development server locally: Page loaded in 300ms
Production server on Heroku: Page loaded in 1.34secs (about 4.13 times slower)
(Integrated gunicorn
and loading my static files from aws S3
on a non-idling dyno)
wth?
Note that there is no traffic yet on my production server and I am using 1 dyno.
When I used the exact same setup as my development server for my production server on Heroku it was even slower. Is such a difference in loading time normal?
Specs of my computer:
Memory: 3.7 GiB
Processor: Intel® Core™ i5 CPU M 520 @ 2.40GHz × 4
OS type: 64-bit