Which is better partition or index??

Hi,
i have a table with approximately 2 billion records and there are 2.5 mil records inserted every day.
the table has a field called (Originatetime Date) which has an avg of 35-40 row per second.
most of the queries of this table use this field but normally not as an exact value but with a range
ex:
originatetime >= to_date('2010-01-01','yyyy-mm-dd')
and originatetime < to_date('2010-03-01','yyyy-mm-dd')my question is, which is better to use in this case a daily partition on originatetime or an index on originatetime
because the table is very big and i was thinking that a partition range scan would have better performance.
oracle version : 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production

Since Maximum number of partitions allowed per table or index     = 1024K - 1 I would say partition
Regards
Etbin

Similar Messages

  • Which is better?? INDEXING or AGGREGATES or PARTITIONING??

    Hello BW Experts,
    If I need to decide one out of three i.e., INDEXING or AGGREGATES or PARTITIONING for better performance.. ??
    whcih one should i go for?? and why??
    Plz throw some light on this!!
    Thanks & Regards,
    Sapster.

    Hi,
      For query performance and dataloading performance we need all the three.. So we cannot say this one is better than other as per my knowledge..
    Partition:
    By using partitioning you can split up the whole dataset for an InfoCube into several, smaller, physically independent and redundancy-free units. Due to this separation, performance is increased when reporting, or also when deleting data from the InfoCube.
    Aggregates:
    An aggregate is a materialized, aggregated view of the data in an InfoCube. In an aggregate, the dataset of an InfoCube is saved redundantly and persistently in a consolidated form on the database.
    Aggregates allow quick access to InfoCube data during reporting. Similar to database indexes, they serve to improve performance.
    Index :
    Indexes are created in the fact table for each dimension allow you to easily find and select the data. When initially loading data into the InfoCube, you should not create the indexes at the same time as constructing the InfoCube, rather only afterwards.
    The indexes displayed are the secondary indexes of the F and E fact tables for the InfoCube. The primary indexes and those defined by the user are not displayed. The aggregates area deals with the corresponding indexes of the fact table for all aggregates of an InfoCube.
    Have a look at the below document..
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e7deb490-0201-0010-f882-ef40f8c9bb5c
    Regards,
    Siva.

  • Non-Partitioned Global Index on Range-Partitioned Table.

    Hi All,
    Is it possible to create Non-Partitioned Global Index on Range-Partitioned Table?
    We have 4 indexes on CS_BILLING range-partitioned table, in which one is CBS_CLIENT_CODE(*local partitioned index*) and others are unknown types of index to me??
    Means other 3 indexes are what type indexes ...either non-partitioned global index OR non-partitioned normal index??
    Also if we create index as :(create index i_name on t_name(c_name)) By default it will create Global index. Please correct me......
    Please help me in identifying other 3 indexes types by referring below ouputs!!!
    select INDEX_NAME,TABLE_NAME,PARTITIONING_TYPE,LOCALITY from dba_part_indexes where TABLE_NAME='CS_BILLING';
    INDEX_NAME TABLE_NAME PARTITI LOCALI
    CSB_CLIENT_CODE CS_BILLING RANGE LOCAL
    select index_name,index_type,table_name,table_type,PARTITIONED from dba_indexes where table_name='CS_BILLING';
    INDEX_NAME INDEX_TYPE TABLE_NAME TABLE_TYPE PAR
    CSB_CREATE_DATE NORMAL CS_BILLING TABLE NO
    CSB_SUBMIT_ORDER NORMAL CS_BILLING TABLE NO
    CSB_CLIENT_CODE NORMAL CS_BILLING TABLE YES
    CSB_ORDER_NBR NORMAL CS_BILLING TABLE NO
    select INDEX_OWNER,INDEX_NAME,TABLE_NAME,COLUMN_NAME from dba_ind_columns where TABLE_NAME='CS_BILLING';
    INDEX_OWNER INDEX_NAME TABLE_NAME COLUMN_NAME
    RPADMIN CSB_CREATE_DATE CS_BILLING CREATE_DATE
    RPADMIN CSB_SUBMIT_ORDER CS_BILLING SUBMIT_TO_INVOICE
    RPADMIN CSB_SUBMIT_ORDER CS_BILLING ORDER_NBR
    RPADMIN CSB_CLIENT_CODE CS_BILLING CLIENT_CODE
    RPADMIN CSB_ORDER_NBR CS_BILLING ORDER_NBR
    select dip.index_name, dpi.locality, dip.partition_name, dip.status
    from dba_part_indexes dpi, dba_ind_partitions dip
    where dpi.table_name ='CS_BILLING'
    and dpi.index_name = dip.index_name;
    INDEX_NAME LOCALI PARTITION_NAME STATUS
    CSB_CLIENT_CODE LOCAL CSB_2006_4Q USABLE
    CSB_CLIENT_CODE LOCAL CSB_2006_3Q USABLE
    CSB_CLIENT_CODE LOCAL CSB_2007_1Q USABLE
    CSB_CLIENT_CODE LOCAL CSB_2007_2Q USABLE
    CSB_CLIENT_CODE LOCAL CSB_2007_3Q USABLE
    CSB_CLIENT_CODE LOCAL CSB_2007_4Q USABLE
    CSB_CLIENT_CODE LOCAL CSB_2008_1Q USABLE
    CSB_CLIENT_CODE LOCAL CSB_2008_2Q USABLE
    CSB_CLIENT_CODE LOCAL CSB_2008_3Q USABLE
    CSB_CLIENT_CODE LOCAL CSB_2008_4Q USABLE
    CSB_CLIENT_CODE LOCAL CSB_2009_1Q USABLE
    CSB_CLIENT_CODE LOCAL CSB_2009_2Q USABLE
    CSB_CLIENT_CODE LOCAL CSB_2009_3Q USABLE
    CSB_CLIENT_CODE LOCAL CSB_2009_4Q USABLE
    select * from dba_part_indexes
    where table_name ='CS_BILLING'
    and locality = 'GLOBAL';
    no rows selected
    -Yasser
    Edited by: YasserRACDBA on Mar 5, 2009 11:45 PM

    Yaseer,
    Is it possible to create Non-Partitioned and Global Index on Range-Partitioned Table?
    Yes
    We have 4 indexes on CS_BILLING range-partitioned table, in which one is CBS_CLIENT_CODE(*local partitioned index*) and others are unknown types of index to me??
    Means other 3 indexes are what type indexes ...either non-partitioned global index OR non-partitioned normal index??
    You got local index and 3 non-partitioned "NORMAL" b-tree tyep indexes
    Also if we create index as :(create index i_name on t_name(c_name)) By default it will create Global index. Please correct me......
    Above staement will create non-partitioned index
    Here is an example of creating global partitioned indexes
    CREATE INDEX month_ix ON sales(sales_month)
       GLOBAL PARTITION BY RANGE(sales_month)
          (PARTITION pm1_ix VALUES LESS THAN (2)
           PARTITION pm2_ix VALUES LESS THAN (3)
           PARTITION pm3_ix VALUES LESS THAN (4)
            PARTITION pm12_ix VALUES LESS THAN (MAXVALUE));Regards

  • Creation of Hash Partitioned Global Index

    Hash Partion Index creation
    Hi friends,
    Could you suggest me whether we can create a hash partitioned index by using syntax as below in 9i.
    CREATE INDEX hgidx ON tab (c1,c2,c3) GLOBAL
    PARTITION BY HASH (c1,c2)
    (PARTITION p1 TABLESPACE tbs_1,
    PARTITION p2 TABLESPACE tbs_2,
    PARTITION p3 TABLESPACE tbs_3,
    PARTITION p4 TABLESPACE tbs_4);
    I am getting error ORA-14005 Missing Key word Range.
    Thanks in advance for your help.

    Yaseer,
    Is it possible to create Non-Partitioned and Global Index on Range-Partitioned Table?
    Yes
    We have 4 indexes on CS_BILLING range-partitioned table, in which one is CBS_CLIENT_CODE(*local partitioned index*) and others are unknown types of index to me??
    Means other 3 indexes are what type indexes ...either non-partitioned global index OR non-partitioned normal index??
    You got local index and 3 non-partitioned "NORMAL" b-tree tyep indexes
    Also if we create index as :(create index i_name on t_name(c_name)) By default it will create Global index. Please correct me......
    Above staement will create non-partitioned index
    Here is an example of creating global partitioned indexes
    CREATE INDEX month_ix ON sales(sales_month)
       GLOBAL PARTITION BY RANGE(sales_month)
          (PARTITION pm1_ix VALUES LESS THAN (2)
           PARTITION pm2_ix VALUES LESS THAN (3)
           PARTITION pm3_ix VALUES LESS THAN (4)
            PARTITION pm12_ix VALUES LESS THAN (MAXVALUE));Regards

  • Which is Better Mac or Windows?

    Which is Better Mac or Windows?
    I got told that Windows is better than Mac.
    I need to know:
    1. How long an iMac lasts and how long a Windows computer last till they die and not work. (Prediction will do)
    2. Why lots of people hate Mac and say that Mac's are crap.
    3. Is a iMac worth the cost?
    4. Is an iMac harder to use than a Windows computer?
    Thank You
    From Apple is The Best!!!!!!!

    The case of Apple v. Windows is a subjective argument. Both systems have their merits, both have some aspects that some users don't like. Much depends on what you actually want to use them for.
    Here is some reading material for you!
    A Customer Experience Index report from Forrester Research came to the conclusion after studying almost 4,600 computer users' experiences from 2008 and asking them to score the ease of use of their computers, how enjoyable the experience is and whether or not the systems fulfill their owners' needs.
    http://www.appleinsider.com/articles/09/04/17/apple_trumps_windows_pc_makers_in_ customer_experience_study.html
    PC World (December 2010) has also found Apple products and after-sales service the most reliable:
    http://www.pcworld.com/article/211074/the_tech_brands_you_can_trust.html
    Switching from Windows to Mac:
    http://support.apple.com/kb/HT2514?viewlocale=en_US
    and
    http://support.apple.com/kb/HT2518?viewlocale=en_US

  • Which is better to use spotlight or finder

    I have been a Mac user for six years. Still, I am unsure how to find things most easily on my computer. I was searching for a folder I knew I had, using its exact name in Finder, and I could not locate it. I used it in Spotlight and found it right away. I've not used Spotlight too much, but should I use that instead of Finder?

    No rule on which is better to use, I suppose it is matter of preferences.
    You can certainly expand or restrict what Spotlight searches (indexes) for you via Spotlight's preferences.
    Here is a good free app that IMHO does a good job, EasyFind, at finding contents along with file names quite well.
    https://itunes.apple.com/us/app/easyfind/id411673888
    from this group
    http://www.devontechnologies.com/download/products.html

  • Which is better in terms of performance

    Dear All,
    which is better..
    to use FOR ALL ENTRIES      or
    to build a range and use  WHERE IN RANGE_TABLE     .. Does this have data limitation problem.
    is there a better method?
    Thanks,
    Raghavendra
    Moderator message - Please search before asking - post locked
    Edited by: Rob Burbank on Jul 7, 2009 10:53 AM

    I want to know which is betterThere's not enough information for anyone here to be able to tell you.
    Obviously the first one "looks" faster, but without knowing the tables, structure, data, indexes, platform etc. etc. etc. we won't have a clue.

  • In and EXISTS??which is better and why

    hi...
    Performance wise which is better IN or EXISTS and why..

    user8469486 wrote:
    hi...
    Performance wise which is better IN or EXISTS and why..DomBrooks pointed out that it may not matter due to query optimization rewrites.
    In theory it depends on circumstances.
    Correlated EXISTS subqueries tend to be efficient if the lookup is properly indexed. If the list of values is very small (especially if you only get one value) an IN subquery might be more efficient.

  • Which Is Better Time Machine or Backup

    So I just got a new iMac plus a 1T external drive. I have been using backup on my old mini-mac with an external drive plus I used the drive for iTunes and iPhoto. So which is better TM or the old backup (which I had no problems with). I really do not do a lot on the iMac, no work just iLife stuff.
    If I use TM can I partition the 1T to use one 500 GB for TM and another 500 GB for any odds and ends I simply want to store there (I plan to convert old videos to digital)?
    Thanks

    Hi! The drive for a bootable clone should be the same size as the internal main drive as should be the drive for TM. To create a bootable clone you can use the disk utility but I prefer SUPERDUPER and if you pay the 27.95 you get the ability to schedule auto backups! Tom
    To use the disk utility: Kappy's method
    How to Clone Using Restore Option of Disk Utility
    1. Open Disk Utility from the Utilities folder.
    2. Select the backup or destination volume from the left side list.
    3. Click on the Erase tab in the DU main window. Set the format type to Mac OS Extended (journaled, if available) and click on the Erase button. This step can be skipped if the destination has already been freshly erased.
    4. Click on the Restore tab in the DU main window.
    5. Select the backup or destination volume from the left side list and drag it to the Destination entry field.
    6. Select the startup or source volume from the left side list and drag it to the Source entry field.
    7. Double-check you got it right, then click on the Restore button.
    8. Select the destination drive on the Desktop and press COMMAND-I to open the Get Info window. At the bottom in the Ownership and Permissions section be sure the box labeled "Ignore Permissions on this Volume" is unchecked. Verify the settings for Ownership and Permissions as follows: Owner=system with read/write; Group=admin with read/write; Other with read-only. If they are not correct then reset them.
    For added precaution you can boot into safe mode before doing the clone.
    Message was edited by: Thomas Bryant

  • Which is better ? for loop or iterator ??

    Hi,
    I have one array list having more than 100 objects in it.
    I have two way to ietrator.
    1.
    for(int i=0; i<list.size(); i++)
    Object o = list.get(i);
    2.
    Iterator i = list.getIterator()
    while(i.hasNext())
    Object o ...
    which is better in performance ??

    Well okay. It's an easy optimization but I guess Sun
    doesn't want to "bail out" people who don't know
    their data structures.It won't always be optimal, though. If you use
    iterators and don't iterate the whole way through
    every time, it would degrade performance. It's hard
    for them to make assumptions about how you will
    access the data. So you punish people who do use it
    properly if you do that.I don't know. The optimization I suggested is isolated to random accesses in the linked list only. Say you access index 5. The node pointer corresponding to 5 is stored and if the next access is index 6 the node pointer you're looking for is pointer.next. There's no need to walk the list from the beginning.

  • Which is better (Boot Camp) or (Parallel / VMware Fusion)???

    Hi guys,
    I want to install Windows along OS X...
    now what is better?
    to install Windows via Boot Camp or via Parallel / VMware fusion??
    and if through one of the virtual machine softwares, which is BETTER?? the Parallel for Desktop or the VMware fusion one???
    Thank you

    Guitarcal wrote:
    I use both boot camp and vmware fusion. A neat feature of vmware fusion is you can access your boot camp partition as a virtual machine from vmware. This way, you can have both. I believe parallels might also let you do that but I have never used it. This has been helpful to me if I need to access a file from the boot camp partition quickly and easily without rebooting my computer.
    I agree with dwb that xp is probably going to be the best os to run through a virtualization software.
    I honestly don't think you can go wrong with either parallels or vmware fusion. There is also a FREE software package created by sun called VirtualBox.
    Here is the link to there home page: http://www.virtualbox.org/
    I hear and read that it is excellent as well.
    Hope this helps.
    I just installed parallels and you can use your bootcamp partition for the vm with parallels as well. Its pretty slick. Use it for light applications with parallel, reboot to bootcamp for graphics intensive ones.
    Cheers.

  • Which performs better for windows development, bootcamp or parallels?

    I have an imac at home and am using parallels to host a w7 vm, wherein I do some web and db development.  It is quite sluggish at times.  I think i may need to tweak the config to perhaps allocate more ram to it but i'm not sure.  I just picked up a macbook pro gen2 i7 and before I install a w7 vm or parttition i was wondering which is better, parallels or bootcamp?  I do like the interactivity that parallels gives me with respect to files between the w7 vm and lion, but am wondering it that is perhaps the achilles heal when it comes to performance.
    what's the preferred route by other developers out there?
    Thanks!

    that's what i thought.  thanks for confirming.  it sounds like i might be able to use parallels ALSO later on to access the windows bootcamp partition, based on reading another thread.

  • I wonder which is better

    I wonder which is better - Airport Extreme or Time Capsule for use at home.  I have a year old Macbook Pro (10.8 OS), am getting a new Macbook Air for use at work, and will be adding a second ipad.  Originally iI was researching to find an exgternal backup, but the Extreme sounds interesting.

    Install under BootCamp and you need to alter the boot sector of the drive.  Also you cannot create any more partitions.
    But Parallels can use the BootCamp Windows as is "image", giving you the choice of "how to use it when".

  • Estimation of Local Partitioned Bitmap Index size in Oracle

    Its datawarehousing project and the we have around 20 partitioned dimensional tables . The requirement is to create local partitioned bitmap index on almost all columns of dimension tables excluding primary key columns as they are already indexed.We need to estimate the size of index partitionwise.
    Please let me have if there is any ready piece of script which will help me in estimating size of bitmap local partitioned index.

    You may want to look into the DBMS_SPACE.CREATE_INDEX_COST procedure.
    Usage Notes* The table on which the index is created must already exist.
    * The computation of the index size depends on statistics gathered on the segment.
    * It is imperative that the table must have been analyzed recently.
    * In the absence of correct statistics, the results may be inaccurate, although the procedure will not raise any errors.

  • Which is better to use: BEx query or Web Application as an iView in portal?

    Hi gurus!
    Are there any experienced opinions, which is better - publish a BEx query in portal or publish a BEx Web Application in portal? Is it easier to alter the layout attributes etc. if I create a BEx Web Application first before publishing?
    What is the way of fixing for example filter item height if I publish BEx query in portal - is there a Web Application that it uses anyhow which I can fix? Or can I use in that case iView -properties in portal?
    Thankful for advice
    Sari

    ok, means i can use jsp:useBean tag for all my
    classes that are not actually bean. so it will be
    instantiated at run time and provide efficiency .No. Jsp:useBean is used for java bean components.
    >
    but when should i use import statement in my jsp and
    it happen at translation time so will it create any
    type of burden for my code if i import multiple
    classes.For non-java beans, you need to import the classes, period.
    It's not a burden, it's a necessity.

Maybe you are looking for

  • Using delete and FOR ALL ENTRIES

    Hi, We have a error message regarding the following code : Delete FROM TABLE FOR ALL ENTRIES IN lt_TABLE WHERE TABLE_KEY1  = LT_TABLE_KEY1 Could we use the For All entries with "Select" ? For information, the error message is "Unable to interpret "FO

  • How do I open a duplicate document in Photoshop CS?

    I;m sorry if this is a really stupid question, but how do I open an exact duplicate, ore create an exact duplicate, of a drawing in Photoshop? I need to edit out some objects, but I want to keep the original. Thanks in advance.

  • Syncing New Music from my New Mac Book Pro to my iPhone

    I just bought a new Mac Book Pro and have already started getting new music on it. I want to replace the old music on my iPhone with the new music on my Mac Book but everytime I sync it, it doesn't work. How can I replace the old music on my iPhone w

  • MCS 7845 Raid Boot Option

    Hello, I have MCS-7845-I3 on which I have configured RAID 1 after CTRL+H option. Once done wite the RAID configuration we installed windows 2003 server which also got installed succesfully. But when I reboot the system after OS installation then it f

  • Posting only customer master IDOC which has data change

    Hello experts, I need some help urgently. We have a scenario where a third party system sending customer master data using IDOC's. The issue is the sending system is posting the entire customer master thru IDOC's . Now we want to pick only those IDOC