/notes-backend-db-engineering

Code for https://www.udemy.com/course/database-engines-crash-course/

Primary LanguagePythonApache License 2.0Apache-2.0

Intro to Database Engineering by hnasr

Notes from https://www.udemy.com/course/database-engines-crash-course/

Database Learnings

  • Update your database statistics often or your SQL queries will suffer #shorts
    • Suppose your table have 10 rows and an operation does 1M entries, the next subsequent queries will do full table scan
    • Update table statistics instantly to let the table know new major operations done
    • https://www.youtube.com/watch?v=QClK86lZ0Vo
  • Always release the connection pool after a transcation!
  • Never use uuid as Primary Key

Node.js

  • fetch
    • Keeps the body in ReadleStream
    • Nevers parses the body which is quicker as I may be only interested in headers, status_code, etc
    • If the body is too large and we require to see only limited body then we can read in it stream fashion
    • https://www.youtube.com/watch?v=yk7oeFZ8iPE