[JDBC] 42.0.0.jre7, driver logging takes 30-40% of my server's time

Поиск
Список
Период
Сортировка
От Konstantinos Kougios
Тема [JDBC] 42.0.0.jre7, driver logging takes 30-40% of my server's time
Дата
Msg-id 4195bb97-c924-8e19-9475-6c05a934afd0@googlemail.com
обсуждение исходный текст
Ответы Re: [JDBC] 42.0.0.jre7, driver logging takes 30-40% of my server's time
Re: 42.0.0.jre7, driver logging takes 30-40% of my server's time
Список pgsql-jdbc
I tried to paste an image with a profile, but my email was rejected.

It seems logging is called in places like row.getInt(), row.getString()
etc without a check for the logging level. Then it takes a lot of time
for those to be processed, especially for queries that get a lot of
data. It goes down to parsing strings and locale and it just is slow. I
see postgres processing a query for 1 sec but on the java side it takes
5 secs to get the data back to my code. Part of this slowdown is due to
the logging. Can it be optimized, i.e. having a boolean to true/false if
logging is enabled and then do the calls?

Thanks




В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Alexandre
Дата:
Сообщение: [JDBC] PSQLException: The server does not support SSL
Следующее
От: Jorge Solórzano
Дата:
Сообщение: Re: [JDBC] 42.0.0.jre7, driver logging takes 30-40% of my server's time