Firebase:只读&激活非实时模式以提高浏览器性能 [英] Firebase : Read-only & non-realtime mode activated to improve browser performance
问题描述
只读&非实时模式激活以提高浏览器性能
消息弹出在我的项目中,我也无法删除节点
另外我读了 https://groups.google.com/forum/#!topic/firebase-talk/qLxZCI8i47s
其中指出:
如果您的Firebase中有很多节点(例如数千个),则需要为每个节点创建一个新元素,而现代浏览器仅限于多少您可以添加到页面的DOM元素
它说:
要解决此问题,请不要将您的Firebase信息中心加载到您的Firebase的根目录,而是将其加载到层次结构中的较低位置
我不明白这是什么意思
如何返回我的Realtime Dashboard?
当检测到从数据库中下载了太多节点时,Firebase控制台将停止使用实时模式并切换到只读模式。
在这种模式下,浏览器只需要很少的工作,所以浏览器更可能保持性能。
要回到实时模式,您必须具有较少节点的位置。所以说你开始在根目录加载数据库,这意味着在数据树顶部的伪地址栏会说:
https://< your-project> .firebaseio.com /
然后将显示项目列表。现在点击伪地址栏中的网址,并将其更改为:
https://< your-project> ;. firebaseio.com/<one-of-your-keys>
然后点击输入。数据树将只用其中一个键
和下一个节点重新加载,并且可能会再次切换到实时模式。
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
Also I read this https://groups.google.com/forum/#!topic/firebase-talk/qLxZCI8i47s
Which states :
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
It says:
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
I do not get what it means
How do I get back to my Realtime Dashboard?
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/
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>
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:只读&激活非实时模式以提高浏览器性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!