We have a very slow connection on first query with EF Core 3 and 5.After the first query everything works fine, until some time the first query is slow again.What could be wrong?-- UPDATE --I created a local user account on the Win server, with the same name as the user account that is being used to make the connection. The local user account does not have to be a member of any acl groups and it can be disabled.
I tried this solution, and to my amazement, it actually worked. The connection was made within milliseconds. What I am concerned with is that this "feature" seems like a flaw in the DB2 driver, and any new versions of this driver could actually prevent this from working again.
Does anyone know if there is an actual setting in the DB2 driver that we could set, so it does not try to authenticate with Active Directory? I would feel more comfortable using that setting, than relying on, what looks to me, a flaw in their authentication algorithm.
------------------------------
Jean-Pierre Nulens
------------------------------
#Db2