上一篇做了 PHP Linter 工具的分析之後,選定 PHP_CodeSniffer 來做團隊的工具導入,但是制定專案的設定檔需要了解其細節。
本文會帶介紹如何自己定義 PHP_CodeSniffer config file 來適應團隊的開發文化跟規範。
最近回 Backend 領域看 Team 內的後端開發給予建議,雖然號稱在使用 MVC 框架但還是有分可維護跟不容易維護的差別。 我試著用後端的 HTTP LifeCycle 或者可以說是 HTTP Workflow 來解釋如何在
兩個脈絡看待 PHP Coding Style 整合工具,我們可以從 Formater 自動修正 以及 Linter 檢查工具 來看
家嬷目前遇到失智照護處理的問題。失智也有分很多種類型,現階段需要先釐清阿嬤屬於哪一種類型才能針對狀況做處理 今天前往醫院進行腦波圖的檢查,月底
Change Alias Pointer The alias is your writer enterance, sometimes if you need to change the alias pointer to different concrete indices. Run Step 1. Create the new target concrete indices PUT /test_new_target_indices Run Step2. Change pointer 警告 Update old indices is_write_index to false, the new one to true POST /_aliases { "actions" : [ { "add" : { "index" : "qlog-f-vbs-202104-0430-000006", "alias" : "qlog-f-vbs-202104", "is_write_index" : false }
Force Merge Force merge action can clean up docs.delete, make read preformace better and save more disks space for the snapshot. Please refer to ES Document https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-forcemerge.html Run Step 1. 警告 The response will be sent utils the forcemerge action is done. So you will usually encounter timeout on the production indices. After enter the request, you can skip to wait manually. POST qlog-b-202105-0521-000004/_forcemerge?max_num_segments=1 // Ctrl C? or waiting