尤川豪   ·  5年前
445 貼文  ·  275 留言

Re-architecting Slack’s Workspace Preferences: How to Move to an EAV Model to Support Scalability

https://slack.engineering/re-architecting-slacks-workspace-preferences-how-to-move-to-an-eav-model-to-support-scalability-d480a7c5c655

Slack 使用 EAV model 處理「用戶偏好設定」資料的作法

「值」的地方是用 JSON value 存。

說起來應該算是 EAV + json 的混搭式作法

  分享   共 1,025 次點閱
共有 1 則留言
尤川豪   ·  5年前
445 貼文  ·  275 留言

https://inchoo.net/wp-content/uploads/2010/09/MAGENTO_v1.3.2.4-Database_Diagram.pdf

參考 magento 的 schema 會發現這幾張資料表

  • eav_entity
  • eav_entity_datetime
  • eav_entity_decimal
  • eav_entity_int
  • eav_entity_text
  • eav_entity_varchar

跟 slack 的作法,各自有優缺點!

 
您的留言
尤川豪
445 貼文  ·  275 留言

Devs.tw 是讓工程師寫筆記、網誌的平台。隨手紀錄、寫作,方便日後搜尋!

歡迎您一起加入寫作與分享的行列!

查看所有文章