bobby....@gmail.com
unread,Apr 2, 2019, 10:04:55 AM4/2/19Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Firebase Google Group
Hi,
Read you article on deleting large chunk of data via Firebase command want to know difference between
Updating a node to null
and running your new command below.
firebase database:remove /path/to/delete
I wanted to know this because I have written a housekeeping utility to to delete older data everyday. My node data structure is like below,
Articles
|_____data
|____yyyymmdd
|____pushids
|____pushids
.....
|_____statistics
|_____deleteFrom:yyyymmdd
|_____retentionDays: 60
So basically my nodejs program will read the statistics node and compute to delete data older than 60days. Retention days are different for each nodes. So for example, deletion will be like below for list of dates, I execute this via update().
Articles/data/20190115 = null
Eventually I will move this statistics housekeeping node separately.
Are there any performance advantage using the firebase command delete or does it do anything different.
defaultWriteSizeLimit
In my application, I move data regularly from local mySQL to firebase, I do that via nodejs admin service account. So does this new parameter affect if a program run admin service account as well ? Elapsed time for my updates are surely more than a minute. So do you recommend me to execute this command
firebase database:settings:set defaultWriteSizeLimit unlimited --instance <database-name>
Can you please let me know your thoughts on above two.
Also since you have brought delete. It would be good likewise if you bring a mechanism to load data to firebase. Currently I am doing it via a nodejs program(transform data to from SQL data to firebase JSON format then set/update). It would be easy if I do it via a firebase command like
firebase database:load path/to/load <JSON filename>
Thanks,
Sushanth bobby