SAUsually there is a setting called index_granularity, which tells the index how many keys it should save. So for example if the index_granularity is 5000, it will save 1 key every 5000 keys and so on. I don't there is anything to optimize here tbh but I am not 100% sure.Reply·Article·Oct 2, 2024·Designing Data Intensive Applications: Ch3. Storage and Retrieval | Part 1
SAI don’t see how they are contradicting? The entire table is in the clustered index and it’s stored as one row per leaf. Both statements are correct. And yes, for an innodb engine, there are no disk pointers. Did that answer your concern?Reply·Article·Jul 3, 2024·High Performance MySQL [Ch.5: Indexing for High Performance]
SAIf we have a composite index like this idx(a,b,c). A leftmost prefix is a or ab or abc and so on. Any query pattern than can be covered by a leftmost prefix of the index can in fact utility this index. Is that more clear?Reply·Article·May 23, 2024·High Performance MySQL [Ch.5: Indexing for High Performance]
SAGood point. You’re correct, but I think the author’s definition of “very short” strings is definitely way less than 255. Also, a note throughout the book, it’s referencing mysql 5.7 (at least for the version I have read). They don’t differ on this particular detail tho.Reply·Article·Apr 30, 2024·High Performance MySQL [Ch.4: Optimizing Schema and Data Types]
SAAbdelaziz Sliem I think hashnode blocks links comments.Reply·Article·Jun 20, 2022·Concurrency, Race Conditions and Concurrency Control
SAThanks Akef. Yes, you're right, will edit the article soon.Reply·Article·Jun 19, 2022·Concurrency, Race Conditions and Concurrency Control
SAThank you! Glad you enjoyed it.Reply·Article·Jul 19, 2021·Learn MySQL Internals and Query Performance Optimization Techniques
SAThank you! Glad you enjoyed it.Reply·Article·Jul 19, 2021·Learn MySQL Internals and Query Performance Optimization Techniques
SAThank you! Glad you like it. You can checkout the follow up article on how facebook managed to cut costs by integrating a new system for cold storage and move Haystack to serve warm storage purposes only. You can find the article in the series.Reply·Article·Jul 16, 2021·Finding a Needle in a Haystack: How Facebook Serves Millions of Images per Second
SAApoorv Tyagi Where can I find their discord server tho :see-no-evil:?Reply·Article·Jul 15, 2021·Winners of June Coffee Giveaway