Identification and drops the unused index - index of key foreign - 11g R2

Hi team,

In our application, table main source have nearly 55 M records and this table have almost 15 foreign key columns. He y 5 foreign key columns that reference 5 very small tables (max 10 lines for each table) where the child tables ever updated or removed, it's very static data.

so we thought to remove the foreign key index, in order to expedite the DML operations on the source table.

It's the right option... ?

Please guide me on the right track, please...

Thank you

RAM

Almosty certainly right, but there are a number of things to be wary of:

(a) you can't update the keys to reference table (parent) deliberately, but some application codes (typically a form generated) can use a generic statement to update the line and include 'id of the game {its original value} =' as part of the update. It is always updated the parent key even if it does not change, and he closed the child table.

(b) you have an example where 99.9999% of one of the columns has a single value and the other 0.0001% of the data is shared between the remaining values of 9 parent - this could be useful as a path index even if you do not need to protect against the problem of blocking foreign. In this case you need to constrauct a histogram on the column for that the optimizer can see the extreme data distribution.

Options

(a) If you are confident that the parent tables never see no DML so you can move them to a separate tablespace that you do read-only (older versions of Oracle) or make read-only tables (12 c)

(b) you can disable locking on the child table - it always helps to have implicit mode 2 and mode 3 locks (which will not appear in the lock of v$), but stop a parent update to acquire mode 4 it would be necessary for the child if something tries to update or delete the parent key.  There are however some behavior buggy serious around this area, and I don't know if it was fixed yet: https://jonathanlewis.wordpress.com/2010/02/15/lock-horror/

ADDENDUM: If almost all the data of a column contains the same, then you can consider using a null to represent this value. Otherwise, you could play with index based on a function (changing the code of the application accordingly) to create an index that contains only the values 'rare' rather than having an index that held an entry for each row in a table. This approach would also avoid the need for a histogram.  Something like the folllowing (although the example is not a perfect match for your requirement): https://jonathanlewis.wordpress.com/2014/04/02/tweaking/

Concerning

Jonathan Lewis

Tags: Database

Similar Questions

  • Why creates shortcuts for Moving files when drag and drop the folder or file in another folder?

    I am using Windows XP SP3, just before I drag and drop the file into another folder in my windows explore. Suddenly, he is creating shortcuts for moving file. I'm not able to move the file by drag / move the mouse, it is possible that by cutting and Paste(Ctrl+X) using the keyboard. Why?

    Maybe your 'Alt' key is stuck.
    See exchanging the keyboard with another makes all the difference.

    HTH,
    JW

  • I've lost the ability to copy files on my CD player. When I drag and drop, the only authorized action is 'move' and it does not work.

    I've lost the ability to copy files on my CD player.  When I drag and drop, the only authorized action is 'move' and it does not work.   I tried press and hold the CTRL key while dragging, and when I do that all the other disks show "copy" as the default action, but when I hover over the action CD player available only changes to 'pass '.   I ran the Microsoft Troubleshooting tool for CD/DVD players and he said that the media were not writable, but there is a blank CD in the drive.  Any ideas on how to solve this problem?

    Thanks, but the cd/dvd drive works well - I can burn a cd with windows media player for example.  the problem is that I can't copy files to it.   I can play CDs (haven't checked the DVD).  I can not do and could do before, is doing drag and drop files on it.  The only authorized action is "move".   This happens even when I click CTRL + do drag.   I can copy it to any other player, but the CD player, and when I hover over the "exemplary" drive CD goes to 'move '.

    have you tried using a different suite of cd/dvd burning?

    Imageburn is free and easy to use: http://download.imgburn.com/SetupImgBurn_2.5.7.0.exe

    There may be something to play with your access keys if you have a (ie., wirekeys)

  • Drag and drop the game - add your comments

    Hello

    I created drag and drop the game:

    If the player, drag the object to the correct target - snapping to the target, else it returns to the original location.

    My question:

    I want to add sound (such as feedback) when hanging to the right target.

    What should I write in the code?

    Help, please

    Thank you (-):

    (I added the code and the printscreen)

    star.addEventListener (MouseEvent.MOUSE_DOWN, fl_ClickToDrag);

    function fl_ClickToDrag(event:MouseEvent):void

    {

    star.startDrag ();

    }

    stage.addEventListener (MouseEvent.MOUSE_UP, fl_ReleaseToDrop);

    function fl_ReleaseToDrop(event:MouseEvent):void

    {

    If (star.hitTestPoint (targetstar.x, targetstar.y))

    {

    Star.x = targetstar.x;

    Star.y = targetstar.y;

    }

    else {}

    Star.x = 692;

    Star.y = 232;

    }

    star.stopDrag ();

    }

    square.addEventListener (MouseEvent.MOUSE_DOWN, fl_ClickToDrag_2);

    function fl_ClickToDrag_2(event:MouseEvent):void

    {

    square.startDrag ();

    }

    stage.addEventListener (MouseEvent.MOUSE_UP, fl_ReleaseToDrop_2);

    function fl_ReleaseToDrop_2(event:MouseEvent):void

    {

    If (square.hitTestPoint (targetsquare.x, targetsquare.y))

    {

    Square.x = targetsquare.x;

    Square.y = targetsquare.y;

    }

    else {}

    Square.x = 122;

    Square.y = 266;

    }

    square.stopDrag ();

    }

    create your sound (using the new construction), then apply the play() method to make the sound when your hitTestPoint is real.

  • codesnippent createjs equivalent of flash as3 drag and drop the code snippet

    AS3 deafult code snippent for drag and drop

    circle.addEventListener (MouseEvent.MOUSE_DOWN, fl_ClickToDrag_3);

    function fl_ClickToDrag_3(event:MouseEvent):void

    {

    circle.startDrag ();

    }

    stage.addEventListener (MouseEvent.MOUSE_UP, fl_ReleaseToDrop_3);

    function fl_ReleaseToDrop_3(event:MouseEvent):void

    {

    circle.stopDrag ();

    }

    I just tried to convert this code createjs. but my code does not

    / * js

    var t1 = this;

    {circle.addEventListener ('mousedown', function (e)}

    {stage.addEventListener ('stagemousemove', function (e)}

    T1.x = stage.mouseX;

    T2.y = stage.mouseY;

    });

    {stage.addEventListener ('stagemouseup', function (e)}

    e.target.removeAllEventListeners ();

    });

    });

    */

    are you trying to drag and drop the circle?  If so,.

    var tl = this;

    tl.circle.addEventListener ("mousedown", downF)

    function downF (e) {}

    stage.addEventListener ('stagemousemove', moveF);

    stage.addEventListener ('stagemouseup', upF);

    };

    function upF (e) {}

    stage.removeAllEventListeners ();

    }

    function moveF (e) {}

    TL. Circle.x = stage.mouseX;

    TL. Circle.y = stage.mouseY;

    }

  • How to drag and drop the < af:inputNumberSpinbox > in Control Panel

    Hello

    I use jdev 11.1.1.4.0

    I need the component as < af:inputNumberSpinbox >. Create a data model and how to drag and drop into the inputNumberSpinbox of the data control.
    normally drog and drop the individual attribute as inputText box only. I want to < af:inputNumberSpinbox >.

    anythig want to change in the indicators of control view object itself. Help me.

    Kind regards
    Marilyn S.

    Published by: rami on June 22, 2011 16:45

    Hello

    Cannot drop you as an inputText and then change to the source for inputNumberSpinbox?

    Kind regards
    Stijn.

  • Drag and drop the element of the array of Clusters

    I have a project that includes an array of 'tests', each of which is a cluster that contains an array of 'numbers', a matching the regular expression string and an array of "tasks" (all of them, is in turn, a group of elements).

    It is:

    • Tests (table of):
      • Cluster:
        • Reference numbers (an array of strings)
        • Regex (string)
        • Tasks (table of):
          • Cluster:
            • Task type
            • Basic channel,
            • Measuring channel
            • Other channels

    I wish I could drag and drop to rearrange the task table in an individual event.  (It is a nice-to-have rather than a urgent request - more for my own learning that no matter what).  For now, I've implemented "Move up" and "Move down" buttons

    Examples are fine for a single cluster that includes a table or an array of objects.  As soon as we have an array of clusters, it is difficult to access individual items within a specific cluster.

    Who that it be completed can drag and drop into such a facility?

    Curiously,.

    Geoff

    Hello GeoffF,

    It's certainly doable and you can even use the standard start drag and drop methods/events, the trickiest part is to determine the table of the elements that are selected on the mouse towards the top/mouse downwards and the swap of manual handling.  Fortunately, there are a few decent examples of how do this out there already, I suggest you take a look at this one:

    Example of community: determine the Index of the clicked element Array in LabVIEW

    https://decibel.NI.com/content/docs/doc-22434

    That should give you the selected table indexes, and then all you have to do is to move the elements around around the drop event.  I have attached a very basic demonstrative example that uses this code I just linked (you need to download that as well) and the events referred to swap two elements of the array.   The attached code is just thrown together, you'll want to design something more robust and scalable to any sort of actual use.

    Kind regards

  • Drag and drop the game. splice method does not work on the table

    Hello

    I have a drag and drop game. You listen a sound for 'bread' peculiarities, you switch to slide that mc in a box. If it's the right object I want to delete as mc and splice table so it isn't select this object more.

    However I notice two things.

    When I splice (0) a specific item - so nothing works.

    When I connect the indexed element cuurent IE: the last element to get right - it is not actually delete it table.

    I highlighted the parts of key code.

    private function placeBubbles (): void
    {
    var nextX:int = 0;
    for each (var: bubble in bubbles)
    {
    bubble.buttonMode = bubble.useHandCursor = true;
    bubble.addEventListener (MouseEvent.MOUSE_DOWN, dragHandler);
    bubble.addEventListener (MouseEvent.MOUSE_UP, checkDrag);
    Bubble.x = 0 + nextX;
    Bubble.y = 300;
    nextX += 100;

    addChild (bubble);
    }
    nextGameRound();
    }

    private function nextGameRound (): void
    {
    currentIndexArray = int (Math.random () * bubbles.length);
    currentBubble bubbles = [currentIndexArray];

    currentBubble.playSound ();
    }

    private void checkDrag(e:MouseEvent)
    {
    e.currentTarget.stopDrag ();
    If (this.currentBubble.hitTestObject (this.box))
    {
    If (currentBubble & & currentBubble == e.currentTarget)
    {
    currentBubble.visible = false;
    trace ("Right");
    Bubbles.splice (currentIndexArray);
    Bubbles.splice (0);

    trace (Bubbles);
    nextGameRound();
    soundCorrect.play)
    }
    }
    on the other
    {

    TweenLite.to (e.currentTarget, 1, {x: xIni, y: yIni, ease:Strong.easeOut, onComplete:onFinishTween}) ;// - If you want something happens on the ending of tween - good idea while children must wait})

    }
    nextGameRound();
    }

    the splice() method accepts two arguments.  the first is the index of the item to delete (start) and the 2nd argument is the number of elements to remove.  in your situation, you should use:

    Bubbles.splice(currentIndexArray,1);

  • I would like to be able to drag and drop the names of folders to categorize.

    With Thunderbird, folders currently appear in the order they are created. I'd like to be able to drag and drop to a new location so my frequently used address is near the beginning and those less-used at the end. Tyty

    No problem. Add on even made records and accounts.

  • I want out emails in folders of ordinary files, but when I drag-and-drop, the "modification date" gets changed. How I can still see the date?

    To archive my e-mail files until I decided to switch to Thunderbird, I create regular folders in windows and drag and drop emails to outlook express in the appropriate folders. The "update" column displays the original date of the email... which is what I want to do with Thunderbird. In my view, that he treats it as a new file created today... that is not good for my archiving system of these professional work files that I need to find often in approximate date.

    I understand the forum that it is by default in Thunderbird. There is an add-on that can do what I'm doing?

    Thank you in advance,
    Netwon

    I think the reason what OE is the original date because each message is stored in a single file, while TB stores all messages in a folder in a file, an mbox file. Thus, when you save a message as a single eml file, its 'modification date' corresponds to the eml file date was written in the mbox file.

    You can find the ImportExportTools add-on useful because it allows you to add the date of the e-mail eml file name when enamel is exported ("Save selected messages" of the message right-click menu).

  • Cannot drag and drop the eamils in Hotmail.

    Hello

    I opened Hotmail today but cannot drag and drop emails as usual. I am still able to open and read them, but I cannot move them to other folders unless I have use the checkboxes and ' move to ' drop-down menu.

    Hotmail is truncated normally works with Internet Explorer, so it must be a matter of Hotmail. I tried to delete the cache and cookies of Hotmail (as least I think they were witnesses of Hotmail).

    Any help would be greatly appreciated!

    It seems to work in Firefox. I think it was on the side of Microsoft.

  • How can I make use of TC partitions and make sure that the file analysis is on the right partition?  I do not see the partitions that I have done in the Finder, but I can drag and drop the files in the folder 'Data' unique under Finder/Shared/TC.

    MacBook Air, OSX 10.10.3, 128 GB; 2 TB Time Capsule ME177LL/A.

    Final objective: use Time Capsule as a Time Machine for my MacBook Air and as a storage solution for large files that I don't want permanently on my MacBook Air.

    So far, I've implemented the TC and set up Time Machine on the TC.  I was able to create 2 partitions on the TC using disk utility then that TM was a backup and the disk was recognizable in disk utility.

    Under Finder/shared, I see the TimeCapsule 'airport', and when I click on it it is a file called "Data".  I was expecting to see my two partitions here.  Under 'Features' is a ' Zissou31 MacBook Air (3)"sparsebundle file and I can also create folders here and drag and drop files on the TC here.  I can see the partitions in disk utility, but how do I see/use the partitions I created in the Finder?

    I fear that this may not be set up correctly and I'm either losing on an entire partition I created or these files dragged/dropped may be at risk of overwriting of TimeMachine.  How can I make sure that the file analysis is on the appropriate partition?

    I disabled TimeMachine and go back to see if I could 'point' to one of the partitions, but the "Data" folder is the only thing that TimeMachine seen.  How do I point time Machine for one of the partitions?

    Thank you!

    In addition, in disk utility, I can see one of the partitions TC is related to the time Machine, indicated by the icon Time Machine green bottom left, but two partitions seem to fall under "Zissou31 of the MacBook Air (3) .sparsebundle.

  • Drag and drop the models of the range of functions

    I really like how can I drag and drop a States JKI Machine in range of my service on a block diagram.  Instead of placing a Subvi on black chart, the code in the template is placed on the block diagram.  How can I get my own templates for this?

    I have just learned about this and put in place with a few VI.

    This should happen to you. TST is pointed out that, in the first post, he called VI merge, but got renamed to pour into VI, LV 8.5

  • Drag and drop the image in 2d image

    Hi all

    I am trying to apply a little magic "MS paint" for dialogue of the customer. I want to be able to drag and drop into a 2d image control. Ideally, I wish I could it move and resize once it is there, but let's start with the first part - how to do drag and drop of for example the Office on the 2d image control. The rest is nice-to-have but not necessary.

    I saw a smart example on here by using a transparent control of path, but will not cut here (I have other events related to this area of the image, for example right now, I have a double-click event, add text to the image).

    Thanks for all the ideas... I looked briefly using the API (i.e. nodes Builder) windows but it having the dragons.

    It is not terribly difficult to get these events with the picturebox. You just register for events like I did with the dragdrop event, can it treat appropriately in the structure of your event.

  • Drag and drop the email from windows to the folder my documents

    I am trying to drag and drop an email from Windows mail to a folder in my documents each time I do I have an option to copy and replace or do not copy. I just want to copy it here is another option or I can change to get it to copy the settings. I'm sure that once there was before me a third option so that it can be copied, can someone help me please.

    Drop into a different folder itthere and renmae before moving on to the final
    folder.
     
    --
    ..
    --
    "SS0001" wrote in message news: f9a3b155-6263-4000-89c 0-596bcea9a814...
    > I get emails from the same source, on a weekly basis and the program
    > think I want to update the existing emails with new emails, but I just
    > to add new emails to the existing e-mail file, make
    > you know how I can fix this?
     
     

Maybe you are looking for