# Getting data from mysql multiple tables

**URL:** <https://discuss.elastic.co/t/getting-data-from-mysql-multiple-tables/189011>\
**Category:** Elasticsearch\
**Created:** [July 5, 2019, 6:16am UTC](https://discuss.elastic.co/t/getting-data-from-mysql-multiple-tables/189011 "2019-07-05T06:16:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![manish\_kaushik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/manish_kaushik/32/48169_2.png) [@manish\_kaushik](https://discuss.elastic.co/u/manish_kaushik)\
**Post date:** [July 5, 2019, 6:16am UTC](https://discuss.elastic.co/t/getting-data-from-mysql-multiple-tables/189011/1 "2019-07-05T06:16:51Z")

</div>

I am indexing one table using jdbc plugin query and using timestamp column to check for any update and insert but now, I have to import multiple tables from db.  
What would be the efficient way:-

1. I used the sql join query in jdbc plugin? Is it going to be able to check for update in all the tables(i have timestamp column in every table).  
2: I should make multiple indices for all the tables and run a script for every table to index?  
What would be the best way and if any other suggestions?

---

<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:** [August 2, 2019, 6:16am UTC](https://discuss.elastic.co/t/getting-data-from-mysql-multiple-tables/189011/2 "2019-08-02T06:16:54Z")

</div>

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