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

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ม.ค. 2025

ความคิดเห็น •

  • @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.

  • @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)

  • @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 .

  • @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!

  • @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

  • @jaigohil4963
    @jaigohil4963 4 ปีที่แล้ว +1

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

  • @warrenchengdoteth7369
    @warrenchengdoteth7369 4 ปีที่แล้ว +8

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

  • @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

  • @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.

  • @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!!

  • @manhhiep1627
    @manhhiep1627 4 ปีที่แล้ว +4

    best db course

  • @samirmagdey6814
    @samirmagdey6814 ปีที่แล้ว +1

    What is the book thay use in this 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" 🙂

  • @josephshermill199
    @josephshermill199 3 ปีที่แล้ว

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

  • @aadimanchekar1032
    @aadimanchekar1032 2 ปีที่แล้ว

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

    • @andypavlo
      @andypavlo 2 ปีที่แล้ว

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

  • @chenyaolou7191
    @chenyaolou7191 5 ปีที่แล้ว +3

    The best part starts at 22:08

    • @rnbguy
      @rnbguy 5 ปีที่แล้ว +3

      Here lies one who hated mmap! xD

  • @denys2388
    @denys2388 3 ปีที่แล้ว

    Love this song at the end of each lecture.

  • @chimiwangmo9608
    @chimiwangmo9608 4 ปีที่แล้ว

    Thank you so much for sharing this invaluable content.

  • @dontwannabefound
    @dontwannabefound ปีที่แล้ว

    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

  • @thomassun3046
    @thomassun3046 2 ปีที่แล้ว

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

  • @xiaolongj8851
    @xiaolongj8851 4 ปีที่แล้ว +1

    Thanks for sharing this great course.

  • @csours
    @csours 3 ปีที่แล้ว +1

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

  • @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?

    • @hemantsinghjadon849
      @hemantsinghjadon849 2 ปีที่แล้ว

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

  • @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.

  • @qiuyu8290
    @qiuyu8290 5 ปีที่แล้ว +2

    So Andy is also called Andrew ...

  • @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.

  • @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.

  • @xinxunzeng9639
    @xinxunzeng9639 3 ปีที่แล้ว

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

  • @harishgontu9285
    @harishgontu9285 4 ปีที่แล้ว

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

  • @anubhavujjawal1661
    @anubhavujjawal1661 3 ปีที่แล้ว

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

  • @vincentc1784
    @vincentc1784 3 ปีที่แล้ว

    This is an amazing class

  • @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.

  • @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?

  • @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.

  • @hassansalim7488
    @hassansalim7488 5 ปีที่แล้ว +2

    Will teach LOG-STRUCTURED FILE ORGANIZATION in next lecture

  • @mrinvestor2627
    @mrinvestor2627 3 ปีที่แล้ว +4

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

  • @d3c0d3junky
    @d3c0d3junky 2 ปีที่แล้ว +1

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

  • @randomperson1048
    @randomperson1048 2 ปีที่แล้ว

    Bro is a straight g

  • @gamingparlour1732
    @gamingparlour1732 ปีที่แล้ว

    Amazing video

  • @bingxuhu5218
    @bingxuhu5218 3 ปีที่แล้ว

    This course require me to have some SQL language basis.

  • @春华秋实-f8o
    @春华秋实-f8o 5 ปีที่แล้ว +3

    Like the begining~

  • @llight1635
    @llight1635 ปีที่แล้ว

    great course!

  • @peijunwu7354
    @peijunwu7354 2 ปีที่แล้ว

    50:00

  • @WilliamFears
    @WilliamFears 3 ปีที่แล้ว

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

  • @CppExpedition
    @CppExpedition 10 หลายเดือนก่อน

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

  • @karthik._.chandra
    @karthik._.chandra 3 ปีที่แล้ว

    58:40

  • @stabgan
    @stabgan 3 ปีที่แล้ว

    This was so cool

  • @ih4722
    @ih4722 4 ปีที่แล้ว

    23:58

  • @pb25193
    @pb25193 4 ปีที่แล้ว +2

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

  • @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.

  • @dn5426
    @dn5426 3 ปีที่แล้ว +1

    why are you bleeping the shit out of andrew?

  • @amorfati7
    @amorfati7 2 ปีที่แล้ว

    course dj...🤣

  • @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

  • @codhjosa5264
    @codhjosa5264 2 ปีที่แล้ว +1

    fuck he talks so fast