Skip site navigation (1) Skip section navigation (2)

Utilizing multiple cores in a function call.

From: "Hartman, Matthew" <Matthew(dot)Hartman(at)krcc(dot)on(dot)ca>
To: <pgsql-performance(at)postgresql(dot)org>
Subject: Utilizing multiple cores in a function call.
Date: 2009-06-29 14:26:40
Message-ID: 366642367C5B354197A1E0D27BC175BD022597D6@KGHMAIL.KGH.ON.CA (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
Good morning.


I have developed a function call that schedules patient appointments
within a day based on several resource constraints. The algorithm has
been mentioned on here before and I have managed to tweak it down to 6-9
seconds from the original 27 seconds. 


Of course, I want it to be faster still. The function throttles one of
my CPUs to 100% (shown as 50% in Task Manager) and leaves the other one
sitting pretty. Is there any way to use both CPUs?



Matthew Hartman
Information Management, ICP
Kingston General Hospital
(613) 549-6666 x4294 




pgsql-performance by date

Next:From: Jean-David BeyerDate: 2009-06-29 14:52:58
Subject: Re: Utilizing multiple cores in a function call.
Previous:From: Andres FreundDate: 2009-06-29 13:36:05
Subject: Re: random slow query

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group