It's a good idea to create an index on a column used for partitioning

I'm new to using partitions as well as the index. Can someone help me with the situation below?

I have a table defined as below


CREATE TABLE FACT_MASTER
(
PERIODCODE NUMBER (8) NOT NULL,
PRODUCT_CD NUMBER (10) NOT NULL,
DPT_CD NUMBER (3).
FACT_VALUE1 NUMBER,
FACT_VALUE2 NUMBER,
FACT_VALUE3 NUMBER,
.....
.....
.....
.....
.....
FACT_VALUE50 NUMBER
)
PARTITION BY RANGE (PERIODCODE)
(
partition P1 lower values (2002),.
partition P2 lower values (2003).
lower partition P3 values (2004),
...
..
)

This table is partitioned on the shop period code.

In a select query on the table, period code and product code are used. I intend to create an index to improve performance. Does make sense to include the period code column in the index? I intend to create indexes only for the product code column. I think that the partition itself behaves as an index for periodcode. Can someone tell me if this is correct? I use 10g.

Published by: user6794035 on January 21, 2010 08:47

Published by: user6794035 on January 21, 2010 08:50

If the index is an overall index, then yes it is worth including. But check that your SQL would actually benefit an overall index.

If your period still code in SQL, then the partition pruning will natuarally and would therefore not be required to be part of the index!

P;

Tags: Database

Similar Questions

  • can I create an index on the column of duplicate lines?

    Hello

    I tried to create a unique index on an existing table, containing the duplicate lines.

    I want to create an index of type everything on this column of duplicate rows.

    If possible pls suggest me.


    Kind regards
    Vincent.

    Yes.

  • You can create a name of different default used for the conversion of lead?

    We use CRMOD for a high volume call center and we have a son with the same name. According to the online help, the first name and the last name for the lead appear"in the default opportunity name field." That works fine, but it would make our lives easier if he does something different, like maybe the first name, family name and POSTAL code, or first name, family name and a timestamp. Is it possible to do? I know that users might do something manually, but then I get all the associated problems.

    Shmonty, at the moment it is only the field of interest is produced. We do not expect to provide customization functionality to the conversion of lead in a next version On Demand.

  • Tables and frames, are that they still a good idea to use in design

    What I know about SEO that they are not really a good idea.

    They seem to be able to be done in css, so is the best way to go...?

    Aren't good ideas, especially executives.

    Mainly, minimal tables used for data forms perhaps.

    If you can do without, so it is best to do. If you must use then do so, but in moderation.

  • Is it a good idea to add predefined effects using presetEffects.xml?

    Hello

    I am currently working on a plugin using scriptUI.
    One thing I do is add a control null, which have many options for expressions.

    My basic problem is I want to sort them into groups for better ergonomics. The only way I found to do this, add some excerpts to presetEffects.xml. (please tell me if you know another way)

    Presents all works. So great. But now, I think, is it really a good idea? My main concern is: will they stay there? When the user is updating to a newer version of AE they are replaced?

    Y at - it other problems, that I should be aware?

    Thank you
    Jakob

    If you would not add new effects to null-controller, I think that the best way to organize things, is to create custom predefined ( you can use this script )

    store as a binary file inside your script, and then apply this preset.

  • I do not understand this statement "It is a good idea to keep track that uses a bunch of Audio channels selected in the arrange window, unless you actively play or record on a software Instrument."

    It's a good idea to keep track that uses a bunch of Audio channels selected in the arrange window, unless you actively play or record on a software Instrument.

    Which no longer applies in Logic Pro X 10.2.3. In old versions of logic, selecting a range with a software instrument automatically would make this instrument in "Live" mode, which means that the instrument has begun to transform any MIDI in sound with a minimum of delay. This direct mode becomes an instrument need CPU power (on a single processor) and peut overload the audio engine. It is a waste of CPU if there is no direct game. Then select an audio track would ensure that No instrument is in direct mode. Now (LPX 10.2.2 or more) in direct mode can be turned on or off on a track, chosen or not - it is the R button on the track header.

  • G41 - update to Vista Edition family Basic is a good idea?

    sorta, I like to keep my g41 and was curious if an upgrade to Vista Home Basic is a smart idea. as you know, my hardware is a little outta date... Thanks in advance

    James

    Note of the moderator; subject published

    Fortunately, NVIDIA keeps supporting the legacy cards. If most of the distributions out there should work fine.

    If you're new to Linux, I would try Linux Mint on a CD or USB drive. Lubuntu is also a good idea because he goes easy on older hardware. You can continue to try different distros until you are comfortable with one or find one that you like best.

  • I have an idea to create a new gadget, I want to share with Microsoft.

    Gadgets

    I have an idea to create a new gadget, I would like to share with windows so how do I do it tell me one means other than call contact?

    http://social.msdn.Microsoft.com/forums/en-us/sidebargadfetdevelopment/threads

    Could find help here.

  • I think switching from Windows XP to Windows 7, but it seems complicated. Is this a good idea?

    I want to get rid of my security Computer Associates software. It overload my system.

    I believe that a combination of Windows 7 and Microsoft Security Essentials and Web of Trust would do a good job.

    Switching from XP to Windows 7 seems complicated. Is this a good idea?

    I would appreciate any advice. I am a former novice

    Thank you

    Get rid of CA security software and do general maintenance on your system would probably go a long way to improve your computing experience.  See help! My computer is slow!

    Unless you plan to buy a new computer with Windows 7 pre-installed, make sure that your hardware is compatible with Windows 7 (for the most part, this means that Windows 7 drivers are available; problems are more likely to occur with older laptops).  Download and run the Windows 7 Upgrade Advisor.

  • Restore my HP Pavilion laptop to factory settings it is a good idea?

    I recently accidentally changed my default settings of the police, I did everything I could, except for the restoration of my hard drive to its default settings. However, since I bought this computer a year ago, I noticed faster internet and less connection issues, as well as some other problems fixed. I'd be willing to sacrifice my default settings for performance, so I was wondering if it would be a good idea to restore my computer to its default settings. Also, I currently do not have records to back up my data, so I'll need to do the same. Another thing, my HP Advisor advised me not to restore my laptop unless I really need to.
    Yet one thing, lightning struck our House a few months ago. Unfortunately, I accidentally turned off my father the day before surge protector. Anyway, he destroyed all of our equipment to wireless internet, as well as the fan of my father. We then contacted AT & T and they sent us a few tricks, with phone, download order software online to make our internet work. I do not have these registered Web sites and I don't know how in the world I would like to reinstall that software. So, I was wondering if I drop everything this software if I did a factory restore.
    Thank you for your time and support, rlnachtigal

    I'm with your HP consultant. Restoring default values should be a last
    Resort. If you need assistance resetting your fonts, start another thread for
    which. I'm sure you will find the repair of fonts one relatively simple
    task, compared to the restoration of your PC.
     
    "lnachtigal" wrote in message news: ec23156a-a398-40da-9465-20dd2c358d08...
    > I recently accidentally changed my default settings of the police, I did everything what I
    > could, except for the restoration of my hard drive to its default settings.
    > However, as I bought this computer a year ago, I noticed
    > faster internet and connection issues, as well as other less
    > issues fixed. I'd be willing to sacrifice my defaults
    > performance, so I was wondering if it would be a good idea to restore my
    > computer to its default settings. Also, I currently do not have the disks to
    > save my data, so I'll need to do the same. Another thing, my
    > HP Advisor advised me not to restore my laptop unless I really need to.
    > One last thing, lightning struck our House a few months ago.
    > Unfortunately, I accidentally turned off my father surge protector the
    > night before. Anyway, it destroyed all our wireless internet,
    > fan of my father. We then contacted AT & T and they sent us a few
    > Stuff, along with order of phone, download software online
    > to our internet job. I do not have these registered Web sites and I don't have
    > know how in the world I would like to reinstall that software. So, I was wondering
    > if I drop everything this software if I did a factory restore.
    > Thank you for your time and support, of rlnachtigal
    >
     
     
  • Good idea to save to shared dir *.db files / sdCard?

    Hello
    I was wondering, is it a good idea to save files *.db APP to one of the directories in the file system to backup purposes or Let's save it in the directory without extension ".db"?

    Any other way to back up the data if sqlite is used?

    I'm not totally "want to share my table with any organization!

    Thank you

    S.

    Bad word really like the hash usually means change the bytes to something unreversible in this case, I meant just dressing up the bytes on the eye if you load a file into a byte editor it will be immediately obvious, it is a database file.

    So reverse the order of the bytes in the file or write as hex codes (will double the size of file), something along these lines that will prevent a casual viewer.

  • is the power line Networking is a good idea to build werkgroep netwerk with windows 7

    Hello

    1-is the power netwerk line is safer than wifi or it has also some drawbacks.

    2-can we replace cables in small business with power line newterk adapters or it is not a good idea.

    3 can be power supply adaters also suspect to sniff.

    Thank you

    Johan

    "Broadband PLC" was the provision of access to internet via incoming food, not something that was very common or successful.

    Your proposal is entirely internal is so different, for example, they refer to it "are on the same range" as ADSL. HomePlug PowerLAN solutions do not have something like this beach as it is designed to work with a main inner ring.

    Yes, the technology is much improved and the standards are now closely identified. Most units also offer an encrypted mode that allows only of these units in a group sure talking to each other.

  • Is it a good idea to replace the 2.5 "HDD (with partition recovery inside) with a SSD?

    Hi all

    I have a ThinkPad E420 with the recovery partition in the HARD drive. I intend to sell the excessive 750 GB 5400 RPM HARD drive and replace it with a 120 GB SSD, because I need responsiveness instead of ability. Is this a good idea?

    Thanks in advance.

    Best regards

    Haris

    Lenovo: 'as sensor airbag, Active Protection System can detect sudden changes in motion and temporarily stop the hard drive to help protect your valuable data against certain accidents that might happen because of cell phone accidents every day."

    This tool is designed to protect not the mechanics of the SSDS. It would not apply in your case.

  • I have an idea to create a cartoon. I have the idea and the script but I can't just think how to do it. Anyone?

    I have an idea to create a cartoon, I just can't figure out how.

    Flash Pro only I just renamed to animate by Adobe, then most YouTube videos go by the old name.

    You can search here: basics of flash pro animation

    Which would give you a lot of video tutorials to see how to get started.

  • Is that a provision thin good idea system drive?

    Just wonder if it's a good idea to streamline the MS 2012 System Disk (disk C) available?

    One argument is that the system drive does not change frequently.  However, another argument is thin provisioning may impact performance of the system, System especailly drive.

    Your opinion is requested.

    In my opinion, it would depend on the case of the server.

    In case the server is used as an application server and associated application files are still stored on the system disk, which is default, then you should go to the thick provisioning.

    However, if it's going to end up like database/file server where work real files are stored on a separate disk, then you can implement your thin disk system.

Maybe you are looking for