BLUE
Profile banner
RB
Rituraj Borpujari
@riturajborpujari.bsky.social
Coder | Problem Solver | Technology Enthusiast I write at riturajborpujari.com/posts
4 followers23 following28 posts

Testing out custom JSON stringifier for Nodejs. Got it to run faster than NodeJs 20 (LTS) one!!! NodeJs 22 is still 113 ms faster in total of 1000,000 operations riturajborpujari.com/posts/compet...

0

trying to remove docker storage driver data on /var/lib/docker/overlay2 but I accidentally typed in rm -rf /var/lib/. with sudo!!! Reinstalling flatpak applications again now!!!

0

Sometimes the idea about a dev project so vague in everybody's mind that people can't discuss it without something in working. Guess that's why they build POCs Experienced this first hand today. Was confused for a demo of a product feature, until I got to know everyone else is confused as well.

0

Okay maybe I'm overthinking here, why not just use an aggregation query that hydrates child records by using $lookup? That turned out to be faster as the calls to mongodb were few Also, updated the $projection clause to select only the required fields. Result: 200 hydrated parents in 2s!!!

0

So the method queried the parents at one go first and then collected all the child IDs into an array and then make batched calls to find those child records. Tried changing the find logic the other way around, search for children by using `parent: <PARENT_ID>` for all parents. That is faster

1

An API that fetches a tree of Parent Child objects from a single mongodb collection needs improvement. The response times are really bad, fetching 150 parent with around 20 hydrated child records takes around a min!!! Need to dig in!

1

How do you start off with a project? A developer myself, I like to start with understanding different use cases and the user personas before anything else. A software is for the users and how will they use them matters more than the internals or the architecture of it.

0

This is so cool!

0
Profile banner
RB
Rituraj Borpujari
@riturajborpujari.bsky.social
Coder | Problem Solver | Technology Enthusiast I write at riturajborpujari.com/posts
4 followers23 following28 posts