Which Index is better?

Hi ,
    Can u let me know which index on fact table is better for query performance. Is it bit map or bit tree? Also , how to change the type of index on the fact table.
Thanks.

Hallo Apurva
The standard BW index are BIT MAP Index. In case you have high cardinality in the dimension than you can flag it in the dimensiona and the sytem create B-tree index.
http://help.sap.com/saphelp_nw04/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/80/1a6473e07211d2acb80000e829fbfe/frameset.htm
Mike

Similar Messages

  • Which solution for better perfomance?

    I'm writing java application based on XML. This application have to store very large XML file into DB (XML file is about 1000MB large). My solution is to divide it into smaller (100MB) parts (because of memory resources) and store it in DB. I have one XMLType table based on object-relational storage (so at the end there will be 10 rows each of 100MB size).
    XML file looks like:
    <students>
    <student id="1">
    ...// 5 nested elements or collections of elements
    </student>
    <student id="2">
    </student>
    <student id="3">
    </student>
    </students>
    </students>
    Now I need to get java object Student which correponds to <student>element. My solution is to select whole <student> element and use JAXB to convert it to Java object. While solving a problem with selecting <student> element (just in case you know a solution for my another problem: How to select specific element from a XML document using JDBC? another question raised in my mind.
    Which solution has better performance when I don't need to select relational data but I'm interested in xml fragment?
    1) Use object-relational storage
    2) Use CLOB storage
    As I figured out object-relational storage is better for selecting data like student name. But is it also better when I need whole xml fragment?
    Isn't my solution completely wrong? I'm quite a newbie in XML DB so it's possible that I missed better solution.
    Thanks for any advice

    I don't know which version you have regarding 11g, but probably in this case I would go for a table with a XMLType Binary XML column. To make xpath and other statements perform use Structured or Unstructured XMLIndexes to support your queries. The following has worked for far smaller XML documents but the millions we used were good for a total of >> 1 TB total storage size...
    CREATE TABLE XMLTEST_DATA
    (    "ID" NUMBER(15,0),
          "DOC" "SYS"."XMLTYPE"
    ) SEGMENT CREATION IMMEDIATE
    NOCOMPRESS NOLOGGING
    TABLESPACE "XML_DATA"
    XMLTYPE COLUMN "DOC" STORE AS SECUREFILE BINARY XML 
    (TABLESPACE "XML_DATA"
      NOCOMPRESS  KEEP_DUPLICATES)
    -- XMLSCHEMA "http://www.XMLTEST.com/Schema1.0.xsd"
    --  ELEMENT "RECORD" 
    DISALLOW NONSCHEMA
    PARTITION BY RANGE(id)
    (PARTITION XMLTEST_DATA_PART_01 VALUES LESS THAN  (100000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION XMLTEST_DATA_PART_02 VALUES LESS THAN  (200000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION XMLTEST_DATA_PART_03 VALUES LESS THAN  (300000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION XMLTEST_DATA_PART_04 VALUES LESS THAN  (400000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION XMLTEST_DATA_PART_05 VALUES LESS THAN  (500000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION XMLTEST_DATA_PART_06 VALUES LESS THAN  (600000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION XMLTEST_DATA_PART_07 VALUES LESS THAN  (700000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION XMLTEST_DATA_PART_08 VALUES LESS THAN  (800000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION XMLTEST_DATA_PART_09 VALUES LESS THAN  (900000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION XMLTEST_DATA_PART_MAX VALUES LESS THAN  (MAXVALUE) TABLESPACE "XML_DATA" NOCOMPRESS
    CREATE INDEX test_xmlindex on XMLTEST_data (doc) indextype is xdb.xmlindex
    LOCAL
    parameters ('GROUP PARENTINFO_GROUP
                 XMLTable test_cnt_tab_ParentInfo
                ''/RECORD/ParentInfo''
                COLUMNS
                 GroupingID01 VARCHAR2(4000) PATH ''Parent/GroupingID'',
                 GroupingID02 VARCHAR2(4000) PATH ''Parent/Parent/GroupingID''
              ');

  • Which index will it take and why ?

    Hi, 
    I have a table Employee and i have an index on EmpID on this table. Now i have created a view EmpView on this table. I have created an index on this view for the same column EmpID.
    Now my question is If i query select * from Empview where empId = something then which index will it consider and why?? 
    Thanks in advance
    Balaji 
    Balaji - BI Developer

    Good day Balaji
    Prasad 
    1. How long it took you to write the question in the forum?
    You are asking about specific case in your database. I am sure that you could open click on the Execution Plan button and get a faster answer and much more accurate for your specific database. Not always the forum is the best and faster solution, sometimes
    you can get it yourself.
    Regarding the "why", it is a good question :-)
    please post DDL+DML
    2. As other mentioned if you want help regarding a query then we need to be able to reproduce the situation. Instead of stories on your tables, you could post the DDL+DML queries :-) that mean the create table (with indexes) query and the insert sample
    data query. With this information we can click the Execution Plan button in our server :-)
    Moreover, with DDL+DML we might suggest a better solution
      Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]

  • I am going to buy a macbook pro for grade 12, and I need to know wheather I should get a macbook pro or a macbook pro retina. If someone could tell me (in a very simple way) which one is,better for me and why, I would be ever so apprreciative.

    I am going to buy a macbook pro for grade 12, and I need to know wheather I should get a macbook pro or a macbook pro retina. If someone could tell me (in a very simple way) which one is,better for me and why, I would be ever so apprreciative.

    Why do you need a expensive MacBook Pro?
    Your attending high school and unless everyone else is rich also your likely going to be a target by the more poorer students for theft or damage to the machine.
    You could keep it home, but if you need it for class then your exposed again.
    Also at that age your not very careful yet, a MacBook Pro is a expensive and easily damaged machine.
    Unless your made of money and so are others at your school, I would recommned a low profile, just does the job cheap Windows PC.
    If it dies, gets lost, stolen or damaged because of your inexperince handling senstivie electronics then it's no big deal.
    You can buy a Mac later on when your sure you have a need for it, currently there isn't much advantage of owning a Mac compared to a PC, they do just about the same things now, one just looks prettier than the other.
    Since 95% of the world uses Windows PC's your going to have to install Windows on the Mac in order to keep your skills up there or be unemployed, so it's a extra headache and expense.
    good luck

  • Which browser is better to use as an option to Safari and how do you download it?

    Which browser is better to use as an option to Safari and how do you safely download it? Thanks

    I use Firefox when a site doesn't work well with Safari. Some people like Google's Chrome, but I find it too instrusive and do not trust Google's security. You can download Firefox from firefox.com.
    Regards.

  • I am looking for macbookpro mid 2010 HDD exact specs so that i can upgrade it to 1TB. PLEASE HELP ME  about OEM apple brand or which one is better.Thanks

    I am looking for macbookpro mid 2010 HDD exact specs so that i can upgrade it to 1TB. PLEASE HELP ME  about OEM apple brand or which one is better?.Thanks

    clintonfrombirmingham Your information is not correct.
    http://kb.sandisk.com/app/answers/detail/a_id/8142/~/difference-between-sata-i,- sata-ii-and-sata-iii
    I have a sata II samsung 5400 rpm and i am only able to transfer at 85 read right speed.
    On my main drive sata III ocz agility 3 ssd i get 120 mb read and 180 write.
    Neither of these come close to the 300 mb promised. So it wont matter if he got sata II or III
    The speed came from Blackmagic Disk Speed Test

  • Which index  I should create  Btree or Bitmap  index?

    I have table with columns c1,c2,c3
    I want to create index on column c1
    which index I should create Btree or Bitmap index
    the column contain 50% unique values and 50% duplicate values
    If Btree why?
    If Bitmap Why?
    I know that
    Btree is used when there more unique values (high cardinality)
    Bitmap is used when there less unique values (low cardinality)

    read this -
    Deadlocks with Bitmap Indexes
    Bitmap indexes were designed to be used solely within data warehouses, i.e. where the vast majority of the database activity is reading data,
    and there's very little (or no) data modification, except for batch processes which occasionally re-populate the warehouse.
    Each "row" in the bitmap index contains references to potentially many different rowids, in contrast to a B*-tree index which references a single rowid.
    It should be obvious, therefore, that, since the transactional mechanism is the same for all database operations, that any DML on a table which impacts the bitmap index may end up locking (or attempting to lock) many different "rows" within the index.
    This is the key concept with deadlocks in bitmap indexes, you're not being deadlocked on the underlying table, but on the index blocks. Courtesy - http://www.oratechinfo.co.uk/deadlocks.html
    hope u got it now...

  • How to tell which Indexes are not being used?

    We are a large development shop and have many customers. Our database design is very generic so that it works for all of our customers. Each night we use an SSIS ETL process to bring down large amounts of data from the iSeries into SQL. One
    particularily large customer takes a very long time and we are looking for ways to speed up thier data import and transformation. I would like to see which indexes he does not use and possibly remove them. Each night we fully repopulate hundreds of staging
    and ods tables and incrementally delete and repopulate the days work for a handful of history type tables. Removing some indexes off of the large tables could make a big impact. 
    How can i tell which indexes the customer does not use?

    > IDENTIFYING UNUSED INDEXES IN A SQL SERVER DATABASE 
       Just because an index is not being used does not necessarily mean it should be removed.
    > Index This: All About SQL Server Indexes
    sp_BlitzIndex
    José Diz     Belo Horizonte, MG - Brasil

  • I would like to buy am Ipad for my nephew. Which one is better to play games, ipad or ipad mini

    I would like to buy an ipad for my nephew. Which one is better, ipad or ipad mini? He wants to play games, and put lots of app.

    Probably the full iPad, because it has a better graphics card. The larger screen helps too.

  • Which is a better bacikup software?

    I'm puzzled as to which is a better backup software:
    Carbon Copy Cloner or
    Super Duper which says it preserves data that would be lost during something called a roll back.
    I don't what that means;
    I am backing up to a firewire external drive, is that a good choice?
    Need advice
    Thanks

    I read in SuperDuper that it completely erases your drive and makes a duplicate of the HD. There are documents that I remove from my HD but would like to keep on the backup disc just in case. I may need them in the future. According to SuperDuper they would be erased because they no longer reside on the main HD. I'm looking to update new and changed items but not delete items that no longer reside on the main HD, am I making myself clear?
    Yes, the free version of SuperDuper! will always erase the target drive and clone the entire source disk again. The paid version will do what you want. What I have in quotes below is directly from the registered version's menus.
    1) Smart Update. "Smart Update will copy and erase what's needed to make the target drive identical to your selections from the source. The result will mimic "Erase, then copy", but will typically take a fraction of the time."
    2) Copy newer files. "Any selected files already on the target drive that are older than the equivalent file on the source will be replaced. New files will also be copied; no files will be removed."
    3) Copy different files. "Any selected files already on the target drive that are different (in date, size or attributes), than the same file on the source will be replaced. New files will also be copied; no files will be removed."

  • c:redirect VS RequestDispatcher -WHICH ONE IS BETTER TO USE?

    WHENVER WE WANT TO ACCESS FILES FROM OHTER APPLICATIONS,WHICH ONE IS BETTER TO USE,<c:redirect> OR
    RequestDispatcher

    Please stop shouting. It is considered rude.

  • , c:redirect OR RequestDispatcher -which one is better to use

    WHENVER WE WANT TO ACCESS FILES FROM OHTER APPLICATIONS,WHICH ONE IS BETTER TO USE,<c:redirect> OR
    RequestDispatcher

    <c:redirect> is the JSTL equivalent of the sendRedirect() method of javax.servlet.http.HttpServletResponse.
    Please see here:
    http://forum.java.sun.com/thread.jspa?forumID=45&threadID=405398 or search the forums for "RequestDispatcher redirect"

  • Which cover is better whether smart cover or smart case

    which cover is better whether smart cover or smart case

    It is really a choice to personal preference.
    The Smart Cover provides some protection for the front of the device but no side/back protected. However, the Smart Cover is much more easier to use in my opinion and makes the device feel better.
    The Smart Case provides all around protection for your iPad and is worth getting. It is not as tough as some of the crazy cases out their that like protect from 100ft drops lol.
    So, just go to the Apple store and talk to a representative and he/she will help you out!
    - Sean

  • Which is a better performer, the macbook air or the mac mini?

    Which one performs better, the late 2013 macbook air (standard configuration: 4GB RAM, dual core i5 1,3 Ghz CPU) or the mac mini core quad core i7, 4GB RAM with a regular hard disc?

    LowLuster 
    No Air model can be as fast as a Mini with a quad core i7 CPU. Can't happen.
    I didnt solicit your opinion, and it IS a fact, .....skilled users here on this board will and DO TELL other users OFTEN that:
    "outside of processor core use (video/ photo etc.) you will NOT NOTICE ANY DIFFERENCE on X computer vs. slower Y computer"
    I have a 8 month old QUAD core Mac Mini and it is , as I said above "noticeably not ONE BIT" faster than my current 2013 macbook Air with 8gig.
    My quad core came with 4gig of RAM as I recall, I immediately tossed in 16gig.
    Notice the word "noticeably"
    Your subjective hyperbole aside, you are wrong......., those above yourself and myself (point wise,...as Ogel has stated, Clinton has stated, and others) state this fact very often regarding ---"outside of processor core use (video/ photo etc.) you will NOT NOTICE ANY DIFFERENCE on X computer vs. slower Y computer"
    Its not my opinion, its a fact, namely additionally that I stated "noticeably"   - "my quad core mac mini on MOST EVERYTHING (which is most things since 'most things' are NOT photo and video editing) is not "noticeably" ONE BIT faster than my Macbook Air.
    "most things" people do (most people) on their computer does NOT involve photo and video editing (photoshop pro, final cut pro etc etc)
    This is a fact, that AS SUCH most people WILL NOT notice any difference in general computer use between a quad core mac mini (for example) and a entry level macbook Air. (SSD vs. HD speeds aside).       Nobody is going to notice faster youtube, or Word use, or websurfing, Acrobat Pro, Quicktime play, general APPS that havent changed much in 7 years.
    Dont curse on these family boards please, its uncouth.
    Peace

  • Which one is better static inner classes or inheritance ?

    Hi,
    Consider following scenario,
    Class A does some database related work and Class B,C,D has more specific tasks for specific databases. For now B,C,D has more static information like driver name etc.
    1. I can either make class B,C,D as static inner classes OR
    2. classes B,C,D can extend class A.
    Case 1. makes it more flexible, if in future, B,C,D needs more than static methods.
    Case 2. can avoid complexity and cost of instantiating differnt objects based on differnt scenarios.
    Which approache is better in both ?
    Thanks

    Yes, I have seen abstract factory pattern , rather I have implemeted it at one place and in case 1. using abstract factory pattern is the way to initialize all classes.But my question is if I make all subclasses as a static inner classes, will it be better or efficient approach as compare to abstract factory pattern.Because Abstract factory patter adds more complications in code in turn it provides more flexibility.

Maybe you are looking for

  • MP3 tags not picked up

    When I set iTunes loose on my music library, about 30% of the tunes have no info associated with them, yet if I use MS Explorer to look at the properties of the file, it shows the artist, album, and everything else I want in iTunes. Is this common? I

  • MRP minimums suggest wrong purchase orders

    Hi, We have a problem with a customer that is usign the MRP the message is in SAP and turn it to de SDN forums for a correction in a future release. In the following DRQ you can look for the DRQ and message that have the detail of the wrong behaivor.

  • Regarding Selection Criteria features in BI7 Info package maintenance

    Hi, In BI7.0, I have to load data from the Business content ODS, 0FIGL_O02 to Customized ODS by restricting the data as per the document types. Do we have that feature in BI7, to restrict the data in info package maintenance's selection criteria.Plea

  • URGENT: Project level authorization

    Dear All, In Solman, Can we assign our users at project level only, so that they can see and change only the project assigned to them. They should not be allowed to view and see any other project. If yes then how? and is there any way to implement fu

  • Firefox Freezes Window on Download with Android Wireless Tether

    Firefox download is freezing Windows, not good. Here are the circumstances: I open Firefox, go to some web page that wants me to download a file (such as a PDF, but it doesn't matter), download the file, and BOOM, windows TOTALLY hangs. Mouse is froz