跳到主內容

最近更新的頁面

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 年前

【Vue】相關連結

【Treeman】總覽 Vue

前言 | 重新認識 Vue.js | Kuro Hsu [ 重構倒數30天,你的網站不Vue白不Vue ] :: 2021 iThome 鐵人賽 Vue.js 進階心法 :: 2021 iT...

由 treeman 更新於 3 年前

Laravel 常見問題: Specified key was too long

【Treeman】總覽 Laravel

Laravel 在 5.4 版之後為了支援 emoji , 因此將資料編碼改為 utf8mb4. 由於 utf8mb4 的儲存空間需求膨脹了4倍, 導致預設長度無法正常寫入資料庫.這個問題會在 ...

由 treeman 更新於 3 年前

【Bootstrap-table】bs_table_common.js

【Treeman】總覽 Javascript

var bootstrapTableBaseConfig = { height: getHeight(), idField:"dv_no", toolbar:"...

由 treeman 更新於 3 年前

【bootstrap-table】相關連結

【Treeman】總覽 Javascript

bootstap-table 官網 bootstrap table filterBy数据刷选过滤器和查询条件 - itxst.com

由 treeman 更新於 3 年前