Suppose I have a big table in PostgreSQL (more than 500Gb) – work pool. Also I have a number of worker processes, getting works from work pool.
What is the most efficient way to release manager, that would return next string from the
‘work pool’ table as response to workers requests. May be some kind of cursor, iterator or whatever?
UPD I have forgotten one key thing – table is constant. No INSERT or UPDATE operations are allowed. We just reading from it.
I whanted to be redirected to this and this. Thanks to http://habrahabr.ru/qa/22030/, user ToSHiC and strib.