I will gather also the code if it will be needed.
Let me first present a general but quite simple schema.
-- We have two (or more) Erlang processes running on one physical machine.
-- These two Erlang processes are accessing pgsql through epgsql.
-- Each of the Erlang processes repeatedly opens and accesses cursor
queries that are *reading* from pgsql (there are no writes).
The cursor results are read in blocks.
-- The empirical results show that only one Erlang process can communicate
efficiently with pgsql (through epgsql).
-- In the case we have two or more Erlang processes accessing cursors
in pgsql the performance is really bad.
Dne torek, 08. marec 2016 23.27.34 UTC+1 je oseba Sergey Prokhorov napisala: