How to make this simple sql run faster?
Here is a very simple sql, but it takes too long to finish as an hour or more, and the problem is in the table. It's a huge table with 17660025 lines.In addition, upd_dt is indexed.
select distinct (dstn_type) from ims_ets_prty_msge where ims_ets_prty_msge.upd_dt > sysdate - 30;
Execution plan seems to be no problem: (is 9i, and I do not think that it would not perform better if the UNIQUE HASH is used instead of SORT UNIQUE)-----------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost |
-----------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 6 | 78 | 1409 |
| 1 | SORT UNIQUE | | 6 | 78 | 1409 |
| 2 | TABLE ACCESS BY INDEX ROWID| IMS_ETS_PRTY_MSGE | 856K| 10M| 10 |
|* 3 | INDEX RANGE SCAN | IMS_ETS_PRTY_MSGE_INDX5 | 154K| | 2 |
-----------------------------------------------------------------------------------------
Predicate Information (identified by operation id):
---------------------------------------------------
3 - access("IMS_ETS_PRTY_MSGE"."UPD_DT">SYSDATE@!-30)
Note: cpu costing is off
Here is some info on the tableNUM_ROWS BLOCKS EMPTY_BLOCKS AVG_SPACE CHAIN_CNT AVG_ROW_LEN
17129540 455259 622 502 455278 188
The thing is that we must make it run faster.And all I can think is to create a bitmap on dstn_type (low cardinality) index and partition the table using upd_dt;
So my question would be is anyway that we can get a better response time without having to make that kind of change?
Or is this kind of change really help?
Any thoughts would be appreciated!
Thank you
Have you thought about putting an index on (upd_dt, dstn_type)?
With the query you posted, and this index, it should be possible to use a full scan of the index, no visit to the table at all.
A bitmap index would not be a good idea, if it is an OLTP application / table.
Tags: Database
Similar Questions
-
How to make a simple slideshow DVD of a group of .jpg images? No music, no fancy transition. iDVD > magic DVD comes close, but the quality is poor and I want the images in a specific order. I also have iLIFE ' 09, which includes iPHOTO
1. put the image files you want in the slide show in an album and genre as you want. Follow the Apple document to prepare images for iDVD: iDVD ' 09 (7.x): preparing images for iDVD slideshows
2 - Launch iDVD and select an older theme, not animated. You can change the background of the theme by dragging the image file of your choice, black or other, in the display pane for the menu.
3 - Click on the button '+' and add a slideshow from the menu.
4. double click on the sideshow button to enter the mode of construction of the slide show.
5. in the media pane click the Photos button.
6 - click on iPhoto and find the album you created with selected images.
7. Select all images in the album and drag to the left in the slide show window.
8 - Select the transition for the slideshow and the time for each slide on screen
9 - follow this workflow to help ensure the best DVD video qualty:
Once the project you want it save it as an image disk via the menu file → save as Disk Image . It will separate from the process of encoding of the burning process.
To check coding mount the disk image, launch a DVD player and read it. If it plays OK with DVD, encoding is good.
Burn burn to disc with utility disk or toasts to the slowest speed (2 x - 4 x) in order to ensure the best quality. Always use higher quality media: Verbatim, Maxell or Taiyo Yuden DVD-R are recommended in these forums.
-
IBM Thinkpad message: 'this machine can run faster with the USB 2.0 hub.
Original title: Thinkpad USB 2.0 Hub.
Hello:
I have an IBM Thinkpad T-21 which is under Ubuntu & Windows xp. I primarily use Windows XP. The pop-up that keeps occurring is "this machine can run faster with the USB 2.0 hub. Can you tell me how to upgrade my USB 2.0 Hub? Would like to know because I can't sync my Android phone with my computer until I do it. Thank you.
Are you sure you copied this error message properly? In other words, he says that the hub could perform better if connected to a USB 2.0 port? As far as I can determine that the T21 is not come with a USB 2.0 port, even if you connect a USB 2.0 device (for example a hub), the unit will only race as fast as the port allows it.
What is the brand and model of your terminal?
It is possible that the message means the opposite (i.e., your computer has a USB 2.0 port, but the hub is only a USB 1.1 device).
USB 2.0 was introduced in 2001, so if you bought your computer before 2001, it is likely that you use USB 1.1 or 1.0.
Open the Device Manager (start > run > devmgmt.msc > OK)
Expand the category of 'USB Bus controllers'.
If you see the "Enhanced" work for one or more of the listed devices, you have a USB 2.0 port. If you do not see "Enhanced", you have USB 1.1.If the problem is that the USB port on the computer is not 2.0, so your only solution is to buy a USB 2.0 PC Card adapter. Example and example 2
If the problem is that the hub is not 2.0, then you will need to buy a new hub. -
How to make a simple video with my computer ' s web cam?
I recently (10 minutes ago) asked a simple question on how to make a video. For five of the most wonderful years of my life, I have designed critical systems of path for launch Pads 39A & B, the vehicle Assembly building and the robot that went out the candle to the pad. On paper, a critical path system explained how the engineer, design and build a structure. In this case, it was activities separate from about 3400 and when, how and how long these activities were to each other. At the time where the Commander. I worked and which had been granted to these contracts, had developed the method of the path critical following the guidance system of the Polaris Missile, which was incredibly hard to get a handle. At the time where manned Apollo lunar Mission has been in place, I was one of only ten people in the world, who knew the process. We needed honest, some answers to our questions or it would take years to accomplish what Stephen Hawking characterized as "the unique accomplishment largest in human history" you gave me answers to my questions by these 'engineers' for Microsoft on the use of a webcam and had implemented them, would not be there was a second launch of Apollo because the first three astronauts would be dead. How to make a simple video with my computer ' s web cam? Al wood
http://www.WikiHow.com/use-webcam-on-Windows-Movie-Maker
Movie Maker: http://windows.microsoft.com/en-us/windows-live/movie-maker
Not tested. Instructions could be for the old version of Movie Maker, but they probably give you the basics.
(It's a way of many - that the answer does not depend on your OS, but on the software you use to interface with your webcam. Camtasia? Skype? etc and so on...)
In addition, to find this information is quite simple. Once I decided on what software to go with in my response to you (I chose Windows Movie Maker 12 because it's easy to get, free, Microsoft, similar to products that were previously found with Windows) I did a simple search on Google:
use Windows Movie Maker 12 with webcam
https://www.Google.com/#q=Use+Windows+Movie+Maker+12+with+webcam
or more demonstratively:
http://lmgtfy.com/?q=Use+Windows+Movie+Maker+12+with+webcam
The first hit seems to be a video market even helps you to download and install the Windows Movie Maker 12 application...
-
When I go to get the modules (7.0.1), there is no evidence, except the info bubble "which are the modules. How to make this work? The rest of the functions in this section seems to work. And I can get MY addons, but not the available modules.
On the left side, click Extensions.
-
whenever I click on something on that I get pop up as I'm right click how to make this stop?
whenever I click on something on that I get pop up as I'm right click how to make this stop?
Cindy,
What should I have selected in system preferences... > mouse > Point & Click > secondary click?
-
"$US" automatically... How to make this stop?
Hello
I have "joint currency" spreasheet
But the numbers seem to AUTOMATICALLY add a 'US' before ' $'.
How to make this STOP?
Thank you very much
Troy
Hi Troy,
This is probably connected with the region setting in system preferences > language and text. Several countries use the sign $ as their monetary symbol.
Browse from the context menu in the preferences to see which is the "naked" in your area and who to choose as your marker for amounts in US dollars.
The symbol has no effect on the number of underlyings.
Kind regards
Barry
-
I signed up for Apple music and since then I can't synchronize playlists from my computer to my phone because it says I have iTunes game turned on, but I do not subscribe to iTunes recently Match (ish). How to make this stop?
Hello
You cannot synchronize in usb or wifi if you subscribe to the Apple's music. The basic principle of the AM is that your iTunes library is scanned to determine what can be matched or must be downloaded. Once completed, all the music you will be available to listen to or download on your iOS device.
Jim
-
screen scrolls top down on its own how to make this stop
my screen jumps up and down how to make this stop?
Hi ssuueet,
- Have you tried the steps suggested?
- Have you managed to solve the problem?
If this isn't the case, reply to the thread, then we can look for other options.
Thank you!
-
When I shut down windows end progra - sample appears and windows will not be stopped, unless I click for end of program. Eny one have an idea how to stop this program from running?
Then, you will need to request Support Intel if the drivers you downloaded were appropriate for your hardware and Windows XP.
-
in the folder windows images, photo icons are the same and are not actually see a little image of the image. How to make this happen
Hi tonutot,
1 when was the last time it was working fine?
2. did you of recent changes on the computer?
3. only happens in the pictures folder?
Check and make sure that the bottom of settings is set correctly on the computer.
(a) in the currently open folder, click organize on the toolbar, and then click folder and Search Options.
(b) click on the view tab, and then deselect the always show icons, never thumbnails check box.
(c) click on apply and OK
Behavior and change folder views
http://Windows.Microsoft.com/en-us/Windows-Vista/change-folder-views-and-behavior
I hope this helps!
Halima S - Microsoft technical support.
Visit our Microsoft answers feedback Forum and let us know what you think.
-
My tx10 automatically rotates pictures 90 degrees after that I'll take them. How to make this stop?
The camera automatically rotates the image according to its orientation. Unfortunately, this feature cannot be disabled.
You can correct orientation by setting the [rotation] option in the menu viewing.
If my post answered your question, please mark it as "accept as a Solution.
-
Do I need to eliminate one of the creative clouds? How to make this work-2 accounts on one computer?
Hi Kim,
Two creative cloud subscriptions registered under 2 different unusable i.d. together on a single computer.
Must disconnect and connect each time as the creative cloud desktop application, in order to be able to use another subscription.
-
Hi, I was wondering if someone could point me in the right direction how to make this intro in After Effects. What is a table multi or something else?
CCI of driving a vision for the future of WA - YouTube
Some other effects used in which seem to be:
Plexus: http://aescripts.com/plexus/
Race 3D: http://www.redgiant.com/products/trapcode-3d-stroke/compatibility/
Individual: http://www.redgiant.com/products/trapcode-particular/
The photo explosion could be made with the individual or the shape (the author can have the Trapcode Suite)
-
When I export my file to generate a .pdf file, the text box is literally a box around it! How to make this line disappear?
Looks like you have a line on it. Select the image and the race set to None.
Maybe you are looking for
-
Firefox asked out of the blue if I want to download afr.php - what is it?
I forgot to take dumps of the document screen. AFR.php has been described as a text file and I thought I'd have a glance. However, firefox has warned it was a script, so I gave up the download. A hacker attack?
-
I have several accounts e-mail with different servers. I don't have access to all except at home. If I have access to my work Gmail account or another remote site, I would prefer not to have to open/mark as read, etc., at home where I use Thunderbird
-
Satellite A200 - 1 3 - readers of the need to run Windows XP Pro SP3
Hello I need help to find the disks required to run Windows XP Pro SP3 PT - PT on my Satellite A200 - 1 3. Due to the extremely poor performance of Windows Vista, I did a downgrade of the operating system and I've managed to install the SP3 Windows X
-
Deskjet3050A in a flag tricolor hp cartiridge is not compatible
There are many color ink, the copper heads have been cleaned, I try to print in black only and the Tricolor cartridge message is not compatible comes and I can't print anything in any color or black mode the printer works fine and I have not touched
-
BlackBerry Z30 text notification sound
After the recent update the z30, I can't change the notification for text and e-mail sound. I can not even find where to change the settings.