03 - Database Storage I (CMU Databases Systems / Fall 2019)

Поделиться
HTML-код
  • Опубликовано: 4 фев 2025

Комментарии • 79

  • @lureenster
    @lureenster 4 года назад +69

    This instructor is so cool. He makes database course fun to learn.

    • @saif0316
      @saif0316 3 года назад +1

      I love how he curses, and has a DJ! 🤣

    • @saif0316
      @saif0316 3 года назад +1

      So much more down to earth than I'm used to.

  • @Max-my6rk
    @Max-my6rk 5 лет назад +14

    This is the ideal db lectures every school should offer but not every student deserves... only in CMU... just awesome.. Prof. Pavlo, knows db, luvs db...

    • @jaffreyjoy
      @jaffreyjoy 4 года назад +1

      Not every student deserves???

    • @Max-my6rk
      @Max-my6rk 3 года назад +2

      @@jaffreyjoy cuz u have to get admitted by school like CMU first.. most of their students have been working hard on the admission. Yep not everyone deserves.

  • @parimi001
    @parimi001 4 года назад +3

    I have been DBA for years and I did not know these intimate details. Great thanks to AP. You are simply awesome.

  • @КириллПальцев-ю1о
    @КириллПальцев-ю1о 5 лет назад +12

    This course is awesome! This guy is like sensei of database systems.

  • @florianwicher
    @florianwicher 3 года назад +1

    Amazing. I was reading a totally different db book and wondering why we weren't using virtual memory. This is exactly the answer I needed!

  • @josephshermill199
    @josephshermill199 3 года назад

    1:06: In one statement from Oracle: insert into r (select 101,'aaa' from dual union select 102,'bbb' from dual union select 103,'ccc' from dual)

  • @barhoombinballin
    @barhoombinballin 4 года назад +2

    loll this class is sick. I wish my profs were this cool.

  • @forys6163
    @forys6163 3 года назад +2

    This course is so good. Andy is awesome

  • @patrykuchman5388
    @patrykuchman5388 3 года назад +3

    1:04:48 - I'm not sure I understand one thing. If the compaction caused the slot number to change for a tuple "ccc", that means that the upper parts of the system (e.g. indexes) HAVE TO get notified that the way they used to refer to that tuple (page:74608, slot:2) is not correct anymore.

    • @pratheep4035
      @pratheep4035 3 года назад

      I exactly had this question and scrolling down comments to find that I got it right .

  • @jaigohil4963
    @jaigohil4963 4 года назад +1

    Invaluable content!! I have been looking for this for a long time

  • @manhhiep1627
    @manhhiep1627 4 года назад +4

    best db course

  • @hasan0770816268
    @hasan0770816268 3 года назад +4

    notes to self:
    we have a page directory to help find exact mem location of a page
    and we inside each page we have a header + slot array that help locate the mem location of a tuple

  • @denys2388
    @denys2388 3 года назад

    Love this song at the end of each lecture.

  • @warrenchengdoteth7369
    @warrenchengdoteth7369 4 года назад +8

    kudos to the video auditor that took the time to beep the sh*t out of the video

  • @federicopueblalarregle5791
    @federicopueblalarregle5791 2 года назад

    For a moment I thought that slots (or offset/slot) part of the record identifier never changed and that the only thing that changed was what that slot pointed to. Like, in case tuplets get re-organized/de-fragmented, slots would update their pointers.
    But it seems, based on this lecture, that slots that the system exposes as part of the record identifier can change.

  • @samirmagdey6814
    @samirmagdey6814 Год назад +1

    What is the book thay use in this course?

  • @josephshermill199
    @josephshermill199 3 года назад

    From within Oracle 'set history on' gets you command recall.

  • @xiaolongj8851
    @xiaolongj8851 4 года назад +1

    Thanks for sharing this great course.

  • @KonstantinScheglov
    @KonstantinScheglov 2 года назад

    You said that rowid(s) are useful because we don't have to update indexes, but when we inserted into SQL Server, and it changed ids, does it mean that it would have to update indexes as well? Wouldn't it be better to keep ids as is, even if we had to move tuples inside the page (to compact data), and fill the empty slot in the middle with a new tuple using the address after existing tuples? Or do slots have to have strictly increasing offsets for data at the page? Well, I guess, the answer is "it depends" 🙂

  • @DJ-bo4pz
    @DJ-bo4pz 5 лет назад +12

    He is just awesome!!. Can you please upload the lectures un-beeped? (may be by age-restricting them) The beeps are not good! Thanks a lot Andy!!

  • @chimiwangmo9608
    @chimiwangmo9608 4 года назад

    Thank you so much for sharing this invaluable content.

  • @gamingparlour1732
    @gamingparlour1732 Год назад

    Amazing video

  • @aadimanchekar1032
    @aadimanchekar1032 3 года назад

    can someone explain "WHY NOT USE THE OS?" part 18:42 can someone demonstrate with an example?

    • @andypavlo
      @andypavlo 3 года назад

      See this paper: db.cs.cmu.edu/mmap-cidr2022/

  • @dontwannabefound
    @dontwannabefound 2 года назад

    is this still relevant? i thought everything is stored in memory nowadays with spark etc

  • @WilberTorres
    @WilberTorres 2 года назад

    Can a tuple be larger than a page size and be splitted into two pages

  • @xinxunzeng9639
    @xinxunzeng9639 3 года назад

    讲得很好,许多地方和同学一起讨论后更清楚了

  • @chenyaolou7191
    @chenyaolou7191 5 лет назад +3

    The best part starts at 22:08

    • @rnbguy
      @rnbguy 5 лет назад +3

      Here lies one who hated mmap! xD

  • @thomassun3046
    @thomassun3046 2 года назад

    Does the page have any relation with the page terminology in Operating System page?

  • @csours
    @csours 3 года назад +1

    TDD and CI/CD for DBs/Data is the neglected frontier.

  • @vincentc1784
    @vincentc1784 3 года назад

    This is an amazing class

  • @llight1635
    @llight1635 Год назад

    great course!

  • @BlueMelon555
    @BlueMelon555 2 года назад

    I don't understand why we need the slotted pages. If a page is full and we do something like update all the tuples so that they are a bit bigger, won't we then have too much data to store in the page, and we'll need to deal with invalid references anyway? Or can the size of tuples not change? Or do we need to deal with invalid references in that case but we just prefer not to do that all the time for efficiency reasons, and the slots just help us do it less?

    • @pcp_greats
      @pcp_greats 2 года назад

      i think it might be the 3rd one. Not sure though. Have to see next lectures to figure this out.

  • @randomperson1048
    @randomperson1048 2 года назад

    Bro is a straight g

  • @春华秋实-f8o
    @春华秋实-f8o 5 лет назад +3

    Like the begining~

  • @amoghrijal2846
    @amoghrijal2846 3 года назад

    is doing "vaccum full" on prod databases from time to time a good idea? since it appears to save space

    • @andypavlo
      @andypavlo 3 года назад +1

      Vacuum full locks tables when it rewrites them, so you need to be careful when you run it.

  • @amoghrijal2846
    @amoghrijal2846 3 года назад

    does this mean that maximum row size can never be greater than 16kb ? Im using postgres at work and i think some rows easily exceed 16kb (with jsonb data).

    • @andypavlo
      @andypavlo 3 года назад +1

      No. For Postgres, they store larger values in separate TOAST storage tables.

  • @khammassihoussemeddine1193
    @khammassihoussemeddine1193 3 года назад

    a very important question
    does this course feels like it's in depth course ?
    i mean does software developers that aren't gonna specialize in DB administration have to know all of this stuffs like data storage in DBs ?

    • @navjotsingh2251
      @navjotsingh2251 3 года назад

      You should have a good idea how to use databases, but if you are not going to specialise in this then maybe you don’t need to know everything.

  • @harishgontu9285
    @harishgontu9285 4 года назад

    How does one create record id's for external tables ?

  • @NoOne-zs2fj
    @NoOne-zs2fj 2 года назад

    how to get the H.W Q's please ? thanks for the best instructor.

    • @andypavlo
      @andypavlo 2 года назад

      15445.courses.cs.cmu.edu/fall2021/assignments.html

    • @saifmohamed1776
      @saifmohamed1776 2 года назад

      did you get it yet ?

    • @esraamohamed6539
      @esraamohamed6539 2 года назад

      @@saifmohamed1776 did anyone get it?

  • @anubhavujjawal1661
    @anubhavujjawal1661 4 года назад

    So does the OS uses virtual memory for everything except the i/o when running the database server? Won't that be a bottleneck?

    • @pcp_greats
      @pcp_greats 2 года назад

      Can you elaborate with an example?

  • @qiuyu8290
    @qiuyu8290 5 лет назад +2

    So Andy is also called Andrew ...

  • @Jay-lj2bv
    @Jay-lj2bv 3 года назад

    what is the difference between files and pages?

    • @VioletGiraffe
      @VioletGiraffe 2 года назад

      A page is a small chunk of data inside a file. Like a cluster. It's a unit of storage.

  • @stabgan
    @stabgan 3 года назад

    This was so cool

  • @d3c0d3junky
    @d3c0d3junky 2 года назад +1

    Who is Tim Kraska? And how did he betray you?

  • @yba_yt
    @yba_yt 3 года назад

    THB I don’t really like the fact that the beep muting the original words, which does interrupt and lose the original feel of the course. I think we should honor what the professor said unchanged.

  • @mrinvestor2627
    @mrinvestor2627 3 года назад +4

    1:00:00 Tim Kraska betrayed me.. lol

  • @bingxuhu5218
    @bingxuhu5218 3 года назад

    This course require me to have some SQL language basis.

  • @WilliamFears
    @WilliamFears 3 года назад

    Thanks so much for telling your students you hate Trump... Super helpful!!!!

  • @hassansalim7488
    @hassansalim7488 5 лет назад +2

    Will teach LOG-STRUCTURED FILE ORGANIZATION in next lecture

  • @CppExpedition
    @CppExpedition 11 месяцев назад

    you are talking way too fast, or i think i'm too slow. Excellent course!

  • @peijunwu7354
    @peijunwu7354 2 года назад

    50:00

  • @pb25193
    @pb25193 4 года назад +2

    Did he just say shit in a lecture and bleep it out?

  • @ih4722
    @ih4722 4 года назад

    23:58

  • @karthik._.chandra
    @karthik._.chandra 3 года назад

    58:40

  • @dn5426
    @dn5426 3 года назад +1

    why are you bleeping the shit out of andrew?

  • @elaina7093
    @elaina7093 2 года назад +1

    it would be better to just leave the vid as what it was, right?
    he thought it was okay to use profanity during live lecture (school seems okay with him) and then dozens of youtubers use profanity here as well ....
    personally i think it would be better to not mute it.. the beeeeeeeeep sound really hits my eardrum & getting annoyed of that

  • @garfieldnate
    @garfieldnate 4 года назад +4

    I hope the part about not talking to his family because of a voting choice was a joke :(. I know politics are important in America, but your family should be even more important.

  • @amorfati7
    @amorfati7 2 года назад

    course dj...🤣

  • @codhjosa5264
    @codhjosa5264 2 года назад +1

    fuck he talks so fast