理解SAP BW 中的 Bit-Map Index (續)
基於Bitmap索引的BW查詢計算
查詢1: 顯示所有的滿足下麵條件的記錄:where Y = 100 AND Z = BOO
為了計算上訴查詢,對 Y = 100 和 Z = BOO的 Bitmap 執行按位與操作:
Y = 100 的Bitmap 為 1 0 1 0 0
Z = BOO的Bitmap為 0 1 1 0 0
按位與:
1 0 1 0 0
與
0 1 1 0 0
結果 0 0 1 0 0
從上面的計算可以看出上訴Bitmap的位操作只有對於資料表的第3行為真。所以查詢1的結果就是資料表的第3行:
X Y Z
3 100 BOO
查詢2: 顯示滿足條件的所有記錄: WHERE Y = 100 OR Z = BOO
與查詢1的計算方法相似,
Y = 100 的Bitmap 為 1 0 1 0 0
Z = BOO的Bitmap為 0 1 1 0 0
按位或:
1 0 1 0 0
或
0 1 1 0 0
結果 1 1 1 0 0
從計算結果可以看出,上訴位計算對資料表的前3行為真。所以查詢2的結果是資料表的前3行:
X Y Z
1 100 FOO
2 200 BOO
3 100 BOO
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/119153/viewspace-626081/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 說說你對z-index的理解Index
- 啤酒釀造公司通過SAP BW on HANA解決報表難題TV
- 如何在Oracle表中選擇主鍵列BWOracle
- 什麼是 SAP UI5 Application IndexUIAPPIndex
- INDEX JAVA 各類名詞理解 & 知識點理解 目錄IndexJava
- 關於 SAP Spartacus feature library 裡的 _index.scss 檔案IndexCSS
- SAP UI5 index.html 裡的 bootstrap script 介紹UIIndexHTMLboot
- SAP開源的持續整合-持續交付的解決方案
- 檢視BW執行狀態
- 如何理解 SAP UI5 的 sap.ui.define 函式UI函式
- SAP UI5 應用 index.html 裡 data-sap-ui-resourceroots 指令的含義和作用UIIndexHTML
- SAP UI5 應用 index.html 裡定義的 data-sap-ui-theme 值的載入原理UIIndexHTML
- 2.作業系統的理解幫助後續理解作業系統
- Oracle中的虛擬列索引-nosegment indexOracle索引Index
- SAP UI5 index.html 根節點的 css 類填充邏輯UIIndexHTMLCSS
- oracle invisible index與unusable index的區別OracleIndex
- SAP CAP 專案 cds watch 生成的 index.html 的模板位置和許可權控制IndexHTML
- MySQL explain結果Extra中"Using Index"與"Using where; Using index"區別MySqlAIIndex
- SAP UI5 應用 index.html 裡引導 script 屬性的解析原理UIIndexHTML
- SAP CAP Fiori Elements 應用配置 UI 的兩種方式以及自定義 index.htmlUIIndexHTML
- MySQL 中 一條 order by index limit 語句的分析MySqlIndexMIT
- Oracle資料庫中的不可見索引 invisible indexOracle資料庫索引Index
- SAP 電商雲 Spartacus UI 的持續整合 - Continous integrationUI
- 易優cms在phpstudy環境下,可以去除:/index.php?/guanyuwomen/ 中的index.php嗎PHPIndex
- 理解 JavaScript 中的 thisJavaScript
- 理解JS中的thisJS
- 淺談持續整合的理解以及實現持續整合,需要做什麼?
- 解決無法連線SQL Server資料庫的方法BWSQLServer資料庫
- SAP Fiori @OData.publish 註解的工作原理解析
- SAP Spartacus 中的 Commands and queries
- SAP Spartacus SSR 模式下 index.html 頁面的響應邏輯除錯模式IndexHTML除錯
- 理解 JavaScript 中的原型JavaScript原型
- pytorch中forward的理解PyTorchForward
- Vue中mixin的理解Vue
- Vue中$nextTick的理解Vue
- 理解 CSS 中的 BFCCSS
- React中JSX的理解ReactJS
- 深入淺出VACUUM核心原理(中): index by passIndex
- tp6去掉url中index.phpIndexPHP