Firebase : 只读 &激活非实时模式以提高浏览器性能 [英] Firebase : Read-only & non-realtime mode activated to improve browser performance

查看:17
本文介绍了Firebase : 只读 &激活非实时模式以提高浏览器性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只读 &激活非实时模式以提高浏览器性能

Read-only & non-realtime mode activated to improve browser performance

我的项目中弹出消息,我也无法删除节点

Message pops up in my project and I'm unable to delete the nodes as well

我也读过这个https://groups.google.com/论坛/#!topic/firebase-talk/qLxZCI8i47s

哪个状态:

如果您的 Firebase 中有很多节点(比如数千个),我们需要为每个节点创建一个新元素,而现代浏览器对可以添加到页面的 DOM 元素数量有限制

If you have a lot of nodes in your Firebase (say thousands), we need to create a new element for each node and modern browsers simply have limitations of how many DOM elements you can add to a page

它说:

要解决此问题,请不要在 Firebase 的根目录加载 Firebase Dashboard,而是将其加载到层次结构的较低位置

To resolve this problem, don't load your Firebase Dashboard at the root of your Firebase, but instead load it lower down in the hierarchy

没看懂什么意思

如何返回我的实时仪表板?

How do I get back to my Realtime Dashboard?

推荐答案

当检测到从您的数据库下载过多节点时,Firebase 控制台会停止使用实时模式并切换到只读模式.在这种模式下,浏览器需要的工作较少,因此浏览器更有可能保持性能.

When it detects that it's downloading too many nodes from your database, the Firebase Console stops using real-time mode and switches to read-only mode. In this mode it requires less work from the browser, so it is more likely that the browser will stay performant.

要返回实时模式,您必须前往节点较少的位置.所以说你从根开始加载数据库,这意味着数据树顶部的伪地址栏"会说:

To get back to realtime mode, you have to go to a location that has fewer nodes. So say that you start loading the database at the root, that means that "pseudo address bar" at the top of the data tree will say:

https://<your-project>.firebaseio.com/

然后将显示项目列表.现在点击该伪地址栏中的 URL 并将其更改为:

And then will show the list of items. Now click on the URL in that pseudo address bar and change it to:

https://<your-project>.firebaseio.com/<one-of-your-keys>

然后点击回车.数据树将仅使用 one-of-your-keys 和向下的节点重新加载,并且可能会再次切换到实时模式.

And hit enter. The data tree will reload with just the node from one-of-your-keys and down and will likely switch to realtime mode again.

这篇关于Firebase : 只读 &amp;激活非实时模式以提高浏览器性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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