You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to npgsq...@googlegroups.com
Hello!
Scenario:
Server PostgreSQL 9.4 under freeBSD. HP T620
Client: Win7 C#
We had some performance problems and we decided to start intense log, and we have discovered that before every SQL there are some strange queries like this
LOG: statement: select 'Npgsql155171'
LOG: duration: 0.136 ms
The number is random.
It seems it's some test that npgsql makes to check connection, but it's very hard for us because we make thousands queries every minute and it affects performance.
How could us avoid this test?
Thanks and happy weekend to everybody
John Soekris
Francisco Figueiredo Jr.
unread,
Feb 16, 2015, 5:50:25 PM2/16/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
Unfortunately, the only way to get rid of this test is to either
disable Npgsql connection pool or recompile Npgsql without the test.
Disable connection pool isn't advised because you will incur in the
overhead of opening a new connection each time, which is worse than
doing the check.
We have plans to remove this checking as it is giving performance
problems to users. We already have a patch
https://github.com/npgsql/npgsql/pull/452 which removes this checking.
Are you able to compile Npgsql from source? You will need Visual
Studio. You can use the 2013 Community Edition.
You will also need to use the 2.2 branch as the master branch is being
used to develop the next major 3.0 release.