[Pljava-dev] pljava concurrency

From: jurka at ejurka(dot)com (Kris Jurka)
To:
Subject: [Pljava-dev] pljava concurrency
Date: 2008-10-23 17:22:49
Message-ID: 4900B2E9.4050502@ejurka.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pljava-dev

Peter Mengaziol wrote:
> In my searches on the web I once came across a document that
> described the Backend locking that pl/java used. I cannot find it
> anymore. Can you point me to it?

I'm not sure specifically what you're referring to.

> I have been running pl/java under MacOSX and I have a question that I
> was trying to research. That above document said that pljava locked
> the backend and that implied only a single pljava 'task' could run at
> a time. I am trying to port some rather time consuming tasks from
> another DB and it seems that pljava queues them up. Is this correct?
>

A given pl/java function can be multi-threaded, but only one of those
threads may execute a query at a time. To get concurrency you need a
separate connection and function execution. That's not a separate
connection to jdbc:default:connection, but another real connection that
starts up another backend.

Kris Jurka

Responses

Browse pljava-dev by date

  From Date Subject
Next Message Kris Jurka 2008-10-23 19:52:13 [Pljava-dev] pljava concurrency
Previous Message Nelli Vanan 2008-10-22 19:48:24 [Pljava-dev] Number of Columns in a raw