> For the complete documentation index, see [llms.txt](https://help.pangocdp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.pangocdp.com/user-guide/module-console/connections/database/huong-dan-dong-bo-du-lieu-tu-bigquery-sang-pangocdp.md).

# Hướng dẫn đồng bộ dữ liệu từ Bigquery sang PangoCDP

Tài liệu hướng dẫn đồng bộ dữ liệu từ Bigquery lên model PangoCDP

## Các bước thao tác

* Chọn [Module Console](https://console.mydatalakes.com/)
* Chọn Connections
* Chọn Database
* Chọn GCP Bigquery
* Chọn vào kết nối Bigquery có table muốn đẩy vào hệ thống
* Chọn Database Meta
* Chọn Sync (để cập nhật dữ liệu bảng mới nhất)
* Chọn Input Table
* Chọn Add

<figure><img src="https://3611282794-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMnAYUMyvVmco94ZeJ3T3%2Fuploads%2FSi7TyYZJccetF3FVnLc1%2Fimage.png?alt=media&amp;token=9b87f83f-a4ad-4dca-b3b1-7dee01a2c3e0" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3611282794-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMnAYUMyvVmco94ZeJ3T3%2Fuploads%2FNKxLWGOYKzJq1inhzsAW%2Fimage.png?alt=media&amp;token=e4605b28-168b-4391-9e89-d5825b9335fd" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3611282794-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMnAYUMyvVmco94ZeJ3T3%2Fuploads%2FNUnavvsFlI3DQH9xqigX%2Fimage.png?alt=media&amp;token=69e61cc3-d519-437e-a1c1-a5bdd902eed1" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3611282794-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMnAYUMyvVmco94ZeJ3T3%2Fuploads%2F62lvJQw9GRcSUSXhnaTt%2Fimage.png?alt=media&amp;token=02e8d1f3-a6e0-4ae3-acb0-bd3d05b05e3e" alt=""><figcaption></figcaption></figure>

| Trường thông tin | Mô tả                                                                 |
| ---------------- | --------------------------------------------------------------------- |
| Name             | Tên của kết nối                                                       |
| Object Model     | Chọn model để đẩy dữ liệu từ Big Query                                |
| Tag              | Đặt tag để phân biệt và tìm kiếm                                      |
| Description      | Thêm mô tả cho kết nối                                                |
| Status           | <ul><li>Active: Hoạt động</li><li>Inactive: Không hoạt động</li></ul> |

<figure><img src="https://3611282794-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMnAYUMyvVmco94ZeJ3T3%2Fuploads%2FotiI1yOtw2bc0TDGZJax%2Fimage.png?alt=media&amp;token=8b911f14-f250-493f-8edf-4d00f2ead7a7" alt=""><figcaption></figcaption></figure>

| Trường thông tin        | Mô tả                                                                      |
| ----------------------- | -------------------------------------------------------------------------- |
| Persist to Object Model | Model chọn để lưu trữ dữ liệu từ Bigquery                                  |
| BigQuery Query          | Viết câu lệnh truy vấn SQL để lấy ra các trường thông tin cần thiết        |
| Excute Query            | Thực thi câu lệnh truy vấn đã viết xem kết quả câu truy vấn đã viết ở trên |
| Lookup Columns          | Chọn table trên dùng để viết câu truy vấn ở trên                           |
| Mapping Fields          | Mapping dữ liệu của table và model                                         |

{% hint style="info" %}
Bắt buộc phải mapping cho trường Ref Id (\*) như một khóa chính để phân biệt với các dòng dữ liệu khác
{% endhint %}
