Skip to Content

Connection pooling settting in node modules hana-client or hdbext.

Hi All

I am trying to create a connection pool using the node module hana-client/hdbext.

Is there any way to set the max and min pool size using these modules.

Can somebody share a example or a document i can follow for this

I am able to connect to Hana using hana-client with config pooling set to true. But not sure how can i set the max and min pool size and idle time

Thanks

Arun

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jul 27, 2020 at 02:39 AM

    Hi Arun

    Just wondering if you found any answers for this question? From what I see so far, it appears the hdbext.getPool(), pool.acquire() are obsoleted.

    From @sap/hdbext changelog.md:

    ## 5.0.0 - 2018-09-27
    ### Removed - Node 0.12 support. - The `constants` property.
    - The `getPool` property.
    - The `createPool` property.
    - The `updateConnectionOptions` property.
    - The `session` property is no longer considered for setting session variables.

    ### Changed
    - `hdbext.middleware` no longer takes pool options as second argument.
    - `hdbext.middleware` does not work with pooled connections by default.Regards
    Andrew

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.