跳到主內容

最近更新的頁面

【tip】常用settings

【Treeman】總覽 VSCode

修改 settings.json { "workbench.editor.wrapTabs": true, // tab數量超過一行是否摺疊顯示(false 會出現scroll bar...

由 treeman 更新於 3 年前

Laravel_Validation

【Treeman】總覽 Laravel

  參考: Laravel Validation 經驗談. 如何確認 request body的參數是符合我們預期的?… | by Kidd Chan | K88D | Medium La...

由 treeman 更新於 3 年前

Laravel_Request

【Treeman】總覽 Laravel

參考: 學習LARAVEL 請求,看這一篇就夠了 (pandalab.org)

由 treeman 更新於 3 年前

Vue 建立專案

【Treeman】總覽 Vue

  # install vue cli npm install -g @vue/cli # 建立 my-project 專案 vue create my-project 選第三個 ...

由 treeman 更新於 3 年前

MongoDB教育訓練-01

【Treeman】總覽 MongoDB

    mongodb 儲存格式 是 Bson MongoDB 與關連式資料庫結構對照   企業版的Tool       何時使用MongoDB 需要存取資料 ...

由 treeman 更新於 3 年前

MongoDB教育訓練-02

【Treeman】總覽 MongoDB

  註冊 https://cloud.mongodb.com/ tool https://www.mongodb.com/try/download/shell     ...

由 treeman 更新於 3 年前

MongoDB教育訓練-03

【Treeman】總覽 MongoDB

    count 儘量不要用 db.inspections.countDocuments() #精確查詢(1) db.inspections.count() # in...

由 treeman 更新於 3 年前

MongoDB教育訓練-04

【Treeman】總覽 MongoDB

Array 查詢 Array 查詢 操作 $all $size(少用無法使用index) $element 元素滿足   #age > = 18 && age <= 3 ...

由 treeman 更新於 3 年前

MongoDB教育訓練-05

【Treeman】總覽 MongoDB

    更新所有陣列元素   子查詢更新 Update & Insert 資料存在則更新,否則新增 返回更新前後的值(u...

由 treeman 更新於 3 年前

MongoDB教育訓練-06

【Treeman】總覽 MongoDB

  mongoDB 使用B-tree索引 查詢至少要用到索引,不要full table scan(所以要至少建立可用索引) 檢查執行計畫快取 -> (無) 有可能優化的...

由 treeman 更新於 3 年前

MongoDB教育訓練-07

【Treeman】總覽 MongoDB

只能保證分片唯一,不能保證全局唯一 sparse index : 欄位可能不存在document中使用 partial index : 依據欄位的值決定要不要放入索引(刪除的不放)   ...

由 treeman 更新於 3 年前

MongoDB教育訓練-08

【Treeman】總覽 MongoDB

  Wildcard Indexes 可以加入所有欄位,但只能命中一個欄位 儲存空間的最大 不知道要對什麼做搜索的時候適用 使用hints指定索引 支援regul...

由 treeman 更新於 3 年前

MongoDB教育訓練-09

【Treeman】總覽 MongoDB

  查詢緩慢 沒有使用index 解決 查看database log 開啟 profiling      level 2 性能會影響 db.setProfili...

由 treeman 更新於 3 年前

MongoDB教育訓練-20211223-01

【Treeman】總覽 MongoDB

  Hideden Replica Set Member 隱藏結點,不太使用(歷史,所有請求不會訪問) Delayed Replica Set Member 不太使用,先將資料取回不同步(延...

由 treeman 更新於 3 年前

MongoDB教育訓練-20211223-02

【Treeman】總覽 MongoDB

資料先寫入記憶體 , checkpoint => 一分鐘( or 資料到達大小) 髒數據寫入DB journal log 60ms 寫入 db db 最多錯失60 ms 資料 "OK -...

由 treeman 更新於 3 年前

MongoDB教育訓練-20211223-03

【Treeman】總覽 MongoDB

vertical scaling 垂直擴展(升級到某個程度,會很貴並有極限) horizontal sacling 水平擴展 (比較省成本) 沒有一定要shard(如果資料不多不需要,管...

由 treeman 更新於 3 年前

MongoDB教育訓練-20211223-04-關於安全

【Treeman】總覽 MongoDB

對稱加密 && 非對稱加密    

由 treeman 更新於 3 年前

PHP_使用curl 上傳資料

【Treeman】總覽 PHP

client shell # curl 上傳資料 # {file} : 可更改,$_file 的key就會不同 # curl -X POST -F "{file}=@{檔案路徑}" {ap...

由 treeman 更新於 3 年前

Laravel 解決在 CentOS 7 下 log 檔無法寫入的問題

【Treeman】總覽 Laravel

在  config/logging.php 'permission' => 0775, 'daily' => [ 'driver' => 'daily', ...

由 treeman 更新於 3 年前

Dockerfile 的 /etc/hosts 如何設定

【Treeman】總覽 Docker

來源: Dockerfile 的 /etc/hosts 如何設定 – Tsung's Blog (longwin.com.tw) Dockerfile 的 /etc/hosts 如何設定 ...

由 treeman 更新於 3 年前