Folders faster back online rather than with or depends on the situation
HelloI have used with many requests for better readability. This latest request seems to take a little more time to run and
I don't think much up to what a colleague showed me their version (completely different sql statement), which ran faster, but seemed
more complicated and had more lines of code. I noticed that the other version has not used with. I moved the sql code of the with in
the join and the query ran a faster drop from 30 seconds to 798 ms. The question is I am sacrificing speed for better readability of
using with or it really depends on the overall sql statement.
Here is the query using WITH:
with prev as
(
select person_uid, id, name, academic_period,
case when enrolled_ind = 'Y' and registered_ind = 'N' and student_status = 'AS' then 0 else 1 end as enreg_stat,
row_number () over (partition by person_uid
order by academic_period desc) as rn, student_status
from academic_study ac
where substr(academic_period,-1) = '0'
and case when enrolled_ind = 'Y' and registered_ind = 'N' and student_status = 'AS' then 0 else 1 end = 1
)
select aa.person_uid, aa.id, aa.name, aa.academic_period, aa.latest_decision, aa.college, aa.program,
prev.academic_period as prevterm,
prev.student_status, ad.aid_year, sum(ad.total_paid_amount) as Amount_Disbursed, sysdate as date_updated
from admissions_application aa
left outer join award_by_aid_year ad
on aa.person_uid = ad.person_uid
and aa.aid_year = ad.aid_year
left outer join prev
on aa.person_uid = prev.person_uid
where substr(aa.academic_period,-1) = '5'
and aa.academic_period between &TERMSTART and &TERMEND
and (aa.appl_accept_any_time_ind = 'Y' or aa.inst_admit_any_time_ind = 'Y')
and prev.rn = 1
group by aa.person_uid, aa.id, aa.name, aa.academic_period, aa.latest_decision, aa.college, aa.program, prev.academic_period,
prev.student_status, ad.aid_year
Inline version:select aa.person_uid, aa.id, aa.name, aa.academic_period, aa.latest_decision, aa.college, aa.program,
prev.academic_period as prevterm,
prev.student_status, ad.aid_year, sum(ad.total_paid_amount) as Amount_Disbursed, sysdate as date_updated
from admissions_application aa
left outer join award_by_aid_year ad
on aa.person_uid = ad.person_uid
and aa.aid_year = ad.aid_year
left outer join
(
select person_uid, id, name, academic_period,
case when enrolled_ind = 'Y' and registered_ind = 'N' and student_status = 'AS' then 0 else 1 end as enreg_stat,
row_number () over (partition by person_uid
order by academic_period desc) as rn, student_status
from academic_study ac
where substr(academic_period,-1) = '0'
and case when enrolled_ind = 'Y' and registered_ind = 'N' and student_status = 'AS' then 0 else 1 end = 1
)
prev
on aa.person_uid = prev.person_uid
where substr(aa.academic_period,-1) = '5'
and aa.academic_period between &TERMSTART and &TERMEND
and (aa.appl_accept_any_time_ind = 'Y' or aa.inst_admit_any_time_ind = 'Y')
and prev.rn = 1
group by aa.person_uid, aa.id, aa.name, aa.academic_period, aa.latest_decision, aa.college, aa.program, prev.academic_period,
prev.student_status, ad.aid_year
user1069723 wrote:
I moved the sql code of the with in
the join and the query ran a faster drop from 30 seconds to 798 ms. The question is I am sacrificing speed for better readability of
using with or it really depends on the overall sql statement.
It can happen - I wrote about this a couple of years (http://jonathanlewis.wordpress.com/2010/06/29/subquery-factoring-3/), but don't think it would still be a problem with 11.2; However, you use ANSI and the transformations made by Oracle to manage ANSI combined could have caused the missing cycle of transformations (or find) a strategy that made the difference (transformation quirks with ANSI have quite frequently on the forum). Technically, it seems as if the weighted subquery must have been moved, inline - but maybe it wasn't, or maybe it was but after that ANSI transformation had taken place, leading to the optimizer missing a secondary processing. Until we see the plan of execution, we can not say more than that.
Update: here is another example of the problem that might be relevant, given your outer join: http://jonathanlewis.wordpress.com/2010/09/13/subquery-factoring-4/
Concerning
Jonathan Lewis
Published by: Jonathan Lewis January 16, 2013 21:43
Add second example
Tags: Database
Similar Questions
-
I want to drag contacts into folders to organize them rather than color coded categories.
I want to drag the contacts, while in the address book, in folders to organize them rather than color coded categories. Example, I have a folder called "Active CUSTOMERS" and I want to move to a folder titled "Past CLIENTS".
Also, I drag messages into folders that works well, but when I try to move all of a folder of messages under a different title, I often put in place the new folder and copy and paste all the messages. It's tedious.
I can't believe there are not many people in sales who want to put in place their clients in different folders. It would really clean up your address book so you don't always go through thousands of email addresses. I know that I can sort the color-coded categories, but this is slow compared to drag the contact into a folder.
Please feel free to send me suggestions. My contacts duplicated and screwed up in Windows Live and now I need to sort out about 5 000 contacts - I already managed to get rid of exact duplicates but there will still be a lot of work. [email protected]
Create a new address books and move contacts in them.
In the address book window, select file-new-address book
Then, drag and drop contacts from existing books in the new. -
Is it possible to play or pause a video by clicking on the video itself than with a set of the command bar and stop buttons? If Yes, how can we do?
When you set the video object, just add a listener for events such as:
myVideo.addEventListener (MouseEvent.CLICK, toggleVideoPlayback);
private void toggleVideoPlayback(e:MouseEvent):void {}
If play, pause
If in pause, play
}
-
fluid grid appears as his means to chrome and firefox, but in ie and safari the divs to display as a percentage of the entire screen, rather than as a percentage of the maximum width
I found the problem, thank you! nothing just a missing brace in the css that was causing the problem. the lines of code are numbered, and red when there is a problem (in cc at least 15). I could be the last to know that.
-
Rather than the usual grid display, I would like to see all my calendar entries in a list, sorted by date, with those further in the future at the bottom of the list. Each line should include: date, name of the event, all the indicators, a link to an e-mail when it exists.
Events and tasks (Alt - N)
Check "Find Events". -
How can I force a download rather than open a preview of the file of the file a hyperlink?
When I hyperlink a file (pdf, txt, etc.) it opens a preview of the file, rather than just start downloading, I wonder how to achieve this.
Example of what I want to do...
https://www.Google.com/chrome/browser/desktop/index.html
When you click on "Download Chrome", it opens a window asking if you want to download, then when you click Yes it downloads the file.
I would like to do exactly that, or force the download immediately, without popup dialog box.
Thank you!
You can use the attribute of HTML5 download like this: http://www.w3schools.com/tags/att_a_download.asp
For more details: HTML download attribute
-
It's like Firefox 20.0 never stops but only restarts.
Even when I close Firefox 20.0 by clicking the X button in the top right or use "exit" when I open Firefox, it is as if I had used 'restart', namely the tabs don't load until I click on them. In addition, 4 pages that I use as my pages are not there, but rather some pages I got to the top when I finally closed my browser.
I tried to create a new profile, that worked ONCE. Then he returned to my problem.
I used 'restore' to return to a time before the problem started, but that did not work.
I removed the addon I had downloaded in that time, but which did not help either.Thanks for any help you can give. I know you're all volunteers and that your time is valuable.
Try to use the extension SearchReset reset preferences to default values.
Note that the SearchReset extension runs only once and then uninstalls automatically, so it will not appear on the page "> Firefox Add-ons" (topic: addons).
You can check if you have a user.js file in the Firefox profile folder that affects the pref browser.sessionstore.resume_session_once true value.
You can use this button to go to the Firefox profile folder:
- Help > troubleshooting information > profile directory: see file
-
Back to Palm Desktop synchronization, rather than with Outlook
I recently installed Outlook on my PC and was then given the option to sync my Treo to Outlook. I didn't think it would mean that it would be no longer synchronized to my Palm Desktop. I don't find a way to return to Palm Desktop synchronization, I prefer, without uninstalling Outlook. Can anyone offer advice. I would be very grateful. Thank you.
Hello and thank you for using the Palm Help Forums!
If you use a newer version of Palm Desktop, you can change the way that you want to synchronize easily. On your PC, go to start > programs > Palm > PIM led Sync > sync with Palm Desktop.
All your data will not be synchronized for Palm Desktop. If you do not have this feature, you can download and install a new version of Palm Desktop by going to www.palm.com and click support.
I hope this helps and let me know if you have any other questions.
-Pat
Message is about: Treo 800w (Sprint)
-
I just bought a HP DM1-3100SA and noticed that it came bundled with Windows 7 32 - Bit Home Pro instead of 64-bit according to the American version (DM1Z?). As far as I can see, the hardware is identical - AMD Fusion E-350, 3 GB, 320 GB drive at 7200 RPM so I see no reason for HP to opt for the operating system 32-bit to the United Kingdom as the E-350 is a 64-bit APU.
Is it possible to re - install W7 64-bit of the recovery partition or am I stuck with W7 32-bit?
I guess that there is the option to purchase the retail copy of W7 64 Home Pro, but seems an unnecessary extra cost.
Thanks in advance.
Hello
If it is still topical for you:
the ISO in Windows7 files can be downloaded from Digital River (the Microsoft online provider - see links below).
These images are free of viruses and completelyLEGA
Of course you must have/buy a valid license, but the laptop key dm1, we can re - use the key provided for Windows7 32 bit.
Watch you if you clean install Windows7 you won't not the HP tools... the question is if you really need them. But it is STRONGLY recommended to re - install HP Coolsense since it regulates the temperature/fan.
Link:
http://TechPP.com/2009/11/11/download-Windows-7-ISO-official-direct-download-links/
Have fun!
-
When I go on a website and try to open something (like a monthly statement of account, etc.) instead of opening it as a pdf so I can read Firefox makes me download it, save it and then open it. Then I have to go find and remove routine if I don't want to keep. Don't know why this started happening recently, and he disobeys on all sites.
Please, try the following:
- Open the Firefox Options window
- Select the Applications tab
- Locate Portable Document Format (PDF) on the list of file types
- Change the Action Preview in Firefox
- Click Ok
This should allow you to get an overview of most of the files in Firefox.
It will not work in all cases because some site contain codes to force the browser to download instead of the preview. -
This problem also occurs when I open a new tab and enter my homepage (www.rr.com) web address
Reload Web pages and ignore the cache to refresh potentially stale or corrupt.
- Hold SHIFT and click reload.
- Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
- Press 'Command + shift + R' (MAC)
Clear the cache and cookies from sites that cause problems.
"Clear the Cache":
- Tools > Options > advanced > network > content caching Web: 'clear now '.
'Delete Cookies' sites causing problems:
- Tools > Options > privacy > Cookies: "show the Cookies".
Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).
- Do NOT click on the reset button on the start safe mode window or make changes.
-
How can I default my Windows Live Calendar rather than with Outlook?
I don't actively use Outlook, so how can I default to Internet Explorer 8 (XP) to accept Windows Live as my default calendar?
Hello
I suggest that you post the question on the link provided below for assistance.
-
rather than anchor image by finding the text...
Hi scripting gurus & everyone,
We work with InDesign CS3 files. And we need to put two different icons as objects of anchoring in the margins by finding respective legends. If the legend is "[pair-icon]" means the icon P (i.e. the image), which should be placed as anchored object. If the legend is "[group-icon]" means the icon-G (i.e. the image) which must be placed as anchored object. The icons have about 3 pica height and width. He will always be just to the left of the margin in front and back pages. Of automation for investments of object anchor is new for us.
Can someone help me with this.
Thanks in advance.
Indana
Here's the complete script. Based on the fact that your library is open, that it contains two assets that have been appointed, and that you have an object named "icon" style You can also set the search options (include notes, stories, locked, etc..)
The script for this: find all instances of [P-ICON] and [G-ICON] (which is [[PG] - ICON] in GREP). Browse the table of found items (findGrep (true) returns the items in reverse order), inserting an asset to the last point of insertion of each instance found. Each instance concluded (i.e. each myFound [i] .silence) is the name of an asset.
This marginal stuff is good fun. I just put to evil together a system of information on the dynamic margin (http://www.kahrel.plus.com/indesign/sidenotes.html).
Peter
#target indesign myDoc = app.documents[0]; myObjectStyle = myDoc.objectStyles.item ("icon"); myLib = app.libraries[0]; app.findGrepPreferences = null; app.findGrepPreferences.findWhat = "\\[[PG]-ICON\\]"; var myFound = myDoc.findGrep (true); try { for (i = 0; i < myFound.length; i++) { myIcon = myLib.assets.item (myFound[i].contents).placeAsset (myFound[i].insertionPoints[-1])[0]; myIcon.appliedObjectStyle = myObjectStyle; myFound[i].remove (); } } catch (e) {alert (e.message)}
-
I'm not always able to 'catch' the update notification popup when it arrives, and I do not wish to allow the automatic updates without my permission. I have a rather 'sensitive' situation of the internet. Would it not possible to add a button on the tab updated to allow us to check the updates manually please? This would greatly help my situation.
Thank you for your time
Baseman
When the menu bar is not the AppMenu button to access the menu bar items. Some people also call the menu "Burger" in the upper right. Unfortunately, the corresponding support article is gone.
It would make not much sense for me to put a "Find updates" button in the Update menu tab, but that's just me.
Please mark it as "resolved" when your problem is actually solved.
Thank you. -
Since Monday, the sites I have visited for years are now suddenly giving me this message. I noticed that when this message appears, the address bar is normally the "https" instead of the usual "http" display, I remove the s and sometimes it does not work and returns to "https". It is even affecting my search on google images where no photos appear at all. When I search in the 'Safesearch', the images appear, but not any other time. I don't have this problem in another firefox just browsers, and only on my laptop not my office and both run the same level of ESET security system and firefox versions. I have re-installed firefox but that does not solve the problem.
can try to disable ssl scanning within your eset security program and see if the problem persists?
http://KB.eset.com/esetkb/index?page=content & ID = SOLN3126 & CATA = Search & viewlocale = en_US
Edit: if it does not please also try the steps listed in the certificate is not trusted because the issuer certificate is unknown
Maybe you are looking for
-
Satellite C660 keyboard and mouse not working not
I have a Satellite C660 who is about to leave the window. The list of problems are the following: Keyboard does not workMouse pads and button do not workUSB mouse and keyboard do not work (but light up with power)He likes also turn off randomly when
-
"Restart the computer due to a problem"
I've had issues with my MacBook Pro 15-inch, mid 2010 It restarts unexpectedly and it becomes very annoying. I've seen other messages of this kind of problem, but none with as old as my computer is. I was wondering if there is anything Apple Support
-
Memory card is not detected on motorcycle G2
Memory card is not detected on motorcycle G2
-
Whenever I open an e-mail in MS Outlook Express, it opens in a small window, and I must maximize to get the full message.
-
Help! When I send a message it is said there is a mistake, but there is no error and he actually sent the message. It gets stuck in my Outbox and if I don't delete it will continue to send over and over again! What can I do? original title: OUTLOO