Re: [GENERAL] Python versus Other Languages using PostgreSQL - Mailing list pgsql-general

From Geoff Winkless
Subject Re: [GENERAL] Python versus Other Languages using PostgreSQL
Date
Msg-id CAEzk6fdJH3Zmi+uq_VR=qyDtJFiEdd1D0s0X8qHQTjxTTEO81Q@mail.gmail.com
Whole thread Raw
In response to [GENERAL] Python versus Other Languages using PostgreSQL  (Paul Hughes <paul@vivation.com>)
List pgsql-general
On 8 May 2017 at 22:26, Paul Hughes <paul@vivation.com> wrote:
I noticed that most of the largest web platforms that use PostgreSQL as their primary database, also use Python as their primary back-end language. Yet, according to every benchmark I could find over the last couple of years, back-end languages like PHP, HHVM, and Node.JS outperform Python by 2x to 8x!

So here are my questions:

1) Why do the largest web applications that use PostgreSQL also use Python, even though Python is significantly slower than it's biggest competitors?

​I've no experience of whether this is true. But in most cases, especially web platforms, the speed of the language is almost irrelevant. Most computers are fast enough these days that (for most applications) they spend most of their time in IO_WAIT, whether you write your code in C or in shell script. If you have strong experience in a particular language then ​you should use that language, and invest time in optimising your data structures and developing faster algorithms. 

Geoff

pgsql-general by date:

Previous
From: Peter Devoy
Date:
Subject: Re: [GENERAL] Python versus Other Languages using PostgreSQL
Next
From: Francisco Olarte
Date:
Subject: Re: [GENERAL] Python versus Other Languages using PostgreSQL