Any system parameter can do what "no_merge" do?

We are trying to move the database to a new server and get performance hit. This is a simple query but with OWM we have more than 10 years historical data in LT tables.
1. With just ordered hint, it takes 6:30 mins to run
SELECT /*+ ordered*/  COUNT (a.id)
  FROM slimdba.neighbourhoods b,slimdba.zoning_polygons a
WHERE   b.id = 170
   AND sdo_relate (a.geometry, b.geometry,  'mask=INSIDE+COVEREDBY+EQUAL querytype=WINDOW' ) = 'TRUE';
2. With parallet hint, it takes 1:05 mins to run
SELECT  /*+ full(b) parallel(b,8) */ COUNT (a.id)
  FROM slimdba.neighbourhoods b,slimdba.zoning_polygons a
WHERE   b.id = 170
   AND sdo_relate (a.geometry, b.geometry,  'mask=INSIDE+COVEREDBY+EQUAL querytype=WINDOW' ) = 'TRUE';
3. With no_merge(b) hint, it only process the current live data in b, it takes only 4 seconds
SELECT  /*+ ordered no_merge(b) */ COUNT (a.id)
  FROM slimdba.neighbourhoods b,slimdba.zoning_polygons a
WHERE   b.id = 170
   AND sdo_relate (a.geometry, b.geometry,  'mask=INSIDE+COVEREDBY+EQUAL querytype=WINDOW' ) = 'TRUE';
In most of the cases our users only care about live data. Is there a system level setting to ask Oracle to filter the live data first instead of using LT table first then filter after the spatial process?
Thanks a lot for any help!!
Sharon

Hi Sharon,
I have previously seen this type of performance with spatial operators.  It is a result of the optimizer choosing to apply the spatial operator prior to determining the single row being seen from the neighbourhoods view.  In this example, there are most likely many rows with id=170 in the underlying _LT table, but only a single row will be ultimately seen from the slimdba.neighbourhoods view.  If the optimizer finds the single row prior to applying the spatial operator, then performance is very good.  If on the other hand, it finds all of the rows with id=170, applies the operator, and then filters that set to the one row being seen by the view, the performance has the tendency to be slow and it's directly proporational to the number of rows with id=170 in _LT.
We have seen good performance transforming the query into the following.  This typically will force the slimdba.neighbourhoods view to be fully materialized prior to applying the spatial operator.  However, it does require rewriting the query.
SQL> with n as (select /*+ materialize */ geometry from slimdba.neighbourhoods where id = 170)
         select count(id)
         from slimdba.zoning_polygons a, n b
         where sdo_relate (a.geometry, b.geometry,  'mask=INSIDE+COVEREDBY+EQUAL querytype=WINDOW' ) = 'TRUE';
Using the NO_MERGE hint as you have done, is also an option.  The important point is that the optimizer evaluates the version predicates(the view logic) prior to applying the spatial domain index.  Any additional hints, change in optimizer parameters that achieves this goal can be used.
If changing the query is not possible, and it was working as expected on the previous server then I would need to know additional information.  Has the RDBMS version changed in the process of switching servers or remained the same?  Are the statistics the same on both?  There isn't any Workspace Manager specific parameter that would cover this situation as the optimizer is ultimately responsible for the sql plan.  There is the capability to explicitly add a hint to the underlying view, but that is typically something that we do not recommend in this case as the hint would be there even for queries that it doesn't make sense for.
Regards,
Ben

Similar Messages

  • HT1848 how about if I do not want to transfer some purchase to my laptop when I do the sync, like games for my kids which I only want to keep them on my I phone!! . Is there  any way I can select what to be transfer to my computer or not?

    how about if I do not want to transfer some purchase I did from my Iphone to my laptop when I sync.... like games for my kids which I only want to keep them on my I phone!! .
    Is there  any way I can select what to be transfer to my computer or no at the sync time or maybe set up my phone by selecting specifics items to be transfer !
    I got also some kids apps that I do not need it on my laptop!

    can anyone explain to me please???

  • Is there any way I can know what are the list of patches installed on Indesign Server CS5

    Hi All,
    Is there any way I can know what are the list of patches installed on Indesign Server CS5?
    Please let me know if the there is any command to do so.
    Thanks,
    Manjunath

    Is this link any help?
    http://www.btvision.bt.com/on-demand/?cat=filmclub
    It seems to give the film club info.
    If you sort the list by "ending" date, shoul should be able to find recently added ones.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Is there any system object can save the cost time of package?

    Guys, i have one question.
    Usually I get the execute update time of package in JAVA to know the performance, but there is time lost in the network, right? So I suppose to get the cost time in DB and cost time in Weblogic, two parameters together.
    In package I think at the beginning of my code write belows
    p_date := current_timestamp at time zone 'GMT';
    -- SQL code
    --Then I can get current_timestamp at time zone 'GMT' - p_date and return as a output.
    But there are too many packages, and is there any system objects save the cost time?
    thank u.

    dbms_utility.get_time. Gets the database clock time in hundreths of seconds.
    Does NOT relate to the wall clock!
    Sybrand Bakker
    Senior Oracle DBA

  • Any danes who can explain what this is about.

    Got this message from controlling the disc....
    Kontrollerer enheden “Macintosh HD”
    Kontrollerer HFS Plus-enhed.
    Kontrollerer Extents Overflow-arkiv.
    Kontrollerer katalogarkiv.
    Kontrollerer arkiver med mange forbindelser.
    Kontrollerer kataloghierarkiet.
    Kontrollerer arkivet Extended Attributes.
    Kontrollerer enhedens bitmap.
    Enhedens bit map kræver en mindre reparation
    Kontrollerer oplysninger om enheden.
    Ugyldigt antal ledige blokke på enhed
    (Det burde være 14099383 i stedet for 14096227)
    Enheden Macintosh HD skal repareres.
    Fejl: Den underliggende opgave rapporterede en fejl ved ****
    1 HFS-enhed undersøgt
    Enheder skal repareres

    Hi snetiger,
    Have you installed the "Battery Update" from the Apple site? Has the battery been replaced through the battery program? Check the Magsafe plug. Is it melting? Do you have access to another charger to eliminate a bad charger? Does the orange charge light coming on or the green power adapter mode light? Have you unplugged the charger from the wall for about 60 secs. (if no lights, this resets charger) What are your energy saver preferences set to?
    I have been dealing with this battery issue across three different machines. I think it is a time formatting issue with the software. Keep an eye on the clock. Most of my worst issues have always occurs when the battery is "Calculating Until Full" this can go on for a while unless I unplug the Magsafe or open energy saver. Just opening it not having to change any settings.
    Sweet Polly

  • Is there any way I can see what has been added?

    So I noticed that sometimes that films in the film club are added on different days than Thursday and sometimes television shows are added to the On Demand on other days beside Thursday. Is there some sort of alert or email service that lets us know what has been added on to BT Vision? It would help alot.

    Is this link any help?
    http://www.btvision.bt.com/on-demand/?cat=filmclub
    It seems to give the film club info.
    If you sort the list by "ending" date, shoul should be able to find recently added ones.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Is there any way I can see what individual podcasts are downloading like I used to be able to?

    I'm not able to see or control the individual downloads any more. Is there a way to restore this functionality?

    Does clicking on 'list' at the top of the Podcasts pane give you want you want?

  • Pages is "not responding" when I try to open any document on a Lion Operating System, Macbook Pro. What can I do?

    Pages is "not responding" when I try to open any document on a Lion Operating System, Macbook Pro. What can I do?

    Ah then that is the issue.
    1. Is Pages registered? It turns into a demo version after 3months otherwise.
    2. This makes it interesting as to what happens if it has, because a demo version can't/won't save and I'm curious if this causes a bug in the ever so wonderfully thought through process of versioning in Lion
    3. There may actually be a problem with one of the documents which again causes a bug in the ever so wonderfully thought through process of versioning in Lion
    4. You are entitled to AppleCare telephone support to try ands resolve this in detail which is difficult to do without seeing what is actually going on because there are multiple files involoved
    5. Which raises the issue of does it freeze consistently on hitting a certain document? In which case moving or archiving that document may get Pages to actually launch
    Peter

  • Have lost my Administrator account  - can no longer make any system changes

    Since I had forgotten my Administrator Password on my son's Mac, I inserted a Leopard DVD, restarted the Mac while holing the "c" key and used the utilities menu to reset the password on my Administrator acount.
    After following the on screen steps to reset the computer, when I rebooted the Mac my administrator account was now completely missing.
    All that is left are two standard user accounts that work fine but do not allow me to install new hardware becasue they are not administrator accounts. What did I do wrong? and can I recover my Administrator account or promote one of the remaining standard user accounts to adminstrator level?
    Thanks in advance for any help

    Welcome to Apple Discussions!!
    What did I do wrong?
    Did you use a Leopard DVD on a Tiger system? That's what your post appears to be saying.
    and can I recover my Administrator account or promote one of the remaining standard user accounts to adminstrator level?
    You can use the appropriate one of these User Tips to promote one of the existing ones:
    I lost my admin user (Mac OS X 10.4 and earlier)
    I lost my admin user (Mac OS X 10.5)
    Be sure you use the right tip, and also to make the appropriate username substitutions.

  • TEMPLATE.fmb: Custom form can't display any system message

    I was using the template.fmb to create a new custom form. It works fine, BUT it can't display any system message such as ""FRM-40400 Transaction complete: 1 record applied and saved"
    Please advise what's the problem.
    Thanks

    use something like this
    :System.Message_Level := '10';

  • Why "System.setIn()" can set the final parameter "System.in"?

    When i worte a class to test the System class,I have read the System class source.
    I found that the parameter System.in is defined as a final parameter.
    But strangely, why the System.setIn() can change the System.in?
    This is the fragment of the source
    public static void setIn(InputStream in) {
         setIn0(in);
    private static native void setIn0(InputStream in);the setIn() method calls a private method called setIn0(), but the setIn0() does noting. I found a "native" definition? I think this is the key reason
    Pleas tell me what the "native" means and the how the setIn() & setIn0() method work?

    You really can't set final variables after they've been set in Java code, but Sun gets away with it by using native (that is non-java) code. It's a (necessary?) evil and should not be taken as a guide to good code. Just imagine a big "Big Bad Voodoo" sign above the native method.

  • Went to watch a video on You Tube that I have watched before on my iMac and got the prompt that I had to upload Adobe Flash Player.  Did that, and am still getting the same prompt and can't watch any videos at all.  What is going on here, Apple??

    Went to watch a video on You Tube that I have watched before on my iMac and got the prompt that I had to upload Adobe Flash Player.  Did that, and am still getting the same prompt and can't watch any videos at all.  What is going on here, Apple??

    I do not know how to do this with an Apple TV (I don't have one), but as far as I know Apple TV only does mirroring.
    If you have an HDMI cable long enough to reach your TV from where you sit, then it's easy. The TV could be set up in Extended Desktop mode (mirroring off) as if it was simply another computer monitor, and then you could just drag windows to it. If you have the Displays icon in your menu bar, that's where the setting is, or if the icon is not there, then the setting is in the Displays system preference. But again, that's for conventionally connected monitors, not Apple TV. If you don't have an HDMI cable and wanted a long one that's affordable you can get those at monoprice.com.
    The answer we are still waiting for is if anyone knows if Apple TV can be used in extended desktop (non-mirroring) mode.

  • HT3140 put a date 1970 june 27 . and now the whole system is out of control i cant get to internet cannot change date and time  always when i opened system preferences stays in a waiting mode but doesnt show any opcion don t know what to do and i just bou

    put a date 1970 june 27 . and now the whole system is out of control i cant get to internet cannot change date and time  always when i opened system preferences stays in a waiting mode but doesnt show any opcion don t know what to do and i just bought this computer

    It may well be a driver issue but considering the loading: Xorg trying to load different drivers is somewhat normal. @cafe you can see that these are autoconfigured by X above the loading in the log:
    Jul 20 19:48:24 arch gdm-Xorg-:0[216]: (==) Matched intel as autoconfigured driver 0
    Jul 20 19:48:24 arch gdm-Xorg-:0[216]: (==) Matched intel as autoconfigured driver 1
    Jul 20 19:48:24 arch gdm-Xorg-:0[216]: (==) Matched modesetting as autoconfigured driver 2
    Jul 20 19:48:24 arch gdm-Xorg-:0[216]: (==) Matched fbdev as autoconfigured driver 3
    Jul 20 19:48:24 arch gdm-Xorg-:0[216]: (==) Matched vesa as autoconfigured driver 4
    As long as one of the drivers gets loaded, which it apparently does the failing of the others is fine.
    Was there an update maybe ?

  • Just bought a used Oct '13 MacBook Pro and I can't sign into the App Store as it still displays the old owners user ID in the login box (in fixed grey text). Any ideas of how I what I could do? Thanks.

    Just bought a used Oct '13 MacBook Pro and I can't sign into the App Store as it still displays the old owners user ID in the login box (in fixed grey text). Any ideas of how I what I could do? Thanks.

    The first thing you should do with a second-hand computer is to erase the internal drive and install a clean copy of OS X. How you do that depends on the model, and on whether you already own another Mac. If you're not sure of the model, enter the serial number on this page. Then find the model on this page to see what OS version was originally installed.
    1. You don't own another Mac.
    If the machine shipped with OS X 10.4 or 10.5, you need a boxed and shrink-wrapped retail Snow Leopard (OS X 10.6) installation disc, which you can get from the Apple Store or a reputable reseller — not from eBay or anything of the kind. If the machine has less than 1 GB of memory, you'll need to add more in order to install 10.6. I suggest you install as much memory as it can take, according to the technical specifications.
    If the machine shipped with OS X 10.6, you need the installation media that came with it: gray installation discs, or a USB flash drive for some MacBook Air models. If you don't have the media, order replacements from Apple. A retail disc, or the gray discs from another model, will not work.
    To boot from an optical disc or a flash drive, insert it, then reboot and hold down the C key at the startup chime. Release the key when you see the gray Apple logo on the screen.
    If the machine shipped with OS X 10.7 or later, you don't need media. It should boot into Internet Recovery mode when you hold down the key combination option-command-R at the startup chime. Release the keys when you see a spinning globe.
    2. You do own another Mac.
    If you already own another Mac that was upgraded in the App Store to the version of OS X that you want to install, and if the new Mac is compatible with it, then you can install it. Use Recovery Disk Assistant to create a bootable USB device and boot the new Mac from it by holding down the C key at the startup chime. You will need the Apple ID and password that you used to upgrade. Note that if your other Mac was never upgraded in the App Store, you can't use this method.
    Once booted from the disc, the USB device, or Internet Recovery, launch Disk Utility and select the icon of the internal drive — not any of the volume icons nested beneath it. In the Partition tab, select the default options: a GUID partition table with one data volume in Mac OS Extended (Journaled) format. This operation will permanently remove all existing data on the drive, which is what you should do.
    After partitioning, quit Disk Utility and run the OS X Installer. When the installation is done, the system will automatically reboot into the Setup Assistant, which will prompt you to transfer the data from another Mac, its backups, or from a Windows computer. If you have any data to transfer, this is usually the best time to do it.
    You should then run Software Update and install all available system updates from Apple. If you want to upgrade to a major version of OS X newer than 10.6, get it from the Mac App Store. Note that you can't keep an upgraded version that was installed by the previous owner. He or she can't legally transfer it to you, and without the Apple ID you won't be able to update it in Software Update or reinstall, if that becomes necessary. The same goes for any App Store products that the previous owner installed — you have to repurchase them.
    If the previous owner "accepted" the bundled iLife applications (iPhoto, iMovie, and Garage Band) in the App Store so that he or she could update them, then they're linked to that Apple ID and you won't be able to download them without buying them. Reportedly, Apple customer service has sometimes issued redemption codes for these apps to second owners who asked.
    If the previous owner didn't deauthorize the computer in the iTunes Store under his Apple ID, you wont be able to  authorize it under your ID. In that case, contact iTunes Support.

  • I have moved all of my movies from "Search for - All Movies" folder thinking they were shortcuts to the trash folder by mistake.  Is there any way I can restore them to the right place on my system Note most are on an external hard drive. :(

    I have moved all of my movies from "Search for - All Movies" folder thinking they were shortcuts to the trash folder by mistake.  Is there any way I can restore them to the right place on my system Note most are on an external hard drive.

    You can drag them out of the trash folder to wherever you wish. There is no automatic way to restore them.
    If you have a recent backup of your computer (at the risk of preaching, everyone should have one), restore them from there.
    Barry
    P.S. I have no clue what you did or why you have 44,000 on the external drive

Maybe you are looking for