即使在数据库未使用时,Firebase 数据库带宽使用量也会迅速增长 [英] Firebase database bandwidth usage growing rapidly even when when the database is not in use

查看:27
本文介绍了即使在数据库未使用时,Firebase 数据库带宽使用量也会迅速增长的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新:经过 9 个月的来回电子邮件(超过 40 封电子邮件),Google 承认他们发现了一些可能导致高带宽使用的错误,但带宽使用是还是太高了.解决这个问题似乎不是 Google/Firebase 的优先事项(他们花了 1.5 个月的时间来回复最后一封电子邮件).鉴于类似的投诉,例如:https://news.ycombinator.com/item?id=14356409 以及其他许多团队/开发人员,希望有一天情况会有所改善.

Update: After 9 months of back-and-forth emails (over 40 emails), Google has acknowledged that they have found some bugs that may be responsible for high bandwidth usage, but bandwidth usage is still too high. Resolving this issue does no appear to be a priority for Google/Firebase (it took them 1.5 months to respond to the last email). In light of similar complaints such as: https://news.ycombinator.com/item?id=14356409, and many others, across a wide range of teams/developers, hopefully the situation will improve some day.

我刚刚开始一个 Firebase 项目,还没有从任何客户端访问数据库.我只在数据库中创建了一个很小的测试键值对(使用控制台),它使用 23 B 的数据存储.令人惊讶的是,控制台显示我已经使用了 215.9 KB(包括我根本没有接触 Firebase 的时候).即使我没有使用 Firebase 或什至没有刷新控制台中的数据选项卡,这个数字仍然每小时都在增长!

I'm just starting a Firebase project and have not accessed the database from any client. I have only created a single tiny test key-value pair in the database (using the console), which uses 23 B of data storage. Surprisingly, the console shows that I have used 215.9 KB (including when I was not touching Firebase at all). This number continues to grow every hour even though I am not using Firebase or even refreshing the data tab in the console!

这是控制台带宽使用情况图表的屏幕截图:Firebase 控制台带宽使用截图

Here is a screenshot of the console bandwidth usage chart: Firebase console bandwidth usage screenshot

其他人似乎也遇到了同样的问题,但 Firebase/Google 没有回应.这是怎么回事?任何帮助将不胜感激.

Others appear to be having the same problem, but there has been no response from Firebase/Google. What's going on? Any help would be greatly appreciated.

推荐答案

使用图表需要时间来更新.您可能会看到几分钟到几小时前的带宽.

The usage chart takes time to update. You may be seeing bandwidth from a few minutes to a few hours ago.

此外,这让我想起了旧的 Google Analytics 引用问题,firebase 的默认规则如下所示:

Also, this reminds me of the old Google Analytics referrer issue, the default rules for firebase look something like this:

.read = true;
.write if auth != null; 

这意味着任何地方的任何人都可以从您的数据库中读取数据,并且任何经过身份验证(甚至匿名)的人都可以写入该数据库.有可能因为它是一个支持 json 的 noSQL 数据库,所以它可能只是爬虫,相当于 Google Analytics 推荐垃圾邮件.

This means that anyone anywhere can read from your database and that anyone authenticated(even anonymously) can write to it. It is possible since it is a noSQL database with json support that it is probably just crawlers which are the equivalent of Google Analytics referral spam.

这篇关于即使在数据库未使用时,Firebase 数据库带宽使用量也会迅速增长的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆