Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 994
Veeresh Charantimath Avatar asked Jul 29 '16 05:07

Veeresh Charantimath


2 Answers

If you want to delete a high level node when this is activated, I recommend doing this.

Open up a text editor and type in { }. Save this file as "blankJSON.json".

Go to high level node you want deleted and select it, once it opens up and shows you all the nodes that need to be removed, select the three bars at the top right and select "Import JSON", (It would be safe to first "Export JSON" If you don't have backups, in case you make a mistake here). Import the JSON file we created earlier titled "blankJSON".

This will delete all of the data inside.

Once again, I highly suggest you make a backup before doing this, It's extremely easy to make a backup and also it is much easier than you would think to upload this blankJSON to the wrong node and then erasing a bunch of important data.

like image 135
Dallas Avatar answered Sep 24 '22 01:09

Dallas


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.

like image 39
Frank van Puffelen Avatar answered Sep 23 '22 01:09

Frank van Puffelen