Today I Learned

TIL, 2018-06-04, Index Order Deep Dive

  • Deep dive into index order.
    • The order of columns is critical, but it depends on how you query it.
    • Exact seek: when values for a ll columns in the index are specified and the query lands exactly on the row. Order = irrelevant.
    • Range scan: when some columns are specified. But if the inner columns are less relevant, placing low selectivity columns makes them nothing but noise for a seek, and so it makes sense to move them out of the intermediate pages and keep them on the leaf pages.
    • The index on Least-Second Most-Most Selective: can be used to aggregate results on low selectivity columns. (Used for OLAP).
  • Crash and Burn
    • Due to bullying and security threats, Yik Yak was faced with external pressure to de-anonymize the app. It was also de-listed on the Android app store top apps.
    • Fab.com pursued growth that they were not ready for. Too fast expansion.
    • Vine: Purchased by Twitter, but Instagram and Snapchat created stories. Lack of unity/leadership on a vision, it didn’t ship anything of consequence for a year.
    • While they were able to amass a huge userbase (because of their uniqueness), they did not get product-market fit.
  • Fab
    • Celebrate innovation failure, not execution failure.
    • We did not have a highly scalable operating plan and playbook that could be replicated from market to market. Highly people, inventory, and warehouse intensive. Better to probably just make it profitable in the US before expanding overseas.

Musings

This project is maintained by daryllxd