owned this note changed 5 years ago
Linked with GitHub

閱讀 elasticsearch-rails 以及 GitLab 使用它的奇怪方式 - lulalala

tags: COSCUP2020 中階 TR313

歡迎來到 https://hackmd.io/@coscup/2020 共筆

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

點擊本頁上方的 開始用 Markdown 一起寫筆記!
手機版請點選上方 按鈕展開議程列表。

請從這裡開始

Deepdive into elasticsearch-rails

  • slide
  • elasticsearch-rails
    • elasticsearch-persistence
    • elasticsearch-rails
    • elasticsearch-model - 這場 talk 的主題
  • ClassMethodsProxy
  • InstnaceMethodsProxy
  • 「Ruby 什麼都好,就是太自由了」(反串 Ruby 9.2)
  • GitLab 每個 model 可能會有自己的 ClassMethodsProxy ,甚至對應到不同版本的 ElasticSearch
  • GitLab 從頭到尾 index 要花一個禮拜,對應多版本就可以快速切換不同 ElasticSearch instance

同場加映: GitLab 和找尋 merge commits

  • MR 通常的兩個 parent 是目標 branch (例如 master )和來源 branch
  • 但有時一個 MR 是從目標 branch 以外的地方生出來的
  • fast-forward merge 也沒有 merge commit
  • 要從新的 commit 往回爬,找出自己的 child, grandchild commit 的 merge commit 是什麼
Select a repo