The problems of performance - query on a copy of a table is faster than the orig

Hi all

I have problems with a specific table (select) sql performance (costs 7800) (Oracle 10.2.0.4.0, Linux).

Then I copied the table 1:1 (same structure, the same data, the same indexes, etc.) within the same domain (, the user database, tablespace etc.) and gathered the table_stats with the same settings. The same query on the copied table is faster and costs are only 3600.

Gods sake why is the query on this new table faster?

I appreciate any idea.

Thank you!

FIBO

Edited by: user954903 the 13.01.2010 04:23
alter table t enable row movement;
alter table t shrink space;
alter table t disable row movement;

Tags: Database

Similar Questions

  • to solve the problems of performance (running slow SQL queries), which should be the systematic approach

    Hello

    I am new to oracle.  Need some advice on how we should approach to problems of performance especially for SQL queries running slow on the database.

    Thanks in advance.

    6e85b3c2-5f02-40CB-A8AD-d2279f63b4be wrote:

    Hello

    I am new to oracle.  Need some advice on how we should approach to problems of performance especially for SQL queries running slow on the database.

    Thanks in advance.

    Start here;  http://docs.Oracle.com/CD/E11882_01/server.112/e10822/TOC.htm

    Continue here: http://docs.oracle.com/cd/E11882_01/server.112/e41573/toc.htm

  • Copy of a table in the access only with CF query structure

    Hello
    I need to know how to create a new table by copying an existing table with the structure of the table in a query

    Don't know the syntax but

    CREATE NewTable FROM ancienne_table (structure only)

    Is there a way to do this in a query?

    Thanks in advance

    I actually worked on it. It cannot be the right answer, but it works


    Select * into admin_pass2 from admin_pass

    What makes a copy


    Delete * from admin_pass2

    This empties

  • I have some problem in my query to sql server. If I press f5 to run it opens to record dialogue area nd do not run (I don't get successful... orders etc). Please help me

    I have some problem in my query to sql server. If I press f5 to run it opens to record dialogue area nd do not run (I don't get successful... orders etc). Please help me

    Hello

    SQL Server is not supported in these forums. I suggest that you ask your question again in one of the forums dedicated to Microsoft for him here:

    http://social.technet.microsoft.com/Forums/en-us/category/sqlserver .

    Thank you.   :)

  • Problems of performance after a random amount of time

    Hello

    I'm hunting for a problem of performance for quite a while now and I would like to ask the community for tips.

    But first things first:

    We have installed ESXi 4.0.0 (219382) on a Dell PowerEdge R710 with an Intel Xeon processor [email protected] and 8 GB of RAM. A PERC 6 / i controller is configured in RAID 5 for storage. A variety of facilities of Fedora and Ubuntu (6.06, 8.04) are running as the guest systems.

    When starting a guest performance subjective experience is thin and use hdparm, we get reading disc, 35 to 60 MB/srates. However, after an indefinite period, the performance of the system goes down and hdparm reported rates of about 1 MB/sdisc. This happens on the guests at random and after random times. The only job here is to stop the prompt and start again (reset doesn't work here).

    I have already studied the documentation available as http://communities.vmware.com/docs/DOC-3930 and followed the recommendations, but I had no success so far. Don't check the performance of the ESXi host using the Client vSphere and esxtop, no load heavy on the queues of the processor or disk can be noticed. Comments file systems are not aligned, but I doubt that this would be the reason for such a success enormous performance.

    What takes me by surprise is the random time amounts. Enabling VT - x in the BIOS after installing ESXi would play a role here?

    I would appreciate any advice.

    Thank you

    Andreas

    But ESX needs memory for itself, approximately 1 GB, and there is memory above each guest (for example a guest of 1 GB has about 128 General fresh MB).  ESX will also try to keep some are free (in a 8 GB machine ESX will generally try to keep the use of the RAM to about 6.5 GB or less in my experience).

    These factors combined are why you see ball and swap figures.

    Your options are to reduce the RAM allocation or adding more physical RAM.  Another option in some cases is to move the files to a decent SSD vSwap.

    Please give points for any helpful answer.

  • Clean install of Windows a lot faster than the preinstalled system?

    My satallite comes with windows 64-bit installed.
    Since a lot of people suggested, here and elsehwere, a clean installation making consierably faster than the pre-installed windows (all bloated and unwanted software uninstalled with the uninstall program).

    Although fresh installtion was faster without drivers and programs, it has become more or less the same after installation of all software, etc. (perhaps a difference of 2 to 4% in the use of RAM) (over 4 GB)

    Is this normal or do others go much faster on any new install, for me, this effort has proved there is not a lot of use to do a clean install to drive retail.

    Ideas, wiers and feed back?

    See you soon

    Many pre-installed utilities are required for correct functionality and it can be a headache get these functions to work after installing a street copy of Windows.

    You will find that when you install Antivirus software on a street copy of Windows, it will happen similar to the pre-installed Windows installation. So if you want that the installation of Windows pre-installed perform better, uninstall the Antivirus should do the trick.

  • Why disable SuperFetch on ssd, if the RAM is much faster than the ssd?

    Directed by Microsoft that SuperFetch and PreFetch must be disabled, if the OS is installed on an ssd, in accordance with article http://support.microsoft.com/kb/2727880. But SuperFetch is used for loading the data components of applications, which were very often used for RAM. Although the ssd is faster that a hard drive is not faster than the RAM. So, I do not understand why Microsoft suggest disabling this feature. The only reason why I want to understand, it's because of a limited RAM. If the RAM is sufficient beyond 6 GB, if we disable SuperFetch, then the boot time and increase the loading time of most used applications. I miss something here?

    The other question is about PreFetch. I feel, maybe wrong, it does the same thing with SuperFetch, with one major difference. It loads all the information data on the ssd or hard drive, instead of the RAM, in order to accelerate the launch of applications and time when the OS is installed on a hard drive to boot. If I'm right, let's disable the PreFetch it stores information for one ssd or hdd, while SuperFetch stores data of RAM information, which is much faster and so it must be enabled if there is a sufficient RAM.

    I look forward to reading the notice of a Microsoft software engineer.

    Hi Leventis,

    Prefetch copies frequently accessed files together into a contiguous on the disk area so that they can be located and loaded more quickly. That it takes a lot of old drives to recover data faster.

    SuperFetch predict what applications you run next and preload all the necessary data in the memory. She has also done that with startup files. And for all the three days he sends a defragmentation command to the OS drive that will cause problems in the SSD drives.

    In traditional hard drives (HDD) data are scattered throughout the disk, so that the operating system for access, it will take more time. It is suggested to perform a disk defragmentation. But storage technology is different in SSD, where, it records the data dynamically and it recovers more quickly. Who will be low down the burden on the RAM and the RAM can be used for uses such as for the opening of the games graphics high-end, etc..

    Hope this information is useful.

  • I had to rebuild my system, it has been upgraded to sp2 and the orig disc was spi.1 so I can't activate

    I had to rebuild mt system from the orig disc, which was the sp2 to vista Home premium. | I had installed sp2 before mky sysytem had to rebuild. I cannot now be activated

    Hello

    1. start - type in the search--> SLUI box. 4 EXE, and then press ENTER.
    2. Select the country
    3. Select the Activate by phone Option and wait for a representative help

    Getting Started with Windows Vista
    http://Windows.Microsoft.com/en-us/Windows-Vista/help/getting-started

    Resolve activation problems
    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-activation-problems

    Activating Windows: Frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows-Vista/activating-Windows-frequently-asked-questions

    Get a new Windows product key
    http://Windows.Microsoft.com/en-us/Windows-Vista/get-a-new-Windows-product-key

    Error message when you try to activate Windows Vista: "an error has occurred."
    http://support.Microsoft.com/kb/931276

    I hope this helps.

  • Is faster than the local AIR IOS app remote SWF SWF because I can ' t use the unloading code.

    Are faster than the local SWF on AIR IOS app remote SWF because I can't use the code to unload on IOS of AIR.

    my local code:

    Stop();

    import flash.net.URLRequest;

    import flash.system.ApplicationDomain;

    import flash.system.LoaderContext;

    import flash.filesystem.File;

    import flash.filesystem.FileMode;

    import flash.filesystem.FileStream

    go_level_2.addEventListener (MouseEvent.Click, Level_2);

    function level_2(event:MouseEvent) {}

    var loader2:Loader = new Loader();

    var loaderContext2:LoaderContext = new LoaderContext (false, ApplicationDomain.currentDomain);

    var file2:File = File.applicationDirectory.resolvePath ("level2.swf");

    loader2. Load (new URLRequest (file2.url), loaderContext2);

    addChild (loader2);

    }

    Because it works for me, because I can't unload the SWF app file en becomes slow, I'll put the SWf file "s on a remote location.

    But I can't imagine what is happening when I loaded the SWF file remotely. It remains on the server, or it remains on my application when I unloaded it, and the app gets also larger. I hope you can help me because I went on the internet for a week and do not now how to go further.

    I had a similar problem, but not on iOS.

    Maybe my solution might work for you too, however.

    The problem was this line:

    new LoaderContext (false, ApplicationDomain.currentDomain);

    Do not reuse the same field of application, or you will never be able to get rid definitions and thus the SWF loaded.

    Instead, make a new child application domain for the current domain, keep track of it and it has as well as the rest of the SWF file when you are finished.

    Example:

    var loader2:Loader = new Loader();

    var appDomain2:ApplicationDomain = new ApplicationDomain (ApplicationDomain.currentDomain);

    var loaderContext2:LoaderContext = new LoaderContext (false, appDomain2);

    var file2:File = File.applicationDirectory.resolvePath ("level2.swf");

    loader2. Load (new URLRequest (file2.url), loaderContext2);

    addChild (loader2);

    Then

    function finishLevel2(event:Event):void

    {

    var loader2:Loader;

    loader2 = Event.Target.Loader;
    loader2.parent.removeChild (loader2);

    loader2.unloadAndStop ();

    appDomain2 = null;

    }

    Note that the definitions of the classes of the loaded SWF file will be available in the new application domain.

  • Why preview is rendered faster than the actual speed of my clips?

    When I create a new project, the overview of my project "plays" faster than the speed of the video. As it is fast forward. Each of the speed of clips are 100%.

    I tried to uninstall and reinstall the first but still have the same problem.

    Any idea? Thank you

    sample rate is 48 kHz

    Some people set their entry to 'none', but I do not see as to how that is going to change anything

  • In a hierarchical query, is it possible for a line having more than one immediate ancestor?

    Hello

    Question:

    In a hierarchical query, is it possible for a line having more than one immediate ancestor?


    Answer:



    Isn't it?  Surely this is Yes?


    Thank you

    Jason

    Line may have ancestors as much as you want. It goes the same for successors.

    SY.

  • Delete query to delete records from multiple tables

    All,

    I need a delete query that will delete the records from the tables. Please see the structure of the table & below
    CREATE TABLE TEMP1 (ID NUMBER(10),NAME VARCHAR2(40),CLASS VARCHAR2(40),COLLEGE VARCHAR2(40));
    CREATE TABLE TEMP2 (ID NUMBER(10),CITY VARCHAR2(40),STATE(40));
    
    INSERT INTO TEMP1 (ID, NAME,CLASS,COLLEGE) VALUES (1000,'SAM','CS','UNIV_1');
    INSERT INTO TEMP1 (ID, NAME,CLASS,COLLEGE) VALUES (2000,'RIO','CS','UNIV_1');
    INSERT INTO TEMP1 (ID, NAME,CLASS,COLLEGE) VALUES (3000,'CHRIS','CS','UNIV_1');
    INSERT INTO TEMP1 (ID, NAME,CLASS,COLLEGE) VALUES (4000,'ALEX','CS','UNIV_1');
    
    INSERT INTO TEMP2 (ID, CITY,STATE) VALUES (1000,'Auburn','NY');
    INSERT INTO TEMP2 (ID, CITY,STATE) VALUES (2000,'Ithaca','NY');
    INSERT INTO TEMP2 (ID, CITY,STATE) VALUES (3000,'Mount Vernon','NY');
    INSERT INTO TEMP2 (ID, CITY,STATE) VALUES (4000,'Port Jervis','NY');
    Now, I need to delete the records in these tables where the ID is '2000' by using a single delete query. Is this possible? This may be a newbie question. Help, please.

    "using a single request deletion. Is this possible?

    Nope.
    You can insert into multiple tables by using a single query, INSERT ALL job, but you cannot delete more than one table using a single query.

  • T500 T8700 processor work much faster than on the current of a battery!

    My colleagues and I are having a very annoying problem with our thinkpad t500 (approximately 200 laptops or more). the problem is that the CPU is intel core 2 duo T8700 2.53 ghz works only with 1.6 ghz speed on idle and load the State with alternating current and never jump higher than speed and jumps only to 2.53 ghz speed if and only if the battery is connected to the laptop, the laptop is faster using the battery that is strange indeed.

    My own opinion on this issue, it is that it is a bug in the bios that is the switching in a different way processor modes (processor with power supply ofc should be faster than with battery) I've already updated my bios of the laptop to 3.09 version, but always without success. The serial number of my laptop is "*".

    I hope that fix you this very soon.

    Moderator edit: number masked to prevent improper use.

    Hi mtaher and welcome to the Lenovo user community!

    Connected to a 65W power adapter, the T500 is relies on the battery to power during peak load. If you remove the battery, he's choking back the CPU at a level that the 65W adapter can handle alone. It probably won't happen if you use a 90W Adapter (I don't have anyone around to test - maybe someone can confirm).

    The research community and you will find this discussed many times - that's the behavior designed most of the models.

  • What query can we use... .for more than 30 days

    Select the PROPERTY, RELAVANTDATE,
    Sum (records) more)
    partition of property
    order of RELAVANTDATE
    between the '30' day interval preceding and the current line
    ) "SUM".
    of Test_Data

    What query can we use... .for more than 30 days
    can I use following or preceding
    SCOTT@soti_9> WITH Test_Data AS (
      2    select 10100 as property, to_date('25-JAN-07') as RelavantDate, 20 as notices from dual union all
      3    select 10100 as property, to_date('25-DEC-07') as RelavantDate, 5 as notices from dual union all
      4    select 10100 as property, to_date('02-JAN-08') as RelavantDate, 10 as notices from dual union all
      5    select 10100 as property, to_date('01-DEC-08') as RelavantDate, 10 as notices from dual union all
      6    select 10100 as property, to_date('02-DEC-08') as RelavantDate, 20 as notices from dual union all
      7    select 10100 as property, to_date('31-DEC-08') as RelavantDate, 20 as notices from dual union all
      8    select 10100 as property, to_date('03-JAN-09') as RelavantDate, 30 as notices from dual union all
      9    select 10100 as property, to_date('25-JAN-09') as RelavantDate, 20 as notices from dual
     10  )
     11  select PROPERTY,RELAVANTDATE ,
     12    sum(NOTICES) over (
     13      partition by property
     14      order by RELAVANTDATE
     15      range between current row and interval '30' day following
     16    ) "SUM"
     17  from Test_Data
     18  ;
    
      PROPERTY RELAVANTD        SUM
    ---------- --------- ----------
         10100 25-jan-07         20
         10100 25-dec-07         15
         10100 02-jan-08         10
         10100 01-dec-08         50
         10100 02-dec-08         40
         10100 31-dec-08         70
         10100 03-jan-09         50
         10100 25-jan-09         20
    
    8 rows selected.
    

    Kind regards
    Dima

  • R7000 Nighthawk Wired is faster than the wireless

    I currently use a Nighthawk R7000 and after the speed test internet using speedtest.net, I found that a desktop computer that is connected directly with ethernet is more than 100 Mbps faster than a wireless laptop which is the only room away from the router (wired office gets 140 ~-~ 160 Mbit/s, while the laptop is ~ 30-40 ~ Mbps). Any help would be great.

    Thanks to all who tried to help, but he had a friend IT of my father who came and said: it's a certain chip (or something of the kind) in my computer that was wrong, so we got a Linksys adapter Max - Stream AC600 WiFi Micro USB. I can now get 90 Mbits/s download. Thanks again for everyone's help.

Maybe you are looking for