Determine the NEW QUERY IS EFFICIENT THAN THE OLD QUERY

How we can determine the new query is more efficient than the old query?

Hi,
See the explain plan and compare both of them
you should find which one is more efficient than other
cheers

Similar Messages

  • How to determine the maximum prefix of two CharSequences efficiently?

    I have the following problem. I need a unicode friendly mechanism for determining the maximum prefix of 2 CharacterSequences. I've come up with the following code which appears to do the job, but which requires up to ([number of codepoints in smaller sequence] * 2) + 1 memory allocations. These memory allocations are rather irksome since I plan on calling this method extremely many times. The code I came up with looks like:
    private static int getLengthOfMaxCommonPrefix(CharSequence str1, CharSequence str2, Collator collator) {
        if ((str1 == null) || (str2 == null)) { return 0; }
        if (Character.codePointCount(str1, 0, str1.length()) > Character.codePointCount(str2, 0, str2.length())) {
          CharSequence tmp = str1;
          str1 = str2;
          str2 = tmp;
        // @todo get rid of memory allocation
        char[] charArray = new char[4];
        int i = 0;
        for (int size = Character.codePointCount(str1, 0, str1.length()); i < size; i++) {
          Character.toChars(Character.codePointAt(str1, i), charArray, 0);
          Character.toChars(Character.codePointAt(str2, i), charArray, 2);
           // @todo get rid of memory allocation
          String char1Str = new String(charArray, 0, 2);
          // @todo get rid of memory allocation
          String char2Str = new String(charArray, 2, 2);
          if (collator.compare(char1Str, char2Str) != 0) {
            return i;
        return i;
      }Am I overlooking an API that would allow me have this same functionality without memory allocations? If not, would it be reasonable to request that the Java Collator API be updated to have:
    Collator.compare(int codepoint1, int codepoint2)which would eliminate the need for these memory allocations. The only reason I would suggest this change is that more than a few pieces of my other code involving unicode has the same problem. Also, when looking over the API it seems that
    static Character.toString(char c)exists, but the following method doesn't:
    static Character.toString(int codepoint)which would at least minimize some of the ugliness in the above code and be in keeping with the other APIs under Character.
    Edited by: APBrusseau on Feb 10, 2008 11:23 PM
    Edited by: APBrusseau on Feb 10, 2008 11:24 PM
    Edited by: APBrusseau on Feb 10, 2008 11:29 PM
    Edited by: APBrusseau on Feb 10, 2008 11:45 PM
    Edited by: APBrusseau on Feb 10, 2008 11:46 PM
    Edited by: APBrusseau on Feb 10, 2008 11:48 PM

    But still, surely just walking character by character through the strings and comparing them (using your collator) will do?
        char[] c1 = new char[1];
        char[] c2 = new char[1];
        // swap longest/shortest string, etc.
        // for each char {
            c1[0] = cs1.charAt(n);
            c2[0] = cs2.charAt(n);
            s1 = new String(c1);
            s2 = new String(c2);
            // use collator to compare
        // }The only thing I don't know is whether there are collators which look at sequences of characters. For example, I think in Unicode, you can have an 'a' followed by a 'add an accent to the previous character' character, which would obviously impact on the collation order.
    In which case, something like
        // for n = 1 .. length of shortest {
            int result = collator.compare(cs1.subSequence(0, n).toString(), cs2.subSequence(0, n).toString());
            if (result != 0) {
                return result;
        // equal to length of shortest string. Make decision based on length.This might be efficient, or not, depending on the implementation of CharSequence. String, for example, has a very efficient subSequence() method.

  • I am trying to determine the new project preset for multi-camera video shot as follows:  3 Canon camcorders, main shot is DV (tape) (720x480), b-roll is DVD (mini-disk) (720x480), additional b-roll is AVCHD (1920x1080).  Film is from a wedding, DV contain

    I am trying to determine the new project preset for a multi-camera video shot as follows:  3 Canon camcorders,
    Main shot is DV (tape) (720x480, 29fps) - ceremony and reception
    b-roll is DVD (mini-disk) (720x480, 29fps) - bride preparations
    additional b-roll is AVCHD (1920x1080, 29fps) - groom preparations and misc all day ceremony and reception. 
    Film is from a wedding, DV contains main footage so I assume it will need to be the base.  I am planning to use the preset for DV-Widescreen.  Is there a better option?  I'm concerned about playback as the three appear to have different PAR.  I'm using Premiere Elements 10 on W8.
    Ultimately this will be burned for two formats - one for a DVD that can be watched on a widescreen TV, second for a short clip trailer to go on vimeo.
    (And no I won't be doing this again for a wedding that I shoot.)

    VDRAVES
    Please review since I am not sure how you obtained Video 3 tall when you scaled Video 3 with Constrain Proportions in effect.
    Before
    After
    It becomes a zoomed in effect to get rid of the black borders. But, there is no tall and thin involved anywhere.
    And, after the Scale increase, you can always click on the screen and move the image around a bit
    (without overdoing it to get black borders again).
    After and an adjust
    Please let us know if you are OK with the information above.
    Thank you.
    ATR

  • I just bought a new computer.  I know that I have several "libraries" on the old one.  How can i transfer the data most efficiently?

    I just purchased a new computer.  My old computer has several "libraries" that have been saved.  How do I know how to transfer the data most efficiently?

    The progress for some games will transfer since some games synce progress to a cental server. For other games you will have to have the backup of the old iPod.
    You can restore from backup or access the backup. See:
    How to transfer game saves between iOS devices, without iTunes, and without jailbreaking | TUAW - The Unofficial Apple Weblog
    If you have acces to the old iPod yu can make a backup by connecting the iPod to the computer and right click on the iPOd under Devices in iTunes and select Back Up. Then restore from that backup.

  • How to Determine the window is larger than 1024px  and sotp(2000)

    can i use code on Stage timeline(1000) like:
    if windows width > 1024px { getStage().stop(2000);}
    and timeline(2000) add code like :
    if windows width < 1024px { getStage().stop(1000);}
    pls help to make it right.thanks. i am very new for this...

    Hi, Peter-
    You can use some JavaScript to determine the window width.  Here's a simple explanation I found:
    http://www.javascripter.net/faq/browserw.htm
    Hope that helps,
    -Elaine

  • How to get the text for the new query

    Hi all...
    we have created a new query by copy of existing query. iwe have changed only the sales area in the filter.
    when we run the original query in japan language, getting japan text for the material where as for the new query it is not getting japan text.
    we have extracted text masterdata for sales area but when we run the query it is not displaying material description in japan language.
    how to get text for the material in the new query?
    thanks

    hi,
    What is the output for text filed you are getting as of now?
    Check the properties of the material in old query?
    Generate the query in tcode RSRT and execute and check.
    Check if the Display as properties is selected as "Key and Text".
    try to replace it back(sales area) in filters and check in new query - if u are getting the desired output or not.
    Regards
    KP

  • Bought a new Canon MG7540 printer to replace the old HP A618. When printing vector objects from Illustrator, they look like graphics from dandy (8 bits) ... no smooth, all cubes ... if do raster than print perfectly.  Who knows how to treat it? No well to

    Bought a new Canon MG7540 printer to replace the old HP A618. When printing vector objects from Illustrator, they look like graphics from dandy (8 bits) ... no smooth, all cubes ... if do raster than print perfectly.  Who knows how to treat it? No well to rasterize vector before each printing. OS - MacOs 10.10.

    Have you read the User's Guide for that printer?  Odds are you will get reasonable prints.  However, it is a photographic printer.  That said, it should print excellent quality photographic files.  To get smooth lines in Illustrator, try Preferences > Use Anti-Aliased Artwork.  That will smoothen the output.  If, for some reason, that does not work, try Print > Save As PDF > open PDF in Reader and print from there.  Check the User's Guide for media sizes available for your particular printer.  Setup your artboard to the size page you want the image to print on.  Use View > Show Page Tiling ( to see where the page's printable area lies.  Align the page with the artboard using the Page tool.

  • If I backed up with a newer version of iOS than the phone I am trying to backup to.. Is there any way to bypass the setup assistant in order to download the new iOS on the new phone then go back and restore from my old phone?

    if I backed up with a newer version of iOS than the phone I am trying to backup to.. Is there any way to bypass the setup assistant in order to download the new iOS on the new phone then go back and restore from my old phone?

    Try deleting your last backup by turning off iCloud Backup in Settings>iCloud>Storage & Backup, then tap Manage Storage, swipe across your backup and tap Delete, then go back and turn iCloud Backup back on again.  If it still won't back up, you may have an app that is preventing the backup from succeeding.  To locate which one, go to Settings>iCloud>Storage & Backup>Manage Storage, tap the name of your device under Backups, under Backup Options tap Show All Apps, then turn them all to Off (including camera roll) and try backing up again.  If it succeeds, then the camera roll and/or one of your apps is preventing the backup and you'll have to located by process of elimination. Turn the camera roll On and try backing up again.  If it succeeds, turn some of your apps to On and try backing up again.  If it succeeds again, turn some more apps to On then try again; repeat this process until it fails.  Eventually you'll be able to locate the problem app and exclude it from your backup.

  • I received my new Verizon Edge bill in the mail and it is $80 higher than my old plan.  I have been so unhappy with this change over.  Went through hell getting our second phone activated because of a weird computer glitch and when we asked if we would re

    I received my new Verizon Edge bill in the mail and it is $80 higher than my old plan.  I have been so unhappy with this change over.  Went through hell getting our second phone activated because of a weird computer glitch and when we asked if we would receive any consideration for the time, travel, and money we put into getting the phones the way they were supposed to be, we were told to wait until the bill came and then they could make adjustments.  Now I have the bill and have no idea "who" the we would be that could make adjustments.  To top it off, the only way I know my account will get any attention is to post this in chat.  I am so disappointed and will be counting the months until our phones are paid off and we can change companies.

    Call 800-922-0204
    I just purchased a new device using Verizon Edge. Why does my bill look higher than normal?
    There’s two reasons why your first bill after signing up for Edge might be higher than normal:
    Prorate Charges – If you upgraded an existing line and did a price plan change, you may have price plan charges and credits that went into effect the day you upgraded.
    Sales Tax – Most states require sales tax on the full retail price paid by the customer, which in most instances will be charged at the time of the first invoice.
    Note: Customers who purchased devices in AL, AZ, CO, IL, NM, ND or SD will be billed taxes and surcharges monthly as payments are made.
    Your bill will normally include:
    Your last Edge installment payment
    The next Edge installment charge
    If you are on a MORE Everything Plan, a monthly access discount for each qualifying line.
    The details of Edge installments and discounts can be viewed at the line level portion of your bill under Monthly Charges and Equipment Charges, or in My Verizon, My Bill then Charges By Line.

  • HT201269 I used Article: HT2109 to transfer everything from my iPod touch 3g, iOS 5.1.1, to my iPod touch 5g, iOS 6.1.3. Why did data from apps did NOT move to the new device? Games are starting over rather than picking up where they were on the old devic

    I used Article: HT2109 to transfer everything from my iPod touch 3g, iOS 5.1.1, to my iPod touch 5g, iOS 6.1.3. Why did data from apps NOT move to the new device? Games are starting over rather than picking up where they were on the old device?

    - If you restored the 5G frmm the iTunes backup of the 3G were th app in the iTunes library of the computer you used? They have to be.
    - If yes then try again. When I first restored my iPad 4 from the iTunes backup of my iPad 1 app data did not transfer. I tried again and it did.

  • Query to determine the no. of objects per object_type for a give

    Hi,
    Below is the query i m using to determine the no. of objects per object_type for a given owner in DBA_RECYCLEBIN.
    SELECT count(OBJECT_NAME),TYPE from DBA_RECYCLEBIN
    groupby TYPE
    having OWNER='FRPDWSO';
    ERROR at line 1:
    ORA-00933: SQL command not properly endedI guess i m making a very silly mistake here, can anyone please help me solve this issue

    Oracle GROUP BY HAVING can be used to limit the returned rows after the grouping. With Oracle GROUP BY HAVING, the HAVING clause is applied after the GROUP BY has taken place.
    Oracle GROUP BY HAVING will group values that have a particular value. Oracle GROUP BY HAVING can be used in conjunction with other logical functions such as MIN, MAX, COUNT, and SUM.

  • HT201269 ive recently got a new iPhone 5s due to my old one breaking, it has been sync'd but has now been showing the black apple loading screen for the last 3 hours with less than a quarter of the bar filled. what do i do?

    ive recently got a new iPhone 5s due to my old one breaking, it has been sync'd but has now been showing the black apple loading screen for the last 3 hours with less than a quarter of the bar filled. what do i do?

    Take it back to where you purchased the device and get another device.

  • My new iPod touch (4th gen) has a significantly lower volume than my old one. I have maxed all the volumes and turned off the volume limit to no help. Can anyone help?

    My new ipod touch 4th gen has a much lower volume than my old one, i have maxed the volumes out and got rid of all volume limits which has nor helped. Can anyone help?

    Are you using the same headphones?
    Did you officially purchase the in an EU country? They require a lower max volume than the USA and other countries.

  • New cheaper Iphone with more technology than the old Iphone?

    Hello,
    I've owned an Iphone since December, and I'm in love with it! There are a few things I've been waiting to have updated, such as, faster internet service and being able to receive multi-media messages. Now I see that there is a new Iphone being released for only $199 when I paid $499 for my 8G. My question is, does this phone that is so much cheaper compare to the old Iphone? And if it's coming with all of the features as the old Iphone, will the upgrade that is being released give the same exact features as the 3G?
    Thank you!

    The lower cost of the new iPhone is only happening because AT&T (and other carriers around the world) are subsidizing it, and in the process increasing monthly charges to recover the subsidy. In effect over the 2 year contract with AT&T for example, you'll pay marginally more for the new iPhone than you did for the old one!
    Basically, the two models are the same. The new one has 3G capabilities, but 3G coverage in the US is very spotty at present and not increasing particularly fast, so a large proportion of people won't be able to take advantage of it. The new iPhone also has GPS capabilities which the original did not, and has somewhat better battery life. Otherwise, just about all the other improvements are in firmware, and the same firmware will be available to download and upgrade existing iPhones early in July.
    If you don't need GPS and don't live in a major city where 3G coverage exists, you should be happy with your existing iPhone since not only will you be able to get the new firmware next month to add a lot of new features, but you'll also be paying less each month to use it - your data plan at present is $20 including 200 texts, while the new iPhone will be $30 for data with texting costs on top of that as well.

  • New iTunes on Mac doesn't allow me anymore to select all songs and 'Get info' to adjust the volume, like the old one. It says"your selection contains more than one type of media". They are all songs! Help please!

    New iTunes on Mac doesn't allow me anymore to select all songs and 'Get info' to adjust the volume, like the old one. It says"your selection contains more than one type of media". They are all songs! Help please!

    Raya Alfa wrote:
    ...there are some that are mp3 and it will be extremely hard to pick them from the lot.
    Not true. Select "Kind" as a sort category by right clicking the headings
    Then click to sort by Kind
    If your Import Settings are for Apple Lossless, AIFF, AAC or whatever the majority of your files are, convert MP3s to that file type.
    I've presently got 17,000+ files in my library, and they're ALL MP3 or M4B(Audiobooks). If they weren't when I got them, I converted them.  Saves a LOT of hassels with just this type of situation. Besides I have two non Apple MP3 players that WON'T work with other file types besides MP3 so, EVERYTHING I have has to be MP3.

Maybe you are looking for

  • Making Customer Pricing procedure mandatory in BP Role-CRM 5.0

    Hi Our requirement is to make Customer Pricing procedure mandatory in BP Role "Sold to Party"-CRM 5.0. I have configured for the same in IMG Field Grouping. Now when a end user goes for BP creation & goes to Sales area maintenance then an error messa

  • Can change GL account code with transactions

    In Canadian Localization in CoA with segments I can change account code in account with transactions. An issue found in 2007 PL 35 and 41. Is it a bug oe new functionality? Thanks, Olga

  • Replace multiple pages en masse in an index template

    We have an index page already set up and from time to time we need to replace the pages under each index.  Is there any way that we can drag ALL the replacement pages so that it will automatically line up with the existing index. Each replacement pag

  • Div with a image

    Hi ,guys, when I use the image on the site and div to control its position, I put the div and text together in the layout.But i am not sure how to layout and make them look well as the image overlap the text and hide some of the content. How to avoid

  • What does the Verizon CIRCLE instead of Verizon 3G mean?

    I have seen this numerous times....I don't see the Verizon 3G but a Verizon circle. Not sure what it means? Anyone seen and know? --Mickey