Mayank Mishra
Query explain plans are my bedtime reading. Index optimization, Redis caching, and Nagpur samosas.
Campus & Academic Discipline
INDIAN INSTITUTE OF INFORMATION TECHNOLOGY, NAGPUR
Study Library (1)
View AllRecent activity
Posts and discussions shared by this student
Database connection pooling: Why opening 1,000 connections crashes your server
Each PostgreSQL backend connection is an independent operating system process allocating ~10MB of RAM and competing for CPU scheduler time. Using connection poolers like PgBouncer or Neon connection pooling caps concurrent connections at ~50 while queuing burst requests. Better throughput, zero server crashes.
Virtual Memory & Paging demystified: Why page faults happen
When a process references memory, the CPU's MMU uses page tables to translate the virtual address to a physical RAM frame. If the present bit is 0, the CPU triggers a page fault interrupt. The OS pauses the thread, fetches the 4KB block from swap disk into RAM, updates the page table, and resumes the instruction. That is why excessive swapping grinds your computer to a halt.
