dbd = database designer,是vertica資料庫優化中最主要的原生工具。
首先執行admintools工具,按下面步驟依次執行:
1.選擇"6 configuration menu"
2.選擇"2 run database designer"
3."select a database for design" 選擇需要分析的資料庫
4."enter directory for database designer output:" 輸入dbd的輸出目錄
5."designer name:" 輸入dbd的名字,隨意起
6."design type[comprehensive|query-specific]" 選擇dbd的設計型別,有兩個單選項,根據實際需求選擇
7."select schema(s) for design" 選擇需要設計的shema(s)
8."design options[optimize with queries|update statistics|deploy design]" 這裡有三個復選項,推薦先去掉deploy design,之後可以手工應用dbd的建議
9."enter the full path for queries file" 輸入業務常用到的sql查詢語句,使得dbd的分析更有針對性
10."proposed k-safety value:1" 這裡預設即可
11."select storage footprint preference[balanced query/load performance|query performance(larger footprint)|load performance(smaller footprint)]" 這裡有三個單選項,根據實際需求選擇,一般選擇第一項,均衡兼顧查詢和載入效能
12."proceed" 執行dbd
13."database designer started." dbd已經開始,會有類似下面的輸出,直到完成dbd
database designer started.for large databases a design session could take a
long
time
; allow it to complete uninterrupted.
use ctrl+c if
you must cancel the session.
setting up design session...
examining table data...
loading queries from
'/home/dbadmin/sqltune.sql'.
processed
22 sql statement(s), all accepted and considered in
the design.
no existing projections found.
creating design...
[100%] design in
progress... completed of .
[100%] analyzing data statistics... completed of .
[100%] design in
progress... completed of .
[100%] optimizing query performance... completed of .
[100%] design in
progress... completed of .
[100%] optimizing storage footprint... completed of .
[100%] internal warning during design... completed of .
query optimization results...
query
1 optimization ratio or status is 1
query
2 optimization ratio or status is 1
query
3 optimization ratio or status is 1
query
4 optimization ratio or status is 1
query
5 optimization ratio or status is 1
query
6 optimization ratio or status is 1
query
7 optimization ratio or status is 1
query
8 optimization ratio or status is 1
query
9 optimization ratio or status is 1
query
10 optimization ratio or status is 1
query
11 optimization ratio or status is 1
query
12 optimization ratio or status is 1
query
13 optimization ratio or status is 1
query
14 optimization ratio or status is 1
query
15 optimization ratio or status is 1
query
16 optimization ratio or status is 1
query
17 optimization ratio or status is 1
query
18 optimization ratio or status is 1
query
19 optimization ratio or status is 1
query
20 optimization ratio or status is 1
query
21 optimization ratio or status is 1
query
22 optimization ratio or status is 1
generating deployment script...
could not generate default deployment script.
the deployment error is deployment did not complete successfully. error - insufficient resources to execute plan on pool dbd [timedout waiting for resource request: waiting for
reservation spot]
design script is located
in /home/dbadmin/designer1_design.sql
deployment script is located
in /home/dbadmin/designer1_deploy.sql
the design will not be deployed.
the new design was not automatically deployed.
for manual deployment procedures consult vertica administrator
's guide
database designer finished.
press
to return to the administration tools menu.
vertica analytic database
6.1.3-7 administration tools
jupyter notebook介面優化設定
1.細心的小夥伴可能會發現,在我們安裝好了jupyter notebook點選launch執行時會彈出乙個網頁介面 這樣不方便我們進行一系列操作,接下來小關為您介紹jupyter notebook介面優化設定 2.詳細檢視 3.接下來回到sklearn環境下,輸入命令列pip install jup...
畢設登入邏輯分析
1.後台 前台返回使用者名稱和密碼後 1 先進行一階段的判斷邏輯 使用者名稱和密碼的校驗 2 生成token,將tokenkey和去除密碼的使用者資訊存入快取資料庫中 這部分資料設定失效時間 3 在將token寫入cookie中以便實現單點登入 4 前台通過token去快取資料庫中獲取使用者資訊 5...
c51優化等級 keil keil優化等級設定
優化級別說明 僅供參考 則其中的 code optimization 欄就是用來設定 c51的優化級別。共有個優化 級別 書上這麼寫的 高優化級別中包含了前面所有的優化級別。現將各個級 別說明如下 級優化 常數摺疊 只要有可能,編譯器就執行將表示式化為常數數字的計算,其中 包括執行位址的計算。簡單訪...