For some reason, every time a dump was created or deleted, the backend was being queried for ALL dumps. This causes a complete refresh in the DOM, causing slow load times and high internet usage. Also drains the battery a ton, due to ~4mb download and upload every time page is refreshed.
I have changed everything to local object manipulation, which is much more sensible. Objects will now be spliced and upshifted when removing/adding to object array. This will solve the DOM reload problem, will remove the un-discovered bug of high load times and alleviate extreme backend load/crashes.
In addition, the app now doesn’t do backwards array sorting and reverse index search. Uses indexOf(dump) which limits the backwards thinking we have to do. This makes more sense.
For some reason, every time a dump was created or deleted, the backend was being queried for ALL dumps. This causes a complete refresh in the DOM, causing slow load times and high internet usage. Also drains the battery a ton, due to ~4mb download and upload every time page is refreshed.
I have changed everything to local object manipulation, which is much more sensible. Objects will now be spliced and upshifted when removing/adding to object array. This will solve the DOM reload problem, will remove the un-discovered bug of high load times and alleviate extreme backend load/crashes.
In addition, the app now doesn’t do backwards array sorting and reverse index search. Uses indexOf(dump) which limits the backwards thinking we have to do. This makes more sense.
Closes #32
Look at how fast adding links is now:![untitled recording 6](https://cloud.githubusercontent.com/assets/7751154/9864764/1fab35b6-5b02-11e5-891e-518592a7c92f.gif)