Started by Yuki, 5 years and 5 months ago
0 Members and 1 Guest are viewing this topic.
Quote from: _iPhoenix_ on 5 years and 3 months agoI am able to shrink down the size of the database by a ton.Basically, we have a dictionary where the information for each type of block is stored. In stead of storing data for each individual block, we store it once, and use it many times later.Here's an example:We store the data for each type of block in the info branch. We would want to download this branch to a local variable, because we will be using it a lot. We also want to have an event listener listening for changes, and it would update the local variable accordingly.Using some super cheaty methods, I downloaded your entire database and did some simple find and replace actions and got it down to roughly 1/4 of the original size.When you push an array to firebase, it turns the array indices into keys. This is awesome, because a bunch of 1 or 2 digit keys is much smaller than a bunch of 16 digit keys. All in all, I got the data down to 1/16 of the original size (not all of the methods were shown in the picture)
Page created in 0.108 seconds with 36 queries.