# Import from BigQuery to Elasticsearch?

**URL:** https://discuss.elastic.co/t/import-from-bigquery-to-elasticsearch/138448
**Category:** Elasticsearch
**Created:** [July 3, 2018, 8:18pm UTC](https://discuss.elastic.co/t/import-from-bigquery-to-elasticsearch/138448 "2018-07-03T20:18:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![melissachang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/melissachang/32/36684_2.png) [@melissachang](https://discuss.elastic.co/u/melissachang)
#### Post date: [July 3, 2018, 8:18pm UTC](https://discuss.elastic.co/t/import-from-bigquery-to-elasticsearch/138448/1 "2018-07-03T20:18:47Z")

</div>

Is there a recommended/easy way to import data from BigQuery into Elasticsearch?

Right now I'm doing BigQuery -\> pandas dataframe -\> dict -\> Elasticsearch, but pandas doesn't handle missing values well.

---

<div class="post-metadata">

### Author: ![wmurphy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wmurphy/32/33014_2.png) [@wmurphy](https://discuss.elastic.co/u/wmurphy)
#### Post date: [July 5, 2018, 1:43pm UTC](https://discuss.elastic.co/t/import-from-bigquery-to-elasticsearch/138448/2 "2018-07-05T13:43:59Z")

</div>

We are also seeking for a recommendation on what is the best way to ingest massive amounts of data from BigQuery.

We currently do something similar: BigQuery -\> dict -\> Batch -\> Elasticsearch

Our problem is scaling the solution, currently we take several hours to ingest all data, we can parallelize the process, but before, we would like to know about recommendations and best practices.

---

<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, 2018, 1:58pm UTC](https://discuss.elastic.co/t/import-from-bigquery-to-elasticsearch/138448/3 "2018-08-02T13:58:58Z")

</div>

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