Hi, everybody, I'm not sure if this is the right forum, but I'm trying ...
I'm new to HANA xs service and I'm trying to make a databasepool in a xs service. I've done every thing that is listed in the sap HANA Developers Guide sps10, but still I think I got one connection instead of several connection via the dbpool. Here is how I have done it
- created a .xssqlcc file
- added description in .xssalcc file
- added default role in .xssqlcc file
- activeded the xssqlcc file in repo
- activated the xssqlcc file via hana/xs/admin console
- added code in my xs service
var connDBpool = $.hdb.getConnection({'sqlcc' : '<package:myxssqlcc file>','pool' : true});
But still it seems to be only one db connection, then the service is doing several queries at the same time. Have some of you successfully created a dbpool, have I missed something in the configuration of the dbpool?
Do I also need to add some properties to the .xsaccess file? The content of that file is at the moment
{
"prevent_xsrf": true,
"authentication": { "method": "Basic"},
"exposed": true
}
The reasone for why I want a dbpool is because I find it very strange that the xs service need to make a db - connection for each and every query to the database.