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
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