HERNK’S JOURNAL

The Secrets of Oracle Bitmap Indexes

Posted by: hernk on: 28 June 2009

Overview

Oracle’s two major index types are Bitmap indexes and B-Tree indexes. B-Tree indexes are the regular type that OLTP systems make much use of, and bitmap indexes are a highly compressed index type that tends to be used primarily for data warehouses.

Characteristic of Bitmap Indexes

* For columns with very few unique values (low cardinality)

Columns that have low cardinality are good candidates (if the cardinality of a column is <= 0.1 % that the column is ideal candidate, consider also 0.2% – 1%)

* Tables that have no or little insert/update are good candidates (static data in warehouse)

* Stream of bits: each bit relates to a column value in a single row of table


Advantage of Bitmap Indexes

The advantages of them are that they have a highly compressed structure, making them fast to read and their structure makes it possible for the system to combine multiple indexes together for fast access to the underlying table.

Compressed indexes, like bitmap indexes, represent a trade-off between CPU usage and disk space usage. A compressed structure is faster to read from disk but takes additional CPU cycles to decompress for access – an uncompressed structure imposes a lower CPU load but requires more bandwidth to read in a short time.

One belief concerning bitmap indexes is that they are only suitable for indexing low-cardinality data. This is not necessarily true, and bitmap indexes can be used very successfully for indexing columns with many thousands of different values.

Disadvantage of Bitmap Indexes

The reason for confining bitmap indexes to data warehouses is that the overhead on maintaining them is enormous. A modification to a bitmap index requires a great deal more work on behalf of the system than a modification to a b-tree index. In addition, the concurrency for modifications on bitmap indexes is dreadful.

http://www.akadia.com/services/ora_bitmapped_index.html

Summary

* With bitmap indexes, the optimizer can efficiently answer queries that include AND, OR, or XOR. (Oracle supports dynamic B-tree-to-bitmap conversion, but it can be inefficient.)
* With bitmaps, the optimizer can answer queries when searching or counting for nulls. Null values are also indexed in bitmap indexes (unlike B-tree indexes).
* Most important, bitmap indexes in DSS systems support ad hoc queries, whereas B-tree indexes do not. More specifically, if you have a table with 50 columns and users frequently query on 10 of them—either the combination of all 10 columns or sometimes a single column—creating a B-tree index will be very difficult. If you create 10 bitmap indexes on all these columns, all the queries can be answered by these indexes, whether they are queries on all 10 columns, on 4 or 6 columns out of the 10, or on a single column. The AND_EQUAL hint provides this functionality for B-tree indexes, but no more than five indexes can be used by a query. This limit is not imposed with bitmap indexes.

http://www.oracle.com/technology/pub/articles/sharma_indexes.html

Regression Test

Posted by: hernk on: 8 June 2009

Regression testing can be used not only for testing the correctness of a program, but often also for tracking the quality of its output. For instance, in the design of a compiler, regression testing should track the code size, simulation time and time of the test suite cases.

source : wikipedia.org

Thanks for citing me here

Posted by: hernk on: 8 April 2009

goldfish blog

 

I would like to thanks to Ben Bahrenburg for including my name and my blog in the web release notes for GoldFish which can be found here. Hopefully, I can help You more to improving the GoldFish.

Strobist

Posted by: hernk on: 29 March 2009

Strobist berasal dari kata strobe, yang dalam istilah fotografi berarti alat yang memproduksi cahaya secara terus menerus. Dengan bahasa yang lebih populer Strobist adalah fotografer yang senang menggunakan flash (blitz) secara off-camera. Jika umumnya, di masa sebelumnya orang menggunakan flash dengan cara diletakkan diatas hot-shoe kamera, maka para strobist menggunakan flash dengan jarak tertentu dari kamera. Bagaimana caranya?

Alat yang paling dibutuhkan untuk menggunakan flash secara off-camera adalah mekanisme wireless trigger (pemantik nirkabel). Pada beberapa kamera dan flash modern, kemampuan nirkabel ini sudah ada secara integrated. Di sistem Nikon di sebut sebagai CLS (Creative Lighting System) sementara di sistem Canon disebut sebagai E-TTL (Evaluative – Trough The Lens). Jangan artikan secara harfiah istilah CLS dan E-TTL, karena bisa membuat bingung artinya, lebih baik ikuti penjelasan berikut ini.

Sistem pemantik nirkabel ini berfungsi untuk menyalakan flash secara sinkron ketika kita menekan tombol shutter pada kamera. Jadi flash akan menyala ketika kita menekan shutter selayaknya flash tersebut berada di dudukan hot shoe di kamera. Uniknya, kita bisa mensinkronisasi lebih dari satu flash bersamaan sekaligus dalam suatu pemotretan. Untuk sebuah foto fashion yang dilakukan outdoor, bisa dibutuhkan 3-5 flash (bahkan bisa lebih banyak) yang dinyalakan secara off-camera. Alat wireless trigger ini umumnya menggunakan gelombang radio atau sinar infra merah untuk menyalakan flash slave (budak atau flash lain yang harus tunduk pada flash utama).

Pada generasi fotografi yang masih menggunakan film, sudah ada trigger yang menggunakan cahaya sebagai trigger. Alat ini umum dikenal sebagai mata kucing (synchro eye) yang berbasis pada pencahayaan flash dari master yang segera diikuti oleh slave-nya. namun penggunaan mata kucing hanya terbatas di studio saja, karena kepekaan mata kucing ini tidak akan bekerja pada lokasi outdoor.

Walaupun kita memotret dengan matahari yang masih bersinar, namun dengan menggunakan teknik strobist, kita bisa mengisolasi cahaya matahari, yaitu dengan cara menggunakan speed sekitar 1/200 sehingga foto akan menjadi under lighting. Untuk menambahkan cahaya pada subyek kita dapat menambahkan flash secara off-camera (dari sisi kiri) sehingga cahaya yang jatuh tidak datar sebagaimana kita letakkan flash di shoe kamera. Speed 1/200 adalah speed maksimal yang masih dapat melakukan sinkronisasi antara kamera dengan flash, namun beberapa kamera keluaran terbaru mampu melakukan sinkronisasi lebih dari batas tersebut. Banyak fotografer yang memanfaatkan sinar matahari sebagai background untuk teknik strobist ini, sehingga akan menghasilkan foto-foto yang indah.

bharata
source : http://citizenimages.kompas.com/forum/viewtopic.php?f=59&t=11

Server Info

Posted by: hernk on: 17 February 2009

Solaris: check OS level: uname -a
application support: isainfo -v
General Info: /usr/platform/sun4u/sbin/ ./prtdiag -v | more
Amount Memory: /usr/sbin/prtconf | grep size

AIX: check OS leveL: lslpp -l bos.rte or uname -a
Hardware Info: lscfg
Amount Memory: lsattr -El mem0
General Info: lsattr -El sys0

Categories

Blog Stats

  • 36,432 hits

Archives

Flickr Photos

the dancers

vicky n magdalena

dedy

andra

More Photos

Web Stat

Blog Worth


My blog is worth $564.54.
How much is your blog worth?

User Online