
Hi Fabian, Thanks for your help. Using the string "localhost" was introducing the latency compared to using "127.0.0.1". The latency is down to just a few milliseconds, so it must have been a DNS issue. Best regards and thanks, Matthew ________________________________________ From: users-list <users-list-bounces+mrussell16=qub.ac.uk@monetdb.org> on behalf of Fabian Groffen <fabian@monetdb.org> Sent: 22 January 2014 15:39 To: users-list@monetdb.org Subject: Re: mapi connect latency On 22-01-2014 14:29:51 +0000, Matthew Russell wrote:
Hi all,
I am writing a simple C++ dll which uses the mapi interface to connect to MonetDB.
The query itself runs extremely fast which is fantastic. I did notice that the mapi_connect() takes approximately 1 second to connect on my machine on a local socket.
1 second sounds like some foobared DNS lookup problem. A connect surely should succeed way faster than 1 second. Out of curiosity (and to try and reduce the problem) does a connection through JDBC have the same latency? (Can use jdbcclient to easily test it.) Fabian