Astronaut with laptop Astronaut
Upgraded WhatsApp-Stats

Upgraded WhatsApp-Stats

2 min read

🐢 Performance problems

Sooo I finally got around to upgrading the WhatsApp-Stats page so that it’s more performant, and maintainable, while storing data in IndexDB. The process itself was quite straightforeward, so I decided it was time to also add some cool features. The main goal was to allow for lager chats to be uploaded, and to not storre all the data in localstorage. Doing this while keeping performance relatively “good”, and in general restructuring the code away from my “one component” solution which was like 1.5k lines of code.

✨ The new features

⚡ Result

The result should be a page that loads faster and better, with a JS layer which does not need to store that much information, and instead stores the information in IndexDB. The only problem I had was figuring out how dexie works with indices and multi element indices - to optimize queries. But I think I got it right, and the performance is quite good. You can check it out under tools/whatsapp-stats.

🛠️ TODO

🏷️ Other stuff

I also did some work on finally getting the tags to play nicely on mobile (for the blog and the logs) and I’m very happy with the solution I have now

Last but not least, I also have to finishe the blog with the title “World War what now” in which I list a bunch of shit which is happening right now, and that I’m not feeling good about our chaces for WW3

And that’s it for this log