Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3257

How can I create databasepool in a sap hana xs service?

$
0
0

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

 

  1. created a .xssqlcc file
  2. added description in .xssalcc file
  3. added default role in .xssqlcc file
  4. activeded the xssqlcc file in repo
  5. activated the xssqlcc file via hana/xs/admin console
  6. 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.


Viewing all articles
Browse latest Browse all 3257

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>