# Logasth jdbc connection

**URL:** <https://discuss.elastic.co/t/logasth-jdbc-connection/230489>\
**Category:** Logstash\
**Created:** [April 30, 2020, 7:39am UTC](https://discuss.elastic.co/t/logasth-jdbc-connection/230489 "2020-04-30T07:39:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mateuszpk](https://avatars.discourse-cdn.com/v4/letter/m/df705f/32.png) [@Mateuszpk](https://discuss.elastic.co/u/Mateuszpk)\
**Post date:** [April 30, 2020, 7:39am UTC](https://discuss.elastic.co/t/logasth-jdbc-connection/230489/1 "2020-04-30T07:39:59Z")

</div>

Hi  
How I can limit the connection to database in logstash jdbc plugin. Currently I have 250 SQL stmt and all SQL are excutting in the same time. Is it possible to change logstash beahaviou and let say execute all query on 10 connections.  
I tired with

```auto
pipeline.workers: 10
pipeline.batch.size: 20 

```

but stil all queries execute in parallel.

JDBC syntax:

```auto
input {
jdbc {
       ............
  }
jdbc {
        ........
    }
jdbc {
        ........
    }
.
.
.
}

```

the

```auto
schedule => "*/5 * * * *" 

```

is not a sollution for my case .

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 28, 2020, 7:40am UTC](https://discuss.elastic.co/t/logasth-jdbc-connection/230489/2 "2020-05-28T07:40:02Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
