firebase - 同时从 firebase 以外的来源将数据保存在 bigquery 中

标签 firebase google-bigquery

我们正在尝试根据我们的应用程序记录一些事件。有两种类型的事件,

  1. 客户端事件:由使用 firebase SDK 的 Android 应用程序记录,并由 firebase 保存到 bigquery
  2. 服务器端事件:我们使用 bigquery 的 go 客户端记录它们

现在,Firebase 将当天的事件存储到 events_intraday_$date 表中,然后将该表刷新到分区表 events_$date 中。

因此,我还将当天的事件记录到 events_intraday_$date 表中。

The events got logged successfully into the table but got deleted the next day when the events_intraday_$date table is flushed into events_$date table.

我无法理解这是怎么发生的。

最佳答案

看起来这是intended behaviour :

Within each dataset, a table is imported for each day of export. Daily tables have the format "ga_sessions_YYYYMMDD".

Intraday data is imported approximately three times a day. Intraday tables have the format "ga_sessions_intraday_YYYYMMDD". During the same day, each import of intraday data overwrites the previous import in the same table.

When the daily import is complete, the intraday table from the previous day is deleted. For the current day, until the first intraday import, there is no intraday table. If an intraday-table write fails, then the previous day's intraday table is preserved.

Data for the current day is not final until the daily import is complete. You may notice differences between intraday and daily data based on active user sessions that cross the time boundary of last intraday import.

关于firebase - 同时从 firebase 以外的来源将数据保存在 bigquery 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56035041/

相关文章:

swift - 主线程搞乱了排序

sql - 匹配 SQL/BigQuery 中相同索引的数组元素

sql - 每小时和每分钟的 session 数 : SQL - BigQuery/GA360

database - 如何将特定日期格式加载到 BigQuery 中

java - 如何让我的程序等到任务完成后再继续?

ios - Firebase,获得具有特定值(value)的 child 的直接 parent

firebase - 为什么此快照两次将每个文档获取两次? flutter

google-bigquery - 在 BigQuery 网页界面中识别分区表

google-analytics - google 如何在 Bigquery/Google-Analytics 中设置 fullVisitorId/Client ID?

android - 如何在 Android 中使用 Firebase 存储用户数据?