Guido Fiala wrote:
> Due to performance problems profiling showed the PGStream.flush() - thats
> pg_output buffered Stream - takes the most time although we do not really
> send much sql-queries at that time, at least we get much more data than we
> send. System and database is also almost idle at that time.
Can you show us the whole profile? I can't see why flush() should be
expensive at all. Are you sure that you are not counting time spent
blocked in native code as busy time? (hprof likes to do that)
-O