[GENERAL] Indexes and loops or some kind of pg error? - Mailing list pgsql-general

From Арсен Арутюнян
Subject [GENERAL] Indexes and loops or some kind of pg error?
Date
Msg-id 1482785758.904131037@f369.i.mail.ru
Whole thread Raw
List pgsql-general
Hello.
I have a few questions:
1)  JobStatusTest1 function has only one request and JobStatusTest2 function has as many as six requests.
Why function JobStatusTest2 is faster? 

JobStatusTest1 : 981.596 ms
JobStatusTest2 : 849.133 ms

2) Two functions JobStatusTest3 and JobStatusTest4 perform the same actions. But one of the function performs the same steps in the cycle.
Why is the speed of the functions so incredibly much different?

JobStatusTest3 : 1430.777 ms
JobStatusTest4 : 2.386 ms

best
Arsen Arutyunyan
Attachment

pgsql-general by date:

Previous
From: Günce Kaya
Date:
Subject: Re: [GENERAL] Er Data Modeller for PostgreSQL
Next
From: Rich Shepard
Date:
Subject: [GENERAL] Syntax error needs fresh eyeballs