I am trying to use the next settings:
DATABASES = {
'default': {
'ENGINE': 'sql_server.pyodbc',
'NAME': 'name',
'USER': 'user',
'PASSWORD': 'pw',
'HOST': 'host',
'PORT': '1433',
'CONN_MAX_AGE' : 600,
}
}
But calling my view where I have 2 simple queries takes always almost the same time - around 1.3sec. Calling the same view but without the queries it takes 100ms. So I think my problem is that every time it opens a new connection to the SQL DB.
Any suggestion why CONN_MAX_AGE doesn't want to work?
Best Regards, Kristian Veselinov