Can anyone guide me to ideas on basics of parallel processing in SQL

Hi all,
Can anyone guide me to ideas on basics of parallel processing in SQL and its usage in the the performance tuning of the query. If so what's the syntax to be followed and how to arrive at the optimized query after tuning

My 2'c on the subject.
Don't break your head over parallel query (PQ) processing. It should be something that is of concern to the DBA/Oracle architect - not the developer.
Yes, it is good to be aware of how it works. But you should not write hints in your code that forces PQ processing.
Simple example. You use hints to force a PQ of degrees 5 (meaning 5 PQ processes will be used). It works great on development. In production, 10 users are running that query round about the same time. The PQ ceiling is 20 PQ processes. The 1st 4 users each gets 5 PQs processes and the remaining 6 get none. Or another developer did the same thing, only he was very greedy and coded a PQ of degrees 20 into his SQL. So his SQL is now consuming all available PQ processes. So how did forcing PQ in your code addressed performance? It did just for a couple of users with the majority of users now facing even worse performance.
The DBA is the one that should be tuning this. He/she can set the degree of PQ per table. Control the size of the PQ etc.
And it does not stop there. The primary reason for PQ in Oracle is to lower the latency of I/O. Let's say Oracle needs to reads 100MB worth of data (full table scan or fast full index scan for example). It uses multi block (sequential) reads to read bigger chunks at a time. Still, a single process can only read I/O so fast - the speed of which is entirely dependant on the I/O subsystem and hardware.
Using a second process to assist with the I/O can reduce the overall time. Instead of 1 process reading 100MB data, there are now 2 processes only having to read 50MB each.
But as I mentioned, the actual I/O thruput is a lower level function. Let's say you start a 100 processes. Great - each only have to read 1MB worth of data. Response should be fast.
Wrong. Those 100 processes seriously overload the I/O subsystem and throttle it so badly that the complete platform's performance is degraded severely. So instead of these 100 process speeding up I/O performance, they trash the performance of the entire platform.
Sure, this is an extreme example. But the basic concepts are usually illustrated much better using such an example.
So, you as developer deciding on just whether to use PQ and just how many PQ processes to use...? Wrong. It is not your decision, not your area of responsibility and usually not your area of expertise.
Know what PQ is. Know how PQ works. But think long and hard before forcing PQ via your code (using hints) on a production platform.

Similar Messages

  • When i try to sync contact via itunes to outlook, it doesnt get sync, even i checked the sync contact with outlook. Can anyone guide whats the actual problem.

    When i try to sync contact via itunes to outlook, it doesnt get sync, even i checked the sync contact with outlook. Can anyone guide whats the actual problem?

    I have similar problems trying to synchronize my calendar, also after update on 7.1.1. on my Iphone 5.
    It doesn;t replace the outlook entries on Iphone 5.
    I didn,t try to synchronize the contacts, because it may fail.
    Has any one an idea what could be the reasson for thid synchronize problems.

  • Can anyone guide me how to do Oracle Certification in HRMS/Payroll

    Hi
    Can anyone guide me how to do Oracle Certification in HRMS/payroll & what are basic exams required to complete for the eligibility?

    Hi,
    Its good news for the person who request this Q thread........... also for those who just started in HRMS. With due respect, what's the guarantee you can give after having experience you know 100% or at least in depth knowledge of HRMS / Payroll set up.
    "No one is 100% perfect and complete"
    It’s just an add value not waste of money nor time.
    Regards,
    Naga Suresh. Challapalli

  • OTL I am trying to wright a SQL query that will return the date the timesheet was submitted and date/time it was approved, can anyone guide me on this?

    Hi
    I am trying to wright a SQL query that will return the date the timesheet was submitted and date/time it was approved, can anyone guide me on this?
    I basically need person name who submitted, date - time it was submitted for approval, then the person who approved it and the date - time that it was approved
    Thanks
    Ruby

    Ruby,
    you can start with HXC_TIMECARD_SUMMARY table for submitter detail. But for approver details, i think you need WF tables to get the data for item type HXCEMP.

  • I have bought a IPhone 4 from Malaysia, my home button is not working. I want to replace the phone under warranty but all service centres mention that its country specific and I need to get it replaced only at malaysia. Can anyone guide me what to do????

    I have bought a IPhone 4 from Malaysia, my home button is not working. I want to replace the phone under warranty but all service centres mention that its country specific and I need to get it replaced only at malaysia. Can anyone guide me what to do????

    The iPhone warranty is not international and as you purchased in
    Malaysia the warranty is only valid in Malaysia
    You could try taking to an iPhone Authorised service provider
    in India but there have been many similar posts to yours
    and I am not aware  of them assisting  with an iPhone from
    outside India

  • I try to upgrade my ios to 4.3.1 the downloading times out even on an adsl connection. can anyone guide?

    i try to upgrade my ios to 4.3.1 the downloading times out even on an adsl connection. can anyone guide?

    Before beginning the download, temporarily disable your antivirus, anti-adware, anti-spyware, and any other anti-whatever that is required with that swiss cheese for security OS your computer is running.

  • Can anyone guide me in Validation Frame Work of Struts

    Hi Guys , can anyone guide me on Validation Framework, Template Framework & tiles.I.e some of the best resources which can guide me there, As I am new to STRUTS Frame work.Better dont insist on google etc engines.Just let me know the best of the best which U feel.
    Thanx for the help in advance,
    Venu.

    Hi,
    See if the following are of use to you:
    http://struts.apache.org/userGuide/dev_validator.html
    http://www.reumann.net/do/struts/lesson1

  • Can anyone guide me any material for IDOC_INPUT_EEWAGECOMP_CREATE

    Can anyone guide me any material for IDOC_INPUT_EEWAGECOMP_CREATE
    Or any example will be appreciated

    Wow... brutal forum you chose here. I'm in the same class, and if it makes you feel any better, we didn't cover this content this semester. It was kind of a "trick" question, just to see if students could get anywhere with it. Personally, I'm surprised this instructor would do that, because on a final exam, that seems a little mean. For extra credit, sure, but not on the final.
    I've benefited from some extra boosts from a number of different forums this semester (no, I didn't just copy code, I looked and learned) and I haven't seen anyone treated so badly in any of them. I agree, we all need to find our own way, and try, etc, but a few of the responses sound like they're from people who talk a big game when they're hiding behind a keyboard, and who feel pretty comfortable passing judgement. I mainly just feel sad for those people, but then, that's just me passing my own judgement as well, isn't it?
    I wish I could help you, although at this point, it'd be too late anyway. If it makes you feel any better (I can't imagine why it would), I wasn't able to solve it either. The instructor did tell me that if your program doesn't work, you won't lose points, so try not to be too terribly disheartened. I understand your panic; I did well in this class, but not so well in another, and it will ruin my 4.0 GPA. It's hard to let go of some things, even when the "ethics police" are cramming their harsh words down your throat. I'll stick to my other forums, I think. I don't need to be insulted.
    Good luck to you! ;-)

  • Hi, can anyone guide me how to convert Freehand MX for PC into Mac Version?

    Hi, can anyone guide me how to convert Freehand MX for PC into Mac Version?

    You can upgrade to Mavericks free, just run the App Store program and search for Mavericks. But before you do upgrade I recommend the following:
    1) make sure you have a recent backup. TimeMachine is fine.
    2) Mavericks is somewhat more memory hungry than 10.7 was. You will need 4 GB of RAM and I strongly recommend 8 GB.
    Go back to the Apple menu and select About this Mac - look under the OS info you just looked at. You'll see how much RAM your computer has now. Then click on the More Info button. There you will see your computer info listed as in: iMac, 21.5" mid 2010, for example. Return back with that information and we can tell you how far the computer can be upgraded.
    If you decide to procede and you have enough RAM upgrading to Mavericks is quite simple. Click on the download button and let it do its job.

  • I have iphone 3gs having ios 4.1 and its really creating problem for me to install application like watsapp, viber and etc. when i was trying to install any apps the msgs comes on my screen to install ios 4.3 so can anyone guide me plsss

    After installing ios 6 i lost all my data from iphone 3gs. now i hav ios 4.1 os and it doest support any application like watsapp viber and etc to install. can anyone guide me what can i do ?

    After installing ios 6 i lost all my data from iphone 3gs. now i hav ios 4.1 os and it doest support any application like watsapp viber and etc to install. can anyone guide me what can i do ?

  • HT5071 hello..can anyone get me an idea about iBooks Author in iPad??

    I am struggling about distribution and publishing of my iBook with in ipads..
    can anyone plz get me an idea about this?

    Hi Mahesh,
    You can click preview button in the top left of your iBooks Author application screen. Do the following before you click preview.
    1. Check your iPad has 'iBooks' app installted, if not install from iTune Store it is free.
    2. Open iBooks App before you click Preview option.
    For more details please refer below links.
    For preview: http://support.apple.com/kb/PH2807
    For exporting: http://support.apple.com/kb/PH2807http://support.apple.com/kb/PH2809?viewlocale=en_US

  • Can anyone guide me on how to retrieve a stolen Apple 1 IPad ?

    Can anyone help me how I could retrieve a stolen Apple 1 IPad ?  I have the Walmart receipt for it.

    Unless you had Find My iPad enabled on it then there isn't any way to try and locate it. If you did have it enabled then you could try locating it either via http://icloud.com on a computer or Find My iPhone on another device - but that will only work if it's connected to a network and the device hasn't already been wiped and/or Find My iPad disabled on it.
    If it was stolen and you haven't already done so then you should report it to the police. You should also change your iTunes account password, your email account passwords, and any passwords that you'd stored on websites/emails/notes etc., and if it was a cellular model then you should contact your carrier.

  • Can Anyone guide me?

    Hi there,
    I have an imac that I brought and when I did, I brought iworks CD which I have been using on my machine.
    Anyway, recently I brought an ipad 4 and wanted to use iworks on there and was told that as I have it on my mac, i have no need to buy it again, which is fantastic.
    Now at the same time, and even though I get told many things, I know apple have a difference from some systems to others such as this will not work from the mac to the iphone!
    This is where I am getting mixed up and could be wiser when buying products to make the best value and usage out of the purchase.
    So if I can use it, then i only have a CD version of iworks and if I can't and either way, I could really welcome some elaboration on what OS systems are compatible in this way.
    Can anyone help?
    Thanks
    Rav

    You cannot use the Mac versions of iWork on your iPad. You will have to buy the iOS versions through the iTunes Store.
    Anyway, recently I brought an ipad 4 and wanted to use iworks on there and was told that as I have it on my mac, i have no need to buy it again, which is fantastic.
    You were given false information.

  • Can anyone Guide me Leave Request via ESS

    Hi Experts
    I am New to HR .Can anyone Giude me How to create Leave Request via ESS .I dont know anything about ESS.

    http://help.sap.com/saphelp_erp2004/helpdata/en/38/e8584c2a664547b60442646bee23b6/frameset.htm
    have a look.

  • Can anyone guide me to connect my 5ghz network. After updating to ios6 this network is not showing on my iPad but ok with Mac.

    I have installed ios6 on my iPad with following problems.o
    1. My 5 ghz is not showing although my Mac works fine with 5 ghz. Can anyone give me guidance?
    2. Had problems with kindle books- it completely gone. Tried to delete kindle app and reinstalled. Now it is ok.

    You can't connect directly to the external drive, but should be able to use iTunes Home Sharing via the laptop.
    http://support.apple.com/kb/PH1453

Maybe you are looking for