The compression algorithm that powers all Time-series Databases

Ғылым және технология

System Design for SDE-2 and above: arpitbhayani.me/masterclass
System Design for Beginners: arpitbhayani.me/sys-design
Redis Internals: arpitbhayani.me/redis
Build Your Own Redis / DNS / BitTorrent / SQLite - with CodeCrafters.
Sign up and get 40% off - app.codecrafters.io/join?via=...
In this video, I delved into time series databases and the importance of compression algorithms like Delta encoding. By storing data efficiently using Delta encoding and variable length integer encoding, significant space savings can be achieved without losing any data points. I demonstrated the impact of these techniques through practical examples and benchmarking. Leveraging such compression methods is crucial for optimizing storage and retrieval efficiency in time series databases. Exploring and implementing these concepts can greatly enhance one's engineering skills and understanding of database internals.
Recommended videos and playlists
If you liked this video, you will find the following videos and playlists helpful
System Design: • PostgreSQL connection ...
Designing Microservices: • Advantages of adopting...
Database Engineering: • How nested loop, hash,...
Concurrency In-depth: • How to write efficient...
Research paper dissections: • The Google File System...
Outage Dissections: • Dissecting GitHub Outa...
Hash Table Internals: • Internal Structure of ...
Bittorrent Internals: • Introduction to BitTor...
Things you will find amusing
Knowledge Base: arpitbhayani.me/knowledge-base
Bookshelf: arpitbhayani.me/bookshelf
Papershelf: arpitbhayani.me/papershelf
Other socials
I keep writing and sharing my practical experience and learnings every day, so if you resonate then follow along. I keep it no fluff.
LinkedIn: / arpitbhayani
Twitter: / arpit_bhayani
Weekly Newsletter: arpit.substack.com
Thank you for watching and supporting! it means a ton.
I am on a mission to bring out the best engineering stories from around the world and make you all fall in
love with engineering. If you resonate with this then follow along, I always keep it no-fluff.

Пікірлер: 8

  • @inowatchvideos
    @inowatchvideos5 ай бұрын

    Neat, your previous video on how databases store integers with variable length encoding was also cool.

  • @patelhardikr
    @patelhardikr5 ай бұрын

    thank you for detailed walkthrough, Arpit! Just curious - did you get a chance to compare the extra processing time needed to reconstruct the original values? It would be good to know actual space/time trade-off that we gain/lose when employing varint+delta compression.

  • @adityasheth
    @adityasheth5 ай бұрын

    Interesting idea of storing delta instead of actual values. Does the time series db applications run this compression method over a sample and figures out whether it will save memory and then use this method, or it might be used by default?

  • @0xskadoosh
    @0xskadoosh5 ай бұрын

    But what about retrieval of data, rather than O(1) it would take O(n) to get the data. And do they use checkpoints in between to reduce the number of pages need to load in memory for this retrieval?

  • @AsliEngineering

    @AsliEngineering

    5 ай бұрын

    Yes but you almost never look at an individual data point in TS data, you mainly use it for statistical analysis.

  • @xiaoshen194
    @xiaoshen1945 ай бұрын

    Can engineering students enroll in the course?

  • @AsliEngineering

    @AsliEngineering

    5 ай бұрын

    Beginners course, yes; but not the masterclass. Masterclass is pretty dense and requires some prior experience.

  • @JuliaT522
    @JuliaT5222 ай бұрын

    Thanks good topic, hard to understand the accent

Келесі