How I achieved 17x-400x performance improvement by switching from offset to cursor-based pagination in my mass notification server?


When your Firebase push notification server needs to process millions of user tokens, every query matters. I learned this the hard way when my offset-based pagination started taking 30+ seconds to process deep...