Rewrite the query to improve the performance and the optimized below cost.

Oracle 10g.

----------------------

Query

UPDATE FACETS_CUSTOM. MMR_DTL

SET

CAPITN_PRCS_IND = 2,

FIL_RUN_DT = Current_fil_run_dt,

ROW_UPDT_DT = dta_cltn_end_dttm

WHERE CAPITN_PRCS_IND = 5

AND HSPC_IND = 'Y '.

AND EXISTS (SELECT 1

OF FACETS_STAGE. CRME_FUND_DTL_STG STG_CRME

WHERE STG_CRME. MBR_CK = MMR_DTL. MBRSHP_CK

AND MMR_DTL. PMT_MSA_STRT_DT BETWEEN STG_CRME. ERN_FROM_DT AND STG_CRME. ERN_THRU_DT

AND STG_CRME. FUND_ID IN ('AAB1', '1AA2', '1BA2', 'AAB2', '1AA3', '1BA3', ' 1 B 80 ', ' 1 HAS 80 '))

AND EXISTS (SELECT 1

OF FACETS_CUSTOM. FCTS_TMS_MBRID_XWLK XWLK

WHERE XWLK. MBR_CK = MMR_DTL. MBRSHP_CK

AND MMR_DTL. PMT_MSA_STRT_DT BETWEEN XWLK. HSPC_EVNT_EFF_DT AND XWLK. HSPC_EVNT_TERM_DT);

Explain the plan of the query

-----------------------------------------------

Hash value of plan: 3109991485

-------------------------------------------------------------------------------------------------------

| ID | Operation | Name                  | Lines | Bytes | Cost (% CPU). Time |

-------------------------------------------------------------------------------------------------------

|   0 | UPDATE STATEMENT.                       |     1.   148. 12431 (2) | 00:02:30 |

|   1.  UPDATE                       | MMR_DTL |       |       |            |          |

|   2.   SEMI NESTED LOOPS.                       |     1.   148. 12431 (2) | 00:02:30 |

|*  3 |    HASH JOIN RIGHT SEMI |                       |    49.  5488. 12375 (2) | 00:02:29 |

|   4.     TABLE ACCESS FULL | FCTS_TMS_MBRID_XWLK |  6494 | 64940 |    24 (0) | 00:00:01 |

|*  5 |     TABLE ACCESS FULL | MMR_DTL |   304K |    29 M | 12347 (2) | 00:02:29 |

|*  6 |    TABLE ACCESS BY INDEX ROWID | CRME_FUND_DTL_STG |     1.    36.     5 (0) | 00:00:01 |

|*  7 |     INDEX RANGE SCAN | IE1_CRME_FUND_DTL_STG |     8.       |     1 (0) | 00:00:01 |

-------------------------------------------------------------------------------------------------------

Information of predicates (identified by the operation identity card):

---------------------------------------------------

3 - access("XWLK".") MBR_CK "=" MMR_DTL. " ("' MBRSHP_CK")

filter ("XWLK". "HSPC_EVNT_EFF_DT" < = INTERNAL_FUNCTION ("MMR_DTL". " PMT_MSA_STRT_DT') AND

'XWLK '. "" HSPC_EVNT_TERM_DT "> = INTERNAL_FUNCTION ("MMR_DTL". "PMT_MSA_STRT_DT")) "

5 - filter("CAPITN_PRCS_IND"=5 AND "HSPC_IND"='Y')

6 filter (("STG_CRME". "FUND_ID" = "1 HAS 80 ' OR 'STG_CRME'." " FUND_ID "="1AA2"OR"

'STG_CRME '. "FUND_ID"= '1AA3' OR 'STG_CRME'. "FUND_ID" = "1 B 80 ' OR 'STG_CRME'. '. "FUND_ID" = "1BA2" OR "

'STG_CRME '. "FUND_ID"= "1BA3" OR "STG_CRME". "FUND_ID"= "AAB1" OR "STG_CRME". ("FUND_ID"="AAB2") AND

'STG_CRME '. "" ERN_FROM_DT "< = INTERNAL_FUNCTION ("MMR_DTL". "PMT_MSA_STRT_DT") AND "

'STG_CRME '. "" ERN_THRU_DT "> = INTERNAL_FUNCTION ("MMR_DTL". "PMT_MSA_STRT_DT")) "

7 - access("STG_CRME".") MBR_CK "=" MMR_DTL. " ("' MBRSHP_CK")

I could not optimize this query for best performance and optimized the cost... Can someone guide me on this.

Thank you

DS

Advertisement

You think you're going to lines updates 85K, Oracle think it will update a line.

At the time where the existence of the first test runs that oracle think already up to 49 lines, which is probably why he uses the loop join nested for the second test. (In your version of Oracle, the subquery introduced existence a very bad assumption (small) on the amount of data will survive).

It is possible that you will get better performance if you hint Oracle using a hash join for testing the existence - and you might want to think what test will eliminate most of the data and that we can first force.

Having said that, however, note that MMR_DTL research is a considerable fraction of the cost of the query - and an analysis is an easy thing for Oracle cost properly - if, despite your comments on update a column with a clue to this topic, you will find that the query can be more effective if you use an index. This is more likely to be the case if data ' WHERE CAPITN_PRCS_IND = 5 AND HSPC_IND = 'Y' "is well grouped (perhaps the latest data added to the table).". "  You could then reduce the cost of maintaining this index by creating an index based on a feature that indexes only the lines where the predicate are both true so that the 2 update deletes the index entries and allows the index remain as thin as possible.

Concerning

Jonathan Lewis

Tags: Database

Similar Questions

  • HIT / ME for Dell EQL - this will improve line performance and capacity

    Hello

    I'm new to Dell EQL. Got a server running VMware ESXi 5.1 U1 executes a single virtual machine with Windows 2008 R2 and MS SQL 2008 R2.

    Tried the replication between the size of the replica EQLs has reached 500 MB to 1 GB despite the growth of the database per day is around 50 MB only.

    I read about a white paper, which suggests to use the direct storage. In short I will introduce a volume of the virtual machine directly via the Windows iSCSI initiator.

    In fact, I did already saw minimal improvement.

    Will install HIT / solve ME my problem of replication?

    What KEY / to ME in order to protect MS SQL?

    He is able to save only the changes to the SQL database and not these useless bits that are my replication problem...

    Thank you

    Paul

    Hello

    No. HIT / ME and VSM allow the creation of snapshots and much more consistent replicas.  Since the cached are flushed to storage before the process of creation.  HIT / VSM and I do very differentlly under the covers, but the end result is the same.

    HIT / the advantage ME in addition to work directly with SQL, Exchange, and SharePoint.  The HIT / ME docs have more information on the benefits of the use of HIT / me.

    Nor will affect the size of the replication. EQL table is a block storage device. The blocks are organized in large pages.  When you edit a page, the entire page is allocated.

  • Satellite P300 - 219 PSPCCE - what should be the optimal heat of CPU?

    Hello there;

    I use for my laptop Satellite P300-219 (PSPCCE) newly bought about a week now. When you type I can't help noticing, the place where I put my left hand, I want to say the empty space to the left of the touchpad, feels much too hot. I looked for the manual and I have learned that it is where the CPU.

    Then I searched for a way to measure the heat of CPU, and after having tested some programs with too many different measures, I led to believe that the 'CPUID hardware Manager"gives the best results, after you set the correct value TJUNCTION.

    Here are the steps I get today while typing this message:

    ACPI hardware monitor
    Temperature 0 45note ° C (112 ° F) [0xC6E] (THRM)

    Intel Mobile Core 2 Duo T6400 hardware monitor
    Temperature 0 56a ° C (° F 132a) 0 x [31] (Core #0)
    Temperature 1 54a ° C (° F 129a) 0 x [33] (Core #1).

    Monitor hardware ATI Mobility Radeon HD 3650
    53A temperature 0 ° C (° F 127a) (GPU Core)

    Hardware Hitachi HTS543232L9S monitor
    Temperature 0 37â? Â ° C (98A? Â ° F) (0 x 25) (Assembly)

    From now you mind, windows taskbar indicates that I use roughly about 15 & 35% CPU. After a little use, I even though the CPU heats by a maximum of 69a ° C.

    The truth is, I don't know what to do with these readings, is my laptop which works very well, or he has problems? Could someone please tell me what should be the optimal level of heat for a P300, or where I can learn?

    Thanks in advance.

    Hello

    In my opinion, everything is ok with your laptop, buddy and the temperatures are quite good. Don t be to worry about this!
    If your laptop could overheat, it would have to close or freeze immediately. If this isn't the case, everything is ok with the temperatures.

    What you can do is to change the cooling method in Windows power management. Here, you change between performance and battery optimized cooling.

    By the way: you should also clean your laptop at any time. I clean my laptop every 3-4 months using a jet of compressed air. This blows the dust from the cooling fans.

    Welcome them

  • What is the best software to improve performance and free hard disk cleanup. I used MacKeeper, but I'm tired of paying annual fees for this service.

    What is the best software to improve performance and free hard drive cleanup? I used MacKeeper, but I'm tired of paying annual fees for this service.

    You shouldn't have these software.  See discussion of Klaus1

    Do not install MacKeeper

    See also this one by Klaus1

    Viruses, Trojans, Malware - and other aspects of Internet Security

  • Rewrite the query with joins, and group by

    Hello

    It's an interview question.

    Table names: bookshelf_checkout
    virtual library

    And the join condition between these two tables is title

    We need to rewrite under request without using the join condition and group by clause?

    SELECT b.title,max(bc.returned_date - bc.checkout_date) "Most Days Out"
               FROM bookshelf_checkout bc,bookshelf b
               WHERE bc.title(+)=b.title
               GROUP BY b.title;
    When I was in College, I read most of SELECT statements can be replaced by operations base SQL (DEFINE the OPERATORS). Now, I am rewriting the query with SET operators, but not able to get the exact result.

    Kindly help me on this.

    Thank you
    Suri

    Something like that?

      1  WITH books AS (
      2  SELECT 'title 1' title FROM dual UNION ALL
      3  SELECT 'title 2' FROM dual UNION ALL
      4  SELECT 'title 3' FROM dual ),
      5  bookshelf AS (
      6  SELECT 'title 1' title, DATE '2012-05-01' checkout_date, DATE '2012-05-15' returned_date FROM dual UNION ALL
      7  SELECT 'title 1' title, DATE '2012-05-16' checkout_date, DATE '2012-05-20' returned_date FROM dual UNION ALL
      8  SELECT 'title 2' title, DATE '2012-04-01' checkout_date, DATE '2012-05-15' returned_date FROM dual )
      9  SELECT bs.title, MAX(bs.returned_date - bs.checkout_date) OVER (PARTITION BY title) FROM bookshelf bs
     10  UNION
     11  (SELECT b.title, NULL FROM books b
     12  MINUS
     13* SELECT bs.title, NULL FROM bookshelf bs)
    SQL> /
    
    TITLE   MAX(BS.RETURNED_DATE-BS.CHECKOUT_DATE)OVER(PARTITIONBYTITLE)
    ------- ------------------------------------------------------------
    title 1                                                           14
    title 2                                                           44
    title 3
    

    Lukasz

  • How can rewrite the query statement effectively

    Hi gurus,

    BANNER

    ----------------------------------------------------------------

    Oracle Database 10g Release 10.2.0.4.0 - Production 64-bit

    PL/SQL Release 10.2.0.4.0 - Production

    CORE 10.2.0.4.0 Production

    AMT for Linux: release 10.2.0.4.0 - Production

    NLSRTL Version 10.2.0.4.0 - Production

    Table scripts


    CREATE TABLE WAREHOUSE

    (

    IDZONE VARCHAR2 (6 BYTE) NOT NULL,

    ZONE_CREATEDATE DATE NOT NULL,

    DATE OF DT_WAREHOUSE,

    DATE OF DT_POSTING

    )

    AREA ID, ZONE_CREATEDATE is PK

    CREATE TABLE ZONE_VIEW

    (

    IDZONE VARCHAR2 (6 BYTE) NOT NULL,

    ZONE_CREATEDATE DATE NOT NULL,

    ZONE_NUM NUMBER (2) NOT NULL,

    DATE OF TRANX_DATE

    )

    ID of the AREA, ZONE_CREATEDATE, ZONE_NUM is PK

    Query

    SELECT ID area, zone_createdate

    Of

    (

    SELECT ID area, zone_createdate,

    MAX (CASE WHEN zone_num = 18 AND tranx_date 'n' IS NOT NULL, THEN 1 TIME zone_num = 18 AND tranx_date IS NULL THEN 0 ELSE-1 END) region_18,.

    MAX (CASE WHEN zone_num = 110 AND not IS NOT NULL, THEN 1 TIME = 110 zone_num tranx_date AND tranx_date IS NULL THEN 0 ELSE-1 END) region_110,.

    MAX (CASE WHEN zone_num = 135 AND tranx_date no IS NOT NULL, THEN 1 TIMES zone_num = 135 AND tranx_date IS NULL THEN 0 ELSE-1 END) region_135,.

    MAX (CASE WHEN zone_num = 140 AND tranx_date 'n' IS NOT NULL, THEN 1 TIME zone_num = 140 AND tranx_date IS NULL THEN 0 ELSE-1 END) region_140

    OF zone_view

    GROUP BY IDZone, zone_createdate

    ) zrn

    WHERE zrn.region_18 <>0

    AND (((zrn.region_110 = 1) OR (zrn.region_110 = - 1)) AND (there IS NOT (SELECT null from warehouse w WHERE w.zoneid = zrn.zoneid AND w.zone_createdate = zrn.zone_createdate AND w.dt_warehouse IS NULL)))

    AND (((zrn.region_135 = 1) AND (there IS NOT (SELECT null from warehouse w WHERE w.zoneid = zrn.zoneid AND w.zone_createdate = zrn.zone_createdate AND w.dt_posting IS NULL))) OR (zrn.region_140 = 1))

    OR ((zrn.region_18 >-1) AND (zrn.region_135 = - 1) AND (zrn.region_140 < 1))

    OR ((zrn.region_110 = 1) AND (zrn.region_135 = - 1) AND (zrn.region_140, <>, 0))

    );

    Top query runs too slowly on the real data set. Is there an effective way to rewrite the query which can perform the dough?

    Any help or suggestion would be appreciated

    Thanks in advance

    At the time where the application may not throw anything until after he has retrieved and grouped all the ranks of zone_view. His estimate of 7.5 minutes to scan millions 639 lines really fast enough - it's 85 million lines per minute.

    This seems to be where the time went. The only way that the query can be accelerated is to recover some of the conditions that must be applied before the grouping. The only obvious possibilities for this are

    (a) filter values of zone_num

    (b) move the audit only

    NOT EXISTS (SELECT null from warehouse w WHERE w.zoneid = zrn.zoneid AND w.zone_createdate = zrn.zone_createdate AND w.dt_warehouse IS NULL)

    within the group, because this condition is applied regardless of the values in calculated fields. The AREA ID, ZONE_CREATEDATE are not null, so I suggest to try:

    SELECT ID area, zone_createdate

    Of

    (

    SELECT ID area, zone_createdate,

    MAX (CASE WHEN zone_num = 18 AND tranx_date 'n' IS NOT NULL, THEN 1 TIME zone_num = 18 AND tranx_date IS NULL THEN 0 ELSE-1 END) region_18,.

    MAX (CASE WHEN zone_num = 110 AND not IS NOT NULL, THEN 1 TIME = 110 zone_num tranx_date AND tranx_date IS NULL THEN 0 ELSE-1 END) region_110,.

    MAX (CASE WHEN zone_num = 135 AND tranx_date no IS NOT NULL, THEN 1 TIMES zone_num = 135 AND tranx_date IS NULL THEN 0 ELSE-1 END) region_135,.

    MAX (CASE WHEN zone_num = 140 AND tranx_date 'n' IS NOT NULL, THEN 1 TIME zone_num = 140 AND tranx_date IS NULL THEN 0 ELSE-1 END) region_140

    OF zone_view

    where (IDZone, zone_createdate) NOT IN (select the zone ID, w warehouse zone_createdate WHERE w.dt_warehouse IS NULL)

    and zone_num (18, 110, 135, 140)

    GROUP BY IDZone, zone_createdate

    ) zrn

    WHERE zrn.region_18 <> 0

    AND ((zrn.region_110 = 1) OR (zrn.region_110 = - 1))

    AND (((zrn.region_135 = 1) AND (there IS NOT (SELECT null from warehouse w WHERE w.zoneid = zrn.zoneid AND w.zone_createdate = zrn.zone_createdate AND w.dt_posting IS NULL))) OR (zrn.region_140 = 1))

    OR ((zrn.region_18 >-1) AND (zrn.region_135 = - 1) AND (zrn.region_140)<>

    OR ((zrn.region_110 = 1) AND (zrn.region_135 = - 1) AND (zrn.region_140 <> 0))

    )

    Unfortunately, if the plan of the query time estimates are correct, most of the duration of the query is spent doing a reading zone_view in a full analysis, and which will not be changed by this query.

    If there are many rows for each (IDZone, zone_createdate) zone_view pair, then it is possible that an index on (area ID, zone_num, zone_createdate) would contribute to this request, especially if most (IDZone, zone_createdate) pairs are filtered with the NOT IN (select the zone ID, zone_createdate w warehouse WHERE w.dt_warehouse IS NULL). More radical but probably effective measure would be a functional on index

    zone_view (zone_num, IDZone, zone_createdate, case when tranx_date is null then 0 otherwise 1 end)

    and using the expression in the query box:

    SELECT ID area, zone_createdate

    Of

    (

    SELECT ID area, zone_createdate,

    NVL (MAX (CASE WHEN zone_num = 18 then case when tranx_date is null, then 0 or 1 end end),-1) region_18,.

    NVL (MAX (CASE WHEN zone_num = 110 then case when tranx_date is null, then 0 or 1 end end),-1) region_110,.

    NVL (MAX (CASE WHEN zone_num = 135 then case when tranx_date is null, then 0 or 1 end end),-1) region_135,.

    NVL (MAX (CASE WHEN zone_num = 140 then case when tranx_date is null, then 0 or 1 end end),-1) region_140

    OF zone_view

    where (IDZone, zone_createdate) NOT IN (select the zone ID, w warehouse zone_createdate WHERE w.dt_warehouse IS NULL)

    and zone_num (18, 110, 135, 140)

    GROUP BY IDZone, zone_createdate

    ) zrn

    WHERE zrn.region_18 <> 0

    AND ((zrn.region_110 = 1) OR (zrn.region_110 = - 1))

    AND (((zrn.region_135 = 1) AND (there IS NOT (SELECT null from warehouse w WHERE w.zoneid = zrn.zoneid AND w.zone_createdate = zrn.zone_createdate AND w.dt_posting IS NULL))) OR (zrn.region_140 = 1))

    OR ((zrn.region_18 >-1) AND (zrn.region_135 = - 1) AND (zrn.region_140)<>

    OR ((zrn.region_110 = 1) AND (zrn.region_135 = - 1) AND (zrn.region_140 <> 0))

    )

    This gives a very different plan on my database, by performing an iteration on relevant areas of performance status:

    ---------------------------------------------------------

    | ID | Operation | Name |

    ---------------------------------------------------------

    |   0 | SELECT STATEMENT |              |

    |*  1 |  FILTER                          |              |

    |   2.   VIEW                           |              |

    |*  3 |    FILTER                        |              |

    |   4.     HASH GROUP BY.              |

    |   5.      ANTI NESTED LOOPS.              |

    |   6.       INLIST ITERATOR.              |

    |*  7 |        INDEX RANGE SCAN | ZV_F1 |

    |*  8 |       TABLE ACCESS BY INDEX ROWID | WAREHOUSE |

    |*  9 |        INDEX UNIQUE SCAN | WAREHOUSE_PK |

    | * 10 |   TABLE ACCESS BY INDEX ROWID | WAREHOUSE |

    | * 11 |    INDEX UNIQUE SCAN | WAREHOUSE_PK |

    ---------------------------------------------------------

    Your plan will be different because you have data volumes (I didn't create millions of lines of test data)

    It would be useful to know how many rows there are in the WAREHOUSE, how many distinct (IDZone, zone_createdate) pairs there are in zone_view and the number of rows actually returns the query, and how much is NOT IN (select the zone ID, w zone_createdate warehouse WHERE w.dt_warehouse IS NULL) because these relative numbers determine how these approaches are.

    If there is a table containing all of the (area ID, zone_createdate) pairs which could take place in zone_view, which would have may another possible approach:

    First filter possible pairs against NOT IN (select the zone ID, w warehouse zone_createdate WHERE w.dt_warehouse IS NULL)

    Then attach them to the zone_view to retrieve only the rows in the filtered (IDZone, zone_createdate) pairs.

    Good luck.

  • Information on the performance and tools: Visual effects adjust - adjust for a performance/appearance: influence on the photos and video?

    When I enter: Information on the performance and tools: Visual effects adjust - adjust for a performance/appearance, it affects pictures and video? What is the display of the video?

    I really like what I see with better appearance. But my laptop is slow a little, and I get this Green spinning circle and programs not opening.

    But since I intend to make some photos and video editing in the computer and watch a few videos, I wondered if the work will be compromised.

    I have a few tutorials to speed up my laptop, but can someone also suggest to speed up my laptop here? I'm always willing to learn some things.

    Hello

    You can optimize the performance of different options in the information on the performance and the tool window. This will not affect the performance of the images and videos. Adjust for best appearance to set the computer to enhance the appearance, it allows many features aero that improves the display quality of the computer.

    To optimize the performance of the computer follow the steps provided in the link below and check if that helps:

    http://Windows.Microsoft.com/en-us/Windows-Vista/optimize-Windows-Vista-for-better-performance

  • Should we leave how much free space on the C drive before affecting the performance and speed?

    Hello!

    Hard drive of my new PC (C) is 1 TB (processor Samsung 7i, Windows 8.1). It doesn't have any other disk/partition. How this space is safe to use to store large files (videos, esp., stored in the native video library file) without harming the performance and speed?

    And if I create another partition (D) and just use it for storage, it will make much difference compared to the above?

    Thank you!

    Anna

    Sunday, March 1, 2015 10:59 + 0000, AnaFilipaLopes wrote:

    And if I create another partition (D) and just use it for storage, it will make much difference compared to the above?

    Planning your Partitions

    The Question

    Partitions, how much should I have on my hard drive, what do I use
    each of them for, and what size should each one be?

    It s a common question, but unfortunately this doesn t have a
    only simple, just answer to all the world. A lot of people will respond with
    the way they do, but their response isn't necessarily best for the
    person seeking (in many cases it isn't right even for the person)
    response).

    Terminology

    First, let's rethinking the terminology. Some people ask "should I".
    partition my drive? That s the wrong question, because the
    the terminology is a little strange. Some people think that the word
    "partition" means divide the drive into two or more partitions.
    That s not correct: to partition a drive is to create one or several
    partitions on it. You must have at least one partition to use
    He who think they have an unpartitioned disk actually
    have a player with only one partition on it and it s normally
    Called C:. The choice you have is to have more than one
    partition, not that it's the partition at all.

    A bit of history

    Back before Windows 95 OEM Service Release 2 (also known as Windows
    95 (b) was published in 1996, all MS-DOS and Windows hard drives have been set
    using the file system FAT16 (except for very tiny to aid
    FAT12). That 16-bit only because were used for addressing, FAT16 has a
    maximum 2 GB partition size.

    More than 2 GB of hard disks were rare at the time, but if you had
    one, you must have multiple partitions to use all the available
    space. But even if your drive was not larger than 2GB, FAT16 created
    Another serious problem for many people - the size of the cluster has been
    more great if you had a larger partition. Cluster sizes increased from 512
    bytes for a partition to no greater than32Mb all the way up to 32 KB for a
    partition of 1 GB or more.

    More the cluster size, the space more is wasted on a hard drive.
    That s as space for all the files is allocated in whole clusters
    only. If you have 32 KB clusters, a 1 byte file takes 32 KB, a file, a
    greater than 32 k byte takes 64 k and so on. On average, each file
    about half of his last group waste.

    If large partitions create a lot of waste (called "soft"). With a 2 GB
    FAT16 drive in a single cluster, if you have 10,000 files, each
    lose half a cluster of 32 KB, you lose about 160 MB for relationships. This s
    back in an important part of a player that probably cost more than $400
    1996 - around $ 32.

    So what did the people? They divided their 2 GB drive in two,
    three or more logical drives. Each of these logical drives has been
    smaller the real physical disk, had smaller clusters, and
    so less waste. If, for example, she was able to keep all the partitions
    less than 512 MB, cluster size was only 8 KB, and the loss was reduced to a
    a quarter of what it would be otherwise.

    People partitioned for other reasons also, but back in the days of
    FAT16, it was the main reason to do so.

    The present

    Three things have changed radically since 1996:

    1. the FAT32 and NTFS file systems came along, allowing a larger
    partitions with smaller clusters and so much less waste. In
    with NTFS, cluster sizes are 4 K, regardless of the size of the partition.

    2 hard drives have become much larger, often more than 1 TB (1000 GB) in
    size.

    3 hard drives have become much cheaper. For example, a 500 GB drive
    can be bought today for about $50. That s 250 times the size of this
    Player 2Gb typical 1996, about one-eighth of the price.

    What these things mean together which is the reason to be old to have
    multiple partitions to avoid the considerable wastage of disk space left.
    The amount of waste is much less than it used to be and the cost of
    that waste is much less. For all practical purposes, almost nobody does
    should no longer be concerned about slack, and it should no longer be
    has examined when planning your partition structure.

    What Partitions are used for today

    There are a variety of different ways people put in place several
    scores of these days. Some of these uses are reasonable, some are
    debatable, some are downright bad. I'll discuss a number of Commons
    partition types in the following:

    1. a partition for Windows only

    Most of the people who create such a partition are because they believe
    If they never have to reinstall Windows properly, at least they
    He won t lose their data and he won t have to reinstall their applications.
    because both are safe on other partitions.

    The first of these thoughts is a false comfort and the second
    is downright bad. See the analysis of the types of partition 2 and 4
    below to find out why.

    Also note that over the years, a lot of people who find their windows
    partition that has begun to be the right size proves to be too
    small. For example, if you have such a partition for Windows and later
    upgrade to a newer version of Windows, you may find that your Windows
    partition is too small.

    2. a partition for installed programs

    This normally goes hand in hand with the partition type 1, a partition for
    just Windows. The thought that if you reinstall Windows, your
    installed application programs are safe if they are in another
    partitions is simply not true. That s because all programs installed
    (with the exception of an occasional trivial) have pointers to the inside
    Windows, in the registry and elsewhere, as well as associated files
    buried in the Windows folder. So if Windows, pointers and
    the files go with it. Given that the programs need to be reinstalled if Windows
    the fact, this reasoning to a separate partition for programs not
    work. In fact, there is almost never a good reason to separate
    Windows of the software application into separate partitions.

    3. a partition for the pagefile.

    Some people think mistakenly that the pagefile on another
    score will improve performance. It is also false; It doesn t
    help and often I hurt, performance, because it increases the movement of the head
    to get back to the page to another file frequently used
    data on the disk. For best performance, the paging file should normally
    be on the most widely used score of less used physical player. For
    almost everyone with a single physical disk than the same drive s
    Windows is on C:.

    4. a partition for backup for other partitions.

    Some people make a separate partition to store backups of their other
    or partitions. People who rely on a "backup" are a joke
    themselves. It is only very slightly better than no backup at all.
    because it leaves you likely to be simultaneously the original losses
    and backup for many of the most common dangers: the head crashes and other
    types of drive, serious glitches to power failure, near lightning
    strikes, virus attack, even stolen computer.  In my opinion,.
    secure backup must be on a media removable and not stored in the
    computer.

    5. a partition for data files

    Above, when I discussed separate Windows on a clean partition,
    I pointed out that separate data from Windows is a false comfort if
    He of done with the idea that data will be safe if Windows ever
    must be reinstalled. I call it a false comfort that's because
    I'm afraid many people will rely on this separation, think that their
    data are safe there and so do not take measures to
    Back it up. In truth the data is not safe there. Having to reinstall
    Windows is just one of the dangers to someone a s hard disk and not
    probably even one. This kind of "backup" falls into the same
    category, as a backup to other partitions partition; It lets you
    sensitive to the simultaneous loss of the original and the backup on many of
    the most common dangers that affect the entire physical disk, not
    just the particular partition. Security comes from a solid backup
    diet, not how partition you.

    However, for some people, it may be a good idea to separate Windows and
    programs on the one hand of the data on the other, putting each of the
    two types into separate partitions. I think that most people
    partitioning scheme must be based on their backup system and backup
    plans are generally of two types: whole hard disk imaging
    or data only backup. If you back up data, backup is
    usually facilitated by the presence of a separate with data only partition;
    to save just the score easily, without having to
    collect pieces from here and elsewhere. However, for
    those who backup by creating an image of the entire disk, there is
    usually little, if any, benefit the separation of data in a partition of
    its own.

    Furthermore, in all honesty, I must point out that there are many
    very respected people who recommend a separate partition for Windows,
    Whatever your backup plan.  Their arguments haven t convinced
    me, but there are clearly two views different here.

    6. a partition to image files

    Some people like to deal with the images and videos as something separate
    other data files and create a separate partition for them. To my
    the spirit, an image is simply another type of data and there is no
    the advantage in doing so.

    7. a partition for music files.

    The comments above related to the image files also apply to music
    files. They are just another type of data and must be dealt with the
    just like the other data.

    8. a partition for a second operating system to dual-boot to.

    For those who manage several operating systems (Windows Vista, Windows
    XP, Windows 98, Linux, etc.), a separate partition for each operating
    system is essential. The problems here are beyond the scope of this
    discussion, but simply to note that I have no objection to s
    all these partitions

    Performance

    Some people have several partitions because they believe that it
    somehow improves performance. That s not correct. The effect is
    probably low on modern computers with modern hard disks, but if
    whatever it is, the opposite is true: more music mean poorer
    performance. That's because normally no partition is full and it
    so are gaps between them. It takes time for the drive s
    read/write heads to cross these gaps. Close all files
    are, faster access to them will be.

    Organization

    I think a lot of people overpartition because they use scores as a
    organizational structure. They have a keen sense of order and you want to
    to separate the apples from the oranges on their readers.

    Yes, separating the different types of files on partitions is a
    technical organization, but then is to separate different types of
    files in folders. The difference is that the walls are static and
    fixed in size, while the files are dynamic, changing size automatically
    as needed to meet your changing needs. This usually done records
    a much better way to organize, in my opinion.

    Certainly, partitions can be resized when necessary, but except with the latter
    versions of Windows, which requires a third-party software (the and the
    possibility to do so in Windows is primitive compared to the third-party
    solutions). These third party software normally costs money and not
    any point and how stable it is, affects the entire disk.
    with the risk of losing everything. Plan your partitions in
    first place and repartitioning, none will be necessary.  The need
    to repartition usually occurs as a result of overpartitioning in
    the first place.

    What often happens when people organize with partitions instead
    records are that they make a miscalculation of how much room they need on each
    This partition, and then when they run out of space on the partition
    When a file is logically, while having plenty of space
    on the other hand, they simply saving the file in the score of "poor".
    Paradoxically, therefore, results in this kind of score structure
    less organization rather than more.

    So how should I partition my drive

    If you read what came before, my findings will not come as a
    surprise:

    1. If your backup set is the image of the entire disk, have just one
    single (usually c partition :));

    2. If you backups just data, have two partitions one for Windows and
    application programs installed (usually c :)), the other for data
    (normally D :).)

    With the exception of multiple operating systems, it is rarely
    any advantage to have more than two partitions.

  • Big client - vCenter 5.5 response time of the customer Web U1c / questions of Performance and Navigation

    So we're all aware of the issues with vCenter 5.5U1 WebClient and how we are forced to use it to make use of all the features of the v10, vDS 5.5 vHardware (config switch changes the synchronization problems if an emergency change is done on c# client vDS) VSAN only available via the web client, flash, sluggish to questions do not respond the questions and the list goes with the presentation of the menus and hard to navigate, issues SSO (always after 5.5 upgrades)

    So @ VMware vCenter Architecture Team is going to make an effort to hear and give due to the much needed performance improvements and improvements to the user interface before adding more features and SSO type services which majority of clients don't use not and not force it's customers continue to loose faith its vCenter product?

    Looking for answers with options to remove vCenter 5.5 U1c installation as well as a promise to answer to these in vCenter 6.0 version!

    Here is your answer. First of all, to use Chrome as your browser, then you need to go with at least 4vCPU * 32 GB of RAM & adjust the segment size of java for SSO, Tomcat, (TC) Management Server, inventory server and profile based storage to "refine" vCenter device with DB Oracle embedded or external memory. I did, and performance gains went 10 X. This includes the vSAN enabled running clusters. My recommendation that works very well based on design documents:

    vCenter Server inventory

    VMware VirtualCenter Management Webservices (tc Server)

    The inventory service

    (Sps) profile-based storage service

    Large (more than 400 guests or 4000 VMS) stock

    4 GB

    12 GB

    4 GB

    Setting on the vCenter server 5.5 of the memory unit

    • Connect the unit to vCenter server using SSH
    • VI /usr/lib/vmware-vsphere-client/server/wrapper/conf/wrapper.conf configuration file, locate the JVM memory section and change maxmemory to 4096
    Line 66 # Memory #wrapper.java.initmemory = 512wrapper.java.maxmemory = 4096 JVM
    • /usr/lib/vmware-vpx/inventoryservice/wrapper/conf/wrapper.conf VI configuration file, find the setting. MaxMemory and replace it with 12288
    Line 116 # Size (in MB) maximum Java heap wrapper.java.maxmemory = 12288
    • VI /usr/lib/vmware-vpx/sps/wrapper/conf/wrapper.conf find the setting. MaxMemory and change from 1024 to 4096
    On line 154 # Size (in MB) maximum Java heap wrapper.java.maxmemory = 4096
    • Restart the vCenter device w / DB (1000 hosts) external /embedded for lab (100 guests)

    http://KB.VMware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=2005086&sliceId=1&docTypeID=DT_KB_1_1&dialogID=294472825&StateID=1%200%20294492358

    Documentation Centre of vSphere 5.5

    PS: vCenter 6.0 has much better performance based on my beta test... so don't lose hope yet. Many improvements to come...

    PS: I've also broken down on this here until I figured this out just recently: Re: big client - vCenter 5.5 response time of the customer Web U1c / questions of Performance and Navigation

  • Rewrite the query in 11 g

    Hello

    Can anyone suggest an idea to rewrite this query? This query takes longer than expected, probably
    they way the application is made is not fair? Thanks in advance! I use 11g
     SELECT   brand_id,
                          region_id,
                          sku_base_id,
                          desc_key,
                          (SELECT   MAX (cps.product_code)
                             FROM   cat_prod_sku_vw cps
                            WHERE       cps.brand_id = srl.brand_id
                                    AND cps.region_id = srl.region_id
                                    AND cps.brand_id = 4
                                    AND cps.region_id = 0
                                    AND (   cps.parent_cat_id
                                         || 'PROD'
                                         || cps.prod_base_id) = srl.desc_text)
                             AS desc_text
                   FROM   sku_rgn_lang_vw srl
                  WHERE       brand_id = 4
                          AND region_id = 0
                          AND desc_key LIKE 'www_pcode_%'
                          AND LENGTH (desc_text) > 6
                          AND desc_text LIKE 'CAT%' ;

    You should look at this thread {message identifier: = 9360003} to get an idea of what other information is required.

    However, I'd be inclined to re - write as an (external) join instead of a scalar select statement. Something more like:

    SELECT srl.brand_id, srl.region_id, srl.sku_base_id, srl.desc_key,
           cps.desc_text
    FROM sku_rgn_lang_vw srl
       left join (SELECT brand_id, region_id,
                         parent_cat_id||'PROD'||prod_base_id desc_text
                         MAX (product_code) product_code
                  FROM cat_prod_sku_vw cps
                  WHERE brand_id = 4
                    AND region_id = 0
                  GROUP BY brand_id, region_id,
                           parent_cat_id||'PROD'||prod_base_id) cps
          on cps.brand_id = srl.brand_id AND
             cps.region_id = srl.region_id AND
             cps.parent_cat_id||'PROD'||cps.prod_base_id = srl.desc_text
    WHERE srl.brand_id = 4
      AND srl.region_id = 0
      AND srl.desc_key LIKE 'www_pcode_%'
      AND LENGTH (cps.desc_text) > 6
      AND cps.desc_text LIKE 'CAT%' ;
    

    Although I'm not entirely sure, I had all the correct alias.

    John

  • Rewrite the query, select below or try to get the necessary O/P

    Hello..

    My example of data.,.

    Create table customer (name varchar2 (10), telephone1 telephone2 number (10), number of phone3 (10), (10) number, bitwisephone number (10));

    Insert into customer values('a',23456,67890,null,12345);

    Insert into customer values ('b', 67459,89760,null, 37689);

    create table do_not_call (dont_call number (10));

    insert into do_not_call values (67890);

    insert into do_not_call values (37689);

    Question: -.
    --------------

    Customer 'a' has value of numbers1 as 23456.check if telephone1 exists in the do_not_call table.
    In fact there is no, so set the bit for numbers1 as "o" like wise search telephone2
    & phone3.after update of the bitwisephone for each client should be as the output below.


    Need to O/P: -.
    -------------------

    name bitwisephone

    a 010
    b 001


    For that matter... I use "any" operator...



    SELECT name, case when numbers1 = all (SELECT dont_call FROM do_not_call) and then put an end to '1' other '0'.
    -case when telephone2 = all (SELECT dont_call FROM do_not_call) and then put an end to '1' other '0'.
    -case when phone3 = all (SELECT dont_call FROM do_not_call) then '1' other '0' end 'Bits '.
    OF THE customer;


    Is there any other way to get the necessary O/P?


    Thank you!!

    Kind regards
    VijayRajaram.

    Looks like one already answered Re: rewrite the query, select below or try to get the necessary O/P

    with
    customer(name,phone1,phone2,phone3,bitwisephone) as
    (select 'a',23456,67890,12345,null from dual union all
     select 'b',67459,89760,37689,null from dual
    ),
    do_not_call(dont_call) as
    (select 67890 from dual union all
     select 23456 from dual union all
     select 37689 from dual
    )
    select name,
           to_char(mod(trunc(sum(weight)/4),2))||
           to_char(mod(trunc(sum(weight)/2),2))||
           to_char(mod(sum(weight),2)) bitwisephone
      from (select name,phone1 phone,4 weight
              from customer
            union all
            select name,phone2,2
              from customer
            union all
            select name,phone3,1
              from customer
           ) c,
           do_not_call d
     where c.phone = d.dont_call(+)
       and d.dont_call is not null
     group by name
    

    Please do not duplicate messages

    Concerning

    Etbin

  • Rewrite the query

    Hello
    I have a standard report oracle question which i've drawn from the data model
    is it possible to rewrite this query without the bind variable, also the data provided as output is appropriate even when rewritten
    WHT does & C_vendor_dynamic_SQL stand
    SELECT /*+ ORDERED_PREDICATES */  DISTINCT (v.vendor_id)           C_vendor_id,
                       v.vendor_name                               C_vendor_name,
         DECODE(:SORT_BY_ALTERNATE, 'Y', UPPER(v.vendor_name_alt),
                       UPPER(v.vendor_name))      C_sort_vendor_name,
         v.segment1          C_vendor_num
    FROM    ap_invoices i, po_vendors v
    WHERE  0 < (SELECT SUM(nvl(prepay_amount_remaining,amount)) 
                     FROM  ap_invoice_distributions aid 
                     WHERE aid.invoice_id = i.invoice_id 
                     AND   aid.line_type_lookup_code IN ('ITEM','TAX') 
                     AND   nvl(aid.reversal_flag,'N') <> 'Y')
    AND v.vendor_id = i.vendor_id   
    AND i.invoice_type_lookup_code =  'PREPAYMENT'
    AND       i.cancelled_date IS NULL
    &C_vendor_dynamic_SQL
    ORDER BY DECODE(:SORT_BY_ALTERNATE, 'Y', UPPER(v.vendor_name_alt), UPPER(v.vendor_name))
    thanking in advance

    Published by: makdutakdu on June 21, 2010 10:54

    I guess then this fine shud work, so was that, in the cud of user earlier request, give then here with the two bind and lexical values ignored the user cannot enter, but even of output?

    Yes, the output will be the same.
    The user can always have enter the values if you have not deleted the user settings, but even if the user enters the values the report output will be same each time.

  • I own a Macbook pro mid 2012. Now I want to increase the RAM of 4 GB to 8 GB, please suggest if this update will help me to improve my performance to macbook.

    I own a Macbook pro mid 2012. Now I want to increase the RAM of 4 GB to 8 GB, please suggest if this update will help me to improve my performance to macbook.

    It will help in cases where the applications require more than 4 GB of RAM.  Otherwise, there will be no noticeable difference.  If you really want to increase the speed, an SSD is the best option.  They cost about 3 x's + more than a traditional HDD of same capacity...

    Ciao.

  • Comparison of the results of the performance and the sum of the sum of array elements

    I did a comparison of the performance of "Add table" with 2 other methods (an Add elements and function of ddot BLAS) to see who was the fastest and also to compare their results, given that I was watching a few slight differences.

    Conclusions
    BLAS ddot's quicker (just a little), then add items, then add it in a loop of table

    BLAS ddot and add items table give identical results almost all the time.

    I don't know why add items in a loop manually gives a slightly different result. I understand there are any rounding due to finite precision errors, but why is it different for the 2 other methods?

    This classic of digital computing: the quality of the result depends on the order of operations.

    A simple example is the calculation of a * b / c with a, b, c equal to 25, 200 and 100 respectively. The result should be 50, but if a, b and c are U8, the result depends on the order of operation, as shown in the example below. DBL and data non-entier, the difference is of course that much smaller, but still there are!

    In your case, the difference also stems from the order of operations:

    -in the table add-in, the product of all the elements is calculated first and then the elements of the array are added.

    -in the loop, the addition is performed after each multiplication.

  • Build self... Advanced performance and information system not showing the correct information?

    IV done a self build, and would like to know if this is a common thing or something I did in what regards why "information on the performance and tools" are not to enter the 'manufacturer, model. If I click Start and right click computer-> properties, then click on tools and information on the performance on the bottom left of the screen, and then click view and print detailed performance information and system
    What I get is,

    System

    System manufacturer (im asuming that I would see something like ASUSTeK Computer Inc.)

    Model product name system (im asuming that I would see something like M5A78L-M)

    In addition, the number of processors is showing 2... maybe this is a noob question, but I thought that 'quad' amounted to four?

    The MB is an Asus M5A78L - M USB3
    The AMD Bulldozer FX - 4170 Quad Core 4.20 GHz CPU
    16 GB of RAM
    Graphics AMD Radeon HD 6670

    I would add a scrrenshot, but I don't know how to upload it here, so hopfuly it's info is sufficient here to go. If not, please let me know what are the other necessary specifications

    Thank you

    If you really want your info system (manufacturer, model, OEM Logo, etc) there's this program that does this. It's a low)<500Kb) executable that you="" can="" download.="" it's="" called="" oem="" configurator="" 2.0.="" it="" lets="" you="" change="" the manufacturer,="" model,="" support="" hours,="" support="" phone,="" support="" website,="" oem="" logo,="" as="" well="" as="" the="" owner, organization,="" computer="" name,="" processor="" name,="" computer="" description,="" and="" the="" product="">

    You can download it here (Direct download link): OEM Configurator 2.0

Maybe you are looking for