# Logstash JDBC plugin: MySQL SET TRANSACTION ISOLATION LEVEL

**URL:** <https://discuss.elastic.co/t/logstash-jdbc-plugin-mysql-set-transaction-isolation-level/168220>\
**Category:** Logstash\
**Created:** [February 13, 2019, 12:53pm UTC](https://discuss.elastic.co/t/logstash-jdbc-plugin-mysql-set-transaction-isolation-level/168220 "2019-02-13T12:53:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cianchet](https://avatars.discourse-cdn.com/v4/letter/c/eada6e/32.png) [@cianchet](https://discuss.elastic.co/u/cianchet)\
**Post date:** [February 13, 2019, 12:53pm UTC](https://discuss.elastic.co/t/logstash-jdbc-plugin-mysql-set-transaction-isolation-level/168220/1 "2019-02-13T12:53:24Z")

</div>

Hello,

I need to perform a query on a MySQL database.  
The table is very heavy and so the best way to query it is to write something like:

SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;  
SELECT \* FROM MYTABLE where ID \> :sql\_last\_value LIMIT 5000;  
COMMIT;

Since this is not a single statement, I cannot use it on the statement field.

How can I manage that?

Many thanks

---

<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:** [March 13, 2019, 12:53pm UTC](https://discuss.elastic.co/t/logstash-jdbc-plugin-mysql-set-transaction-isolation-level/168220/2 "2019-03-13T12:53:29Z")

</div>

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