How to integrate Google Cloud SQL with Google Big Query

前端 未结 3 1875
余生分开走
余生分开走 2020-12-10 15:17

I am designing a solution in which Google Cloud SQL will be used to store all data from the regular functioning of the app(kind of OLTP data). The data is expected to grow o

3条回答
  •  遥遥无期
    2020-12-10 15:48

    Take a look at how WePay does this:

    • https://wecode.wepay.com/posts/bigquery-wepay

    The MySQL to GCS operator executes a SELECT query against a MySQL table. The SELECT pulls all data greater than (or equal to) the last high watermark. The high watermark is either the primary key of the table (if the table is append-only), or a modification timestamp column (if the table receives updates). Again, the SELECT statement also goes back a bit in time (or rows) to catch potentially dropped rows from the last query (due to the issues mentioned above).

    With Airflow they manage to keep BigQuery synchronized to their MySQL database every 15 minutes.

提交回复
热议问题