# Logstash taking so much time to index MySQL query

**URL:** <https://discuss.elastic.co/t/logstash-taking-so-much-time-to-index-mysql-query/225196>\
**Category:** Logstash\
**Created:** [March 26, 2020, 1:23pm UTC](https://discuss.elastic.co/t/logstash-taking-so-much-time-to-index-mysql-query/225196 "2020-03-26T13:23:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![manideep](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@manideep](https://discuss.elastic.co/u/manideep)\
**Post date:** [March 26, 2020, 1:23pm UTC](https://discuss.elastic.co/t/logstash-taking-so-much-time-to-index-mysql-query/225196/1 "2020-03-26T13:23:46Z")

</div>

Hi ALL,

I have a simple sql query with 3 joins. i am trying to index those results in ES via Logstash.

i created a view and try to index it. I was following up until one hour and I left whole night. but then it indexed.

now i am trying to use the query instead of view. I still have the same issue. it's been more than hour and still pipeline is running.

FYI - database is MySQL and the data will be around 10 k records with 30 columns. this is the sample data set.

the actual goal is to index 14 MySQL tables in a single index and the data will be around 15 k records.

please suggest.

thanks in advance

---

<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:** [April 23, 2020, 1:23pm UTC](https://discuss.elastic.co/t/logstash-taking-so-much-time-to-index-mysql-query/225196/2 "2020-04-23T13:23:52Z")

</div>

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