Back to Browse

Avoid premature Database Sharding

17.4K views
Apr 3, 2021
20:28

Someone asked a question on Twitter and I thought it's interesting to answer it here in the show. I have a 2 million row table used in my CRUD python app, I’m worried that as the table grows my inserts will slow down, should I consider sharding my database or partition the table? thank you * inserts are fast, queries are slow 0:00 * inserts can be slow 3:00 * indexes/stored procedures * selects, updates and deletes can be slow 12:00 * add proper indexes. * simplicity wins, premature optimization is bad 15:20 * crazy things that people say as microservices day 1 scares me 🎙️Listen to the Backend Engineering Podcast https://husseinnasser.com/podcast 🏭 Backend Engineering Videos https://backend.husseinnasser.com 💾 Database Engineering Videos https://www.youtube.com/playlist?list=PLQnljOFTspQXjD0HOzN7P2tgzu7scWpl2 🏰 Load Balancing and Proxies Videos https://www.youtube.com/playlist?list=PLQnljOFTspQVMeBmWI2AhxULWEeo7AaMC 🏛️ Software Archtiecture Videos https://www.youtube.com/playlist?list=PLQnljOFTspQXNP6mQchJVP3S-3oKGEuw9 📩 Messaging Systems https://www.youtube.com/playlist?list=PLQnljOFTspQVcumYRWE2w9kVxxIXy_AMo Become a Member https://www.youtube.com/channel/UC_ML5xP23TOWKUcc-oAE_Eg/join Support me on PayPal https://bit.ly/33ENps4 Stay Awesome, Hussein

Download

1 formats

Video Formats

360pmp463.4 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Avoid premature Database Sharding | NatokHD