What combination of partitioning Method is better?

Hi everybody,
I have the following problem:
I have a big table (more than 1000 000 000 lines).
Create table sales (
Id_dept varchar(1),
sales_day date,
day varchar(2),
Qte number(5)
I would partition this table. I have only 9 departments and I load data day by day. What combination off partitioning is better?
Solution 1) RANGE partitioning by date and LIST sub partitioning by department.
Or
Solution 2) RANGE Partitioning by department (id_detp) and HASH sub partitioning by date.
The first solution gives me administration tasks facility (add and drop partitions will be easy: day by day).
The second solution seems to me better for partition pruning.
95% of requests concern only one department like the following request:
Select * from sales where id_dept= :x
and sales_day in (…), and …
In solution 2 I filter immediately 8 other department partitions.
But as I have only 9 departments, I wonder if the range partitioning is ok for department. In other word is the range partitioning algorithm is goes well to use only one value in place of a range of values?
Partition by RANGE (id_dept)
Subpartition by HASH(sales_day) subpartitions 90
(Partition part1 values less than (2),
Partition part2 values less than (3),
Partition part3 values less than (4),
Partition part9 values less than (9));
Could you give me on advice please
Regards
Azizollah

Solution 2 is out of the question as you've stated it. First, you would typically range partition by a value such as a date and no need for a Hash when you have fields which lend themselves to logical segregation (sales_day and Id_dept). A hash is best for tables in which you don't have fields that provide any sort of logical separation.
If you are partitioning, it is basically to make managing your tables easier (e.g.. partition pruning). Therefore, pruning by date and not by dept makes more sense. Without knowing exactly what you want the partitioning for or how you are using your tables, can't say do this or that. But given your table, I'd take a look at doing a composite of range (date) as the top-level scheme with list (dept) as the sub-partition.
For documentation, refer to:
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14223/parpart.htm#g1020112

Similar Messages

  • What are the avlble methods to Measure  Quality of Customer Service in SAP

    Hi
    We are in Retail business, and I would like to know what are the available methods to measure the Quality of Customer service in SAP CRM. Help us to get the required information?
    Best regards

    Venkat,
    there are two aspects to this :
    1. The overall philosophy ( for want of a better word ) of QOS for any service - there is a lot of thought that has gone into measuring QOS for a service - hence I would say that QOS is more related to the specific service than the entire domain.
    2. Measuring the quality of service in terms of what ? - there are a lot of KPIs for the same some of them could be :
    Average time taken to service a customer
    Does the customer get all that they want in the store or only some of the items ( partial fill)
    Are the products neatly arranged and easy to access
    average time taken for the customer to get what h/she needs
    customer facilities like parking / childern play area etc
    Availability of attendants / helpers for the customer
    home delivery
    credit options... etc etc and the list could go on endlessly ... as you can see it is very specific to the service being provided and accordingly you will get KPIs for the same.
    As for measauring the same - there are umpteen ways to do the samedepending on the place it gets recorded - you can have surveys / web surveys / POS details etc etc - what is it that you are looking for specifically ?
    Arun
    Hope it helps....
    Message was edited by:
            Arun Varadarajan

  • Will JDeveloper support INTERVAL and REFERENCES partitioning methods soon?

    JDeveloper is a fantastic tool, and I'm very impressed with its data modeling capabilities as they are quite robust. However, currently its support for Table Partitioning is limited to the feature level of Oracle 10g, as it does not support 11g INTERVAL or REFERENCES partitioning methods, nor the Composite List partitioning methods List-Range, List-Hash, and List-List.
    Any idea when JDeveloper will support these Partitioning enhancements available in Oracle Database 11g? If it's in the works, I'd be happy to help beta test it!
    Best regards,
    Terry

    Hi Terry
    I love it that you are working with the data modeling and would love to hear how you are using it. Please email me direct with more info
    We are working to get composite partitions (11g) into a future release but I don't have any timeframe for you at the moment.
    rgds
    Susan Duncan
    Product Manager
    susan.duncan@oracle

  • Which method is better to the performance?

    Using SQLs at front side or using stored procedures at back side, which method is better to the performance?

    jetq wrote:
    In my view, it maybe have other difference, for example,
    Using stored procedure, you don't need to recompile the script every time to be executed,
    and use the existing execute plan.what if first time procedure is called after DB start?
    PL/SQL does not have EXPLAIN PLAN; only SQL does.
    But using SQL statement from application layer may be different.different than what exactly.
    SQL is SQL & can only be executed by SQL Engine inside the DB.
    SQL statement does not know or care about how it got to the DB.
    DB does not know or care from where SQL originated.

  • I need to install on macbook pro (early 2008) one hard disk 1 TB. Is it possible? What kind of HD is it better?

    I need to replace the HD of my macbook pro (early 2008) with another one with 1 TB storage capability. Is it possible? What kind of HD is it better?
    Thanks
    Enrico

    Take a look at what is offered by Mac specialists, such as OWC http://www.macsales.com and see what drives they handle.  Their drives are all guaranteed to be compatible with Macs.  And they have on-line videos that show how to do the installation.
    Even if there are problems getting them to deliver where you live, you can get ideas of what works well with your system.

  • What happened to the Lightroom 5 Beta forum? Deleted, not archived or merged?

    What happened to the Lightroom 5 Beta forum? I understand that LR5.2 is now in full release, but it would be nice if the Beta forum was locked and archived for reference. It seems to have been completely deleted, along with some detailed feedback by myself and other Beta testers. (I can't find it if it is archived, anyway.) None of my many, many LR5Beta forum contributions are listed in my "Content" tab in my Adobe profile. All of the links to the LR5Beta discussion in which I contributed to (such as http://forums.adobe.com/message/5271729#5271729 ) lead me to this message:
    "Unauthorized
    It appears you're not allowed to view what you requested. You might contact your administrator if you think this is a mistake."

    Big thumbs up for Pete.Green and Daniel T! Thank you for this incredibly fast response! I worked very hard on explaining my "Advanced Adjustment Brush" proposal back in May 2013, and I am glad that it is again available for reference... in fact, even better, as it appears that the thread is now fully unlocked and availble to reply to. I still firmly believe this proposal is the way forward for Lightroom's local adjustment tools in the future.  I hope that the remainder of the LR5Beta forums will eventually be brought back for reference.

  • What are the different methods to find the user-exit for any requirement?

    Hi Everybody,
    What are the different methods to follow to find the user-exit for any requirement?
    Thanks & Regards,
    Nagaraju Maddi

    The following program search all the user exits involved with a T-code:
    Selection Text: P_TCODE: Transaction Code to Search
    Text Symbols: 001 - Enter the Transaction Code that you want to search through for a User Exit
    REPORT z_find_userexit NO STANDARD PAGE HEADING.
    *&  Enter the transaction code that you want to search through in order
    *&  to find which Standard SAP® User Exits exists.
    *& Tables
    TABLES : tstc,     "SAP® Transaction Codes
             tadir,    "Directory of Repository Objects
             modsapt,  "SAP® Enhancements - Short Texts
             modact,   "Modifications
             trdir,    "System table TRDIR
             tfdir,    "Function Module
             enlfdir,  "Additional Attributes for Function Modules
             tstct.    "Transaction Code Texts
    *& Variables
    DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
    DATA : field1(30).
    DATA : v_devclass LIKE tadir-devclass.
    *& Selection Screen Parameters
    SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
    SELECTION-SCREEN SKIP.
    PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN END OF BLOCK a01.
    *& Start of main program
    START-OF-SELECTION.
    * Validate Transaction Code
      SELECT SINGLE * FROM tstc
        WHERE tcode EQ p_tcode.
    * Find Repository Objects for transaction code
      IF sy-subrc EQ 0.
        SELECT SINGLE * FROM tadir
           WHERE pgmid    = 'R3TR'
             AND object   = 'PROG'
             AND obj_name = tstc-pgmna.
        MOVE : tadir-devclass TO v_devclass.
        IF sy-subrc NE 0.
          SELECT SINGLE * FROM trdir
             WHERE name = tstc-pgmna.
          IF trdir-subc EQ 'F'.
            SELECT SINGLE * FROM tfdir
              WHERE pname = tstc-pgmna.
            SELECT SINGLE * FROM enlfdir
              WHERE funcname = tfdir-funcname.
            SELECT SINGLE * FROM tadir
              WHERE pgmid    = 'R3TR'
                AND object   = 'FUGR'
                AND obj_name = enlfdir-area.
            MOVE : tadir-devclass TO v_devclass.
          ENDIF.
        ENDIF.
      * Find SAP® Modifications
        SELECT * FROM tadir
          INTO TABLE jtab
          WHERE pgmid    = 'R3TR'
            AND object   = 'SMOD'
            AND devclass = v_devclass.
        SELECT SINGLE * FROM tstct
          WHERE sprsl EQ sy-langu
            AND tcode EQ p_tcode.
        FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
        WRITE:/(19) 'Transaction Code - ',
        20(20) p_tcode,
        45(50) tstct-ttext.
        SKIP.
        IF NOT jtab[] IS INITIAL.
          WRITE:/(95) sy-uline.
          FORMAT COLOR COL_HEADING INTENSIFIED ON.
          WRITE:/1 sy-vline,
          2 'Exit Name',
          21 sy-vline ,
          22 'Description',
          95 sy-vline.
          WRITE:/(95) sy-uline.
          LOOP AT jtab.
            SELECT SINGLE * FROM modsapt
            WHERE sprsl = sy-langu AND
            name = jtab-obj_name.
            FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
            WRITE:/1 sy-vline,
            2 jtab-obj_name HOTSPOT ON,
            21 sy-vline ,
            22 modsapt-modtext,
            95 sy-vline.
          ENDLOOP.
          WRITE:/(95) sy-uline.
          DESCRIBE TABLE jtab.
          SKIP.
          FORMAT COLOR COL_TOTAL INTENSIFIED ON.
          WRITE:/ 'No of Exits:' , sy-tfill.
        ELSE.
          FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
          WRITE:/(95) 'No User Exit exists'.
        ENDIF.
      ELSE.
        FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
        WRITE:/(95) 'Transaction Code Does Not Exist'.
      ENDIF.
    * Take the user to SMOD for the Exit that was selected.
    AT LINE-SELECTION.
      GET CURSOR FIELD field1.
      CHECK field1(4) EQ 'JTAB'.
      SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
      CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.

  • What type of partition should I use? Range or Hash or ..?

    Hi,
    I am on Oracle 8.1.7.4 .
    I have a table with 10 million rows and looks like its a good candidate for partitioning.
    There is a varchar2 column and the data is evenly distributed on the string value. If I want to partition the table on that string value what type of partitioning can I use. How can I give the range, if I use range partition, on the string value ?
    Can/Should I use hash partitioning?
    I know that there is a list partitioning in O9i, but I am on 8i.
    Please help.
    Regards

    <quote>
    I have a table with 10 million rows and looks like its a good candidate for partitioning.
    </quote>
    Table volume, in itself, is not enough to warrant partitioning … hope you have some other reasons.
    <quote>
    … but would like to partition the table on the mentioned varchar2 column, so that queries would be efficiant.
    </quote>
    Since you don’t mention the actual query or class of queries, maybe it is worth mentioning that partitioning could speed up some queries but also can slow down a lot more other queries.
    <quote>
    So, how can i re-create the table partitioned on a varchar2 column
    </quote>
    No different than numbers or dates?
    create table tp
    ( str   varchar2(10)  not null
    ,fill  char(20)      not null
    partition by range(str)
    ( partition p1 values less than ('F')
    ,partition p2 values less than ('L')
    ,partition p3 values less than ('R')
    ,partition p4 values less than (maxvalue)
    insert into tp
    select substr(object_name,1,10), lpad('x',20,'x')
    from user_objects
    flip@FLOP> select * from tp partition (p2);
    STR        FILL
    F1         xxxxxxxxxxxxxxxxxxxx
    GENERATE_R xxxxxxxxxxxxxxxxxxxx
    IPSDEV.US. xxxxxxxxxxxxxxxxxxxxThe link to Tom’s article is fine … it just happens to be one of the few threads he’s not mentioning that partitioning is not the magic fast=true mechanism … look for some other articles on partitioning and you’ll quickly discover his views on this subject.
    There may be a case for partitioning … but you haven’t presented any reasonable justification for it … so, why bother?

  • I'm moving to an imac from a PC. I want to move my itunes library from the PC to my new imac. What is the best method and where can I find instructions?

    I'm moving to an imac from a PC. I want to move my itunes library from the PC to my new imac. What is the best method and where can I find instructions?

    Move iTunes from PC to MAC, http://www.macworld.com/article/146958/2010/03/move_itunes_windows_mac.html

  • What is the best method of backing up my digital files (catalog) in the Photoshop Elements Organizer

    What is the best method or service for backing up my digital files (catalog) in the Organizer from Photoshop Elements 12. Since there no longer is  the automatic  Elements sync available I do not know what to choose. I have tried to back this up using my external drive, but I cannot find the digital images per se. I see the entire program but not the catalog of pictures. Also, I have a windows operating system and Adobe  Revel offers no edit capabilities with this OS.

    I'm in a similar situation including movies I've purchased from iTunes...
    Here's my setup:
    I have all my iTunes data (music, movies, etc.) as well as about 10 GB of photos stored on a nework storage device that uses RAID-5 with SATA disks. This is basically a little toaster-sized NAS machine with four hard drives in it (www.infrant.com). If one of these drives dies, I get alerted and can insert a new one without missing a beat since the data is stored redundantly across all drives. I can also just yank out any one of the four drives while the thing is running and my data is still safe (I tried this after I bought it as a test).
    That's how I prevent problems with a single disk... Redundancy
    Now onto "backups"...
    Nightly, my little RAID toaster automatically backs itself up to an attached 250GB USB drive. However, these backups are only of my critical data... documents, photos and home movies... I don't bother backing up my "Hollywood" movies since I can live without them in a disaster.
    ... I actually don't permanently store anything I care about on a laptop or a desktop. It all goes on the NAS box (Network Sttached Storage) and then my other computers use it as a network drive. It's attached via Gigbait to my main computer and via wireless to most everything else.
    My achilles heel is that I don't store anything outside of my house yet. If I was smart, I'd alternate two USB drives attached to my NAS box and always keep one of them somewhere else (Safe Deposit Box?).
    ...and that's just one way to do it.
    -Brian

  • What do I do with the Beta 10.9.3 program I've been using these past several weeks, now that 10.9.3 is out and downloaded.......I still have 'feedback assistant' in my dock........are there files I need to do something with ???  thanx

    What do I do with the Beta 10.9.3 program I've been using these past several weeks, now that 10.9.3 is out and downloaded.......I still have 'feedback assistant' in my dock........are there files I need to do something with ???  thanx..............75 yrs old and still swimmin' upstream.........

    from : OS X Beta Seed Program FAQ
    How do I get a shipping version of OS X back on my Mac?
    To get a shipping release of OS X on your Mac, you can simply install the final version of the software you are testing when it appears in Software Update.
    How do I leave the OS X Beta Seed Program?
    To leave the program, visit the Leave Program page and follow the instructions to remove your Apple ID and your computers from the OS X Beta Seed Program. This will stop pre-release updates from appearing in the Mac App Store on your computers.
    You only need to do more than you already have, if you'd rather not see future pre-release updates.

  • What is a partition?

    I have an MacBook Pro 15% w/Retina (whatever that means), bought in April 2014, but I have no idea whether it's Lion, or Maverick (although I think it is), or something else.
    I've read a lot here about partitions and, since I am computer illiterate, I always have lots of question.
    So...
    1.     What is a partition? 
    I think that, whatever they are, partitions limit the amount of storage space each "partition"ed area has available.
    2.     How does a partition work, and is there any (rational) reason to make them?
    The only thing I do a lot of on my computer is...
    saving lots of pictures from friends/family; 'writing' manuscripts; and other frivolous stuff. 
    Otherwise, I use very little of my computer for my employer (maybe...2%, if that).
    Other questions may follow.
    Any info you can give would be greatly appreciated.  Thank you.

    The Retina part of the name refers to the high resolution screen. Much smaller pixels which produce a noticeably "cleaner" display since the pixels are too small for most people to see. So for example, a photo looks more real when you can't see the tiny squares that make up each pixel.
    A partition refers to the logical space, or multiple spaces on a single hard drive. Here's an example:
    Note that I have two physical hard drives in my Mac Pro, represented by the two left indented names. Each is broken up into three partitions of various size.
    How, or if you break up a drive, rather than using the whole drive as a single partition depends on your idea of organization, and how you prefer to use your computer. My logic here is:
    Drive 1:
    Mac Pro: Only used for applications and the OS. Other than Outlook, which insists on storing its data in your user account, there's virtually nothing on this drive that ever changes, so I keep this partition small. Just the space needed for all of my apps and a good amount of free space for the OS to use as needed.
    Files: Where I toss stuff I've downloaded but haven't yet sorted and moved to an external drive. Otherwise, it's just a big area of free space for apps to use. Like Photoshop, Premiere Pro, etc. In a case such as yours, that's where I would keep my photos and other documents rather than on the drive with my apps and OS. That's just my preference to keep data separate from everything else.
    Windows 7: Self explanatory.
    Disk 2:
    Video: Mucho space set aside for video editing. It's easy to eat up tons of space when capturing raw video and rendering assembled video.
    Mavericks: A separate drive I use to test software I may want to use. Contains only the OS and some third party utilities. It's also what I use to do any maintenance on my main drive since you can't run a utility such as DiskWarrior on the same drive you're started up to. Basically, I can load whatever junk I want to on it for testing, then restore it back to its original state from a backup so it's always clean.
    Snow: Snow Leopard (10.6.8), which I was using for scanning since the software is PowerPC and won't run in Lion or later. However, I have a Mac Mini to run the scanner from now, so I could really remove this partition and merge it into Mavericks.

  • What is the best method to store session variables

    As the title says, what is the best method to store session
    variables in a Production environment?
    I have been reading the posts on sessions and have been
    getting different ideas on where to store session variables, in a
    db, registery, cookies etc etc
    Can someone clarify possible best practice on this matter?
    Matrix

    From my experience, db is the best to store client variable
    data. Registry will cause you trouble in future (when data gets
    overloaded) and cookies will not serve the purpose for a few % of
    your users.

  • What is the best method for moving iTune Libraries from Old to New Computer

    Hello,
    Thanks in advance for any assistance you may offer.
    My Sony Vaio Desktop recently died and untimely death, so I just purchased an HP Notebook. I was trying to wait out the release of the possible update of the Macbook line. However the old computer didn't agree. This HP will tie me over till a new release.
    I've been doing weekly backups for over 3 years with a backup drive from Western Digital. At this point I just want to transfer my music in iTunes and applications from the App store that are loaded on to my iPod Touch into the new computer and then reauthorize and sync.
    My question is what's the best method. Oh another problem I'm having includes the latest iPhone & iPod Touch software problem of 3rd party apps not working along with the vanishing of my music on the Touch.
    Any guidance would be much appreciated.

    Open up a fresh copy of iTunes. Point iTunes in the direction of your Western Digital Harddrive. Import Folders.
    1. New Copy
    2. Edit -> Preferences -> Advanced -> General -> Change -> <the address of the iTunes library on WD>
    3. File -> Add Folder to Library -> <Select iTunes folder on WD>
    Always keep a backup of your iTunes Library file and the iTunes XML Document. If you have those, then it might be just as simple as copying those to your iTunes file folder. If you are not sure where they are, then do a search for iTunes.xml.

  • HT1382 What is the best method to backup an Iphone 3G and then install newer ios without losing any info on the phone?

    What is the best method to backup an Iphone 3G and then install newer ios without losing any data in the phone?

    How to BackUp  >  http://support.apple.com/kb/ht1766
    Key2Paradice wrote:
    What is the best method to backup an Iphone 3G ...
    Note:
    The iPhone 3G can only update as far as iOS 4.2.1
    Connect to iTunes on the computer you usually Sync with and “ Check for Updates “...
    If an Update Appears Install it... if not... you are up to date for your particular Device...
    See the Using iTunes Section Here...
    How to update your iPhone, iPad, or iPod touch

Maybe you are looking for

  • I have downloaded OSX v10.7 lion and i still can't get it to work I need help!!!

    I have downloaded OSX v.10.7 Lion 3 times...I have gone through all the steps downloaded installed everything and re started my computer and each time it does nothing! I am sick of this and really starting to hate my brand new " MacBookPro"....My fam

  • Deleting master data after loading transactional data using flat file

    Dear All, I have loaded transaction data  into an infocube using a flat file . While loading DTP i have checked the  option "load  transactional data with out master data exists" . So transactional data is loaded even if no master data is there in BW

  • Portege M100 - Toshiba Utilities setup hangs

    I have a Portege M100 (prob M100-112) that has been "hacked" about by its previous owner and I am trying to re-install all the tools and drivers. In particular I want to upgrade the BIOS to v1.50 (from 1.30). The BIOS upgrade tool (windows) complains

  • Page Up and Down with space bar

    After I installed Safari 3.0.5, when I press the space bar typing this post, the web page goes down. I want to know if somebody else get the same problem, and how do I prevent that? or maybe is a new bug. With Safari 3.0.4 this keyboard shortcut work

  • Some photos come up for a second then become blank

    On some sites, the photos flash by, but when I put my cursor on them, that part of the photo will be enlarged to show details.