Update cursor is faster or normal update in a cursor
Hi
oracle 10.2.0.1.0
Is update cursor faster or an update statement within a cursor ? Also , owing to fact that update cursor locks the rows unlike a norma update statement.
Regards
VK
804282 wrote:
ok. I need to update rows with in pl/ block only ( with in cursors l)If you can do that using a single SQL statement (cursor), so much better.
If you code an explicit cursor for updating, and use a loop fetch a row, check it, and then conditionally update it - you are generating a lot of work and I/O.
Let's say there are a 1000 rows output by that cursor. This means a 1000 loop iterations for fetching (ignoring PL/SQL internal optimisation). It means executing that condition in PL/SQL a 1000 times. If 500 of these rows match the condition, then it means executing 500 SQL update statements.
If the cursor in future returns 5000 rows, what happens to scalability and performance? You now have 5x the number of loop iterations! And how many SQL update commands will be fired off in that loop?
This approach simply does not scale.
The optimal approach is to create a single SQL update statement - add the conditional logic code in PL/SQL as predicates to the SQL statement. And then execute a single update cursor for updating the contents of that table. And not 100's or even 1000's of individual single-row update statements as the case is when using a PL/SQL loop.
SQL is always faster than PL/SQL. The less PL/SQL code and the more SQL code you use to crunch data, the faster it will be.
The rule is quite basic and simple: Maximise SQL and Minimise PL/SQL.
Similar Messages
-
The time on my pre is faster than normal
when i used the pre in my hometown the time worked fine. i am now at college and still in the same time zone so it is the same exact time as my hometown, but for some reason it runs faster than normal. so ill set it to my computer time then later on in the day it will be like an hour ahead. i dont know what to do, help please.
Post relates to: Pre p100eww (Sprint)I've been having a similar problem. Here's my story:
My wife and I got Pres on the day they went on sale. About a week later I noticed that the time was fast on both of them.
Over the next few weeks I tried experimenting with everything I could think of. I tried every combination of setting the network time and zone sliders to on and off, but they still gained about 3 minutes a day.
At one point I called Sprint. They quickly elevated me to the senior tech person, who was stumped. The best they could offer was to do a reset. Doing so did result in the phone grabbing the correct time, but it proved to be a non-fix... it started running fast again.
In June we spent five days in Las Vegas. During that period, my phone kept absolutely perfect time; my wife's, however, continued to run fast. When we returned home to Seattle, my phone also resumed running fast.
Last Friday we took the phones into a Sprint store with an on-site repair shop. They took mine in the back, told me they did some updates (not sure what this was since all my updates were current) and told me it was fine. No such luck. By the next day I noticed it was still running fast. My wife's phone also had some minor screen cracks so they swapped hers for a referb unit. Believe it or not, this one started running fast as well.
At some point I noticed that the phone grabs the correct time if I connect it via USB for a media sync.
So, that's where I'm at -- we've handled three phones and all of them run fast regardless of how the network/zone sliders are set. I really don't know what else to try but would eagerly welcome any suggestions. -
How can I get tracks to play faster than normal speed in itunes?
I have lectures, audio books, and other recordings that I would like to play at faster than normal speed (like 1.5X or 2X normal speed). I've set all of these recordings as audio books because I read that they have the option to play faster, but, I can't find how to actually make them play faster. I also read that it's possible to open them in quicktime, but that is very much less than ideal and a waste of time. Surely there is a way to do this in itunes, but I can't figure it out.
Thanks for any help.I will show you how I played my audio or mp3 files at any particular speed. This method will allow you to simply enter in your desired speed.(ex. 1.5 or 1.33)
In my case Im using an audio book [Lord of the flies] I download off youtube as a MP3 file using this program:
http://download.cnet.com/MediaHuman-YouTube-to-MP3-Converter/3000-2140_4-7544580 3.html
First off, you will need to make sure your audio file is open in QuickTime player rather then iTunes. First you need to locate the audio file. If your audio file is in itunes then right click the file and select "Show in Finder"
The file should open in a finder window, highlighted. Right click the file, go to "Open With.." And click Quicktime Player. (If quickTime Player is not an option, you need to go to "Other..." and select QuickTime Player from your Applications folder)
Now that your mp3 file is open in a QuickTime window you may proceed to step 1.
1) Open Finder
2) Click Applications
3) Click Utilities
4) Open AppleScript Editor
5) In the program copy and paste the script below.
6) Click "Compile"
7) Now to test this script, click "Run" A window should pop up prompting you to enter your desired speed (default is 1.5)
8) press "OK" and quick time should start playing your audio at the speed you entered in.
9) If you would like to use this script again, go to File > Save... >Name your AppleScript and save it Anywhere (I saved mine in the Music Folder for easy access)
tell application "iTunes"
pause
set myTrack to location of current track
# the player’s position within the currently playing track in seconds
set mySeconds to player position
end tell
# show a Dialog
set SpeedFactor to 1.5
display dialog "Enter speed factor:" default answer SpeedFactor
set SpeedFactor to text returned of the result
tell application "QuickTime Player"
activate
# pause all previously opened documents
set open_docs to documents
repeat with doc in open_docs
pause doc
end repeat
# open the track just played in iTunes
open myTrack
# get the 'QuickTime' document, MyTrack should be equivalent but it isn't
set MyMovie to first document
# rewind by 10 seconds
if mySeconds > 10 then
set mySeconds to mySeconds - 10
end if
# set current time
set current time of MyMovie to mySeconds
# set Speed Factor and start playing
set rate of MyMovie to SpeedFactor
end tell -
How do you measure if a battery is failing faster than normal?
How can you tell if your battery is failing faster than normal or acceptable?
I bought 2 batteries with my G4 Powerbook 2 years ago. One now gives me an hour of battery life, and one 1.5 hours. This seems very low considering it's only 1 year of use per battery. Apple Care only asks about how long the battery has been owned... never how much it has been used, number of cycles, amps, etc.
Battery Information:
BATTERY #1
Full Charge Capacity (mAh): 2703
Remaining Capacity (mAh): 2170
Amperage (mA): 637
Voltage (mV): 12522
Cycle Count: 190
BATTERY #2:
Full Charge Capacity (mAh): 3032
Remaining Capacity (mAh): 3027
Amperage (mA): 0
Voltage (mV): 12417
Cycle Count: 105
Compare these numbers with my brother's PowerBook G4, bought just a few months after mine:
My main battery has 209 cycles and a capacity of 3686 mAh. My secondary has only 29 cycles and a capacity of 4400 mAh.
why does he have 3686 mAh after 209 cycles, and my bettery has 2703 after 190 cycles? Is there some way to tell if this is "inappropriate" loss of power?
Thanks
-Erika
PowerBook G4 Mac OS X (10.4.4)I did do several things wrong (that I only found out about now):
1. I left the computer plugged into AC
2. I stored whichever battery was not in use full, rather than half full
But I did callibrate regularly (if only by necessity).
I still think 1.5 hours at 2 years is not very good if you are using two batteries (that's really only one year each).
However, I called AppleCare, and I was told they will only consider a battery if it has been owned for under a year, and has less than one hour of life at best. That still seems extremely low to me (I'd be upset if I had 1 hour at 1 year on my only battery), but such is life. I think the moral of the story is that it would help to give instructions about battery care with the computer, and don't buy an extra battery unless you really need it. -
My Macbook Pro has become very slow and it sometimes hangs. How can I make it work faster and normal? I used Etrecheck and got the report below;
EtreCheck version: 1.9.12 (48)
Report generated June 16, 2014 at 18:05:25 GMT+1
Hardware Information:
MacBook Pro (13-inch, Mid 2012) (Verified)
MacBook Pro - model: MacBookPro9,2
1 2.5 GHz Intel Core i5 CPU: 2 cores
4 GB RAM
Video Information:
Intel HD Graphics 4000 - VRAM: (null)
Color LCD 1280 x 800
System Software:
OS X 10.9.3 (13D65) - Uptime: 0 days 1:50:52
Disk Information:
APPLE HDD TOSHIBA MK5065GSXF disk0 : (500.11 GB)
EFI (disk0s1) <not mounted>: 209.7 MB
Machintosh HD (disk0s2) / [Startup]: 499.25 GB (465.33 GB free)
Recovery HD (disk0s3) <not mounted>: 650 MB
MATSHITADVD-R UJ-8A8
USB Information:
Apple Inc. FaceTime HD Camera (Built-in)
Apple Inc. Apple Internal Keyboard / Trackpad
Apple Inc. BRCM20702 Hub
Apple Inc. Bluetooth USB Host Controller
Apple Computer, Inc. IR Receiver
Thunderbolt Information:
Apple Inc. thunderbolt_bus
Gatekeeper:
Mac App Store and identified developers
Launch Daemons:
[loaded] com.adobe.fpsaud.plist Support
[loaded] com.microsoft.office.licensing.helper.plist Support
User Login Items:
iTunesHelper
Dr.Web Light
Dropbox
Internet Plug-ins:
SharePointBrowserPlugin: Version: 14.0.0 Support
FlashPlayer-10.6: Version: 14.0.0.125 - SDK 10.6 Support
Flash Player: Version: 14.0.0.125 - SDK 10.6 Support
QuickTime Plugin: Version: 7.7.3
Default Browser: Version: 537 - SDK 10.9
Safari Extensions:
iGetter Extension: Version: 2.9.2
Audio Plug-ins:
BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
AirPlay: Version: 2.0 - SDK 10.9
AppleAVBAudio: Version: 203.2 - SDK 10.9
iSightAudio: Version: 7.7.3 - SDK 10.9
iTunes Plug-ins:
Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
User Internet Plug-ins:
iGetter Plugin: Version: 2.9.2 Support
iGetterScriptablePlugin: Version: 2.9.2 Support
3rd Party Preference Panes:
Flash Player Support
Time Machine:
Time Machine not configured!
Top Processes by CPU:
4% Dropbox
3% WindowServer
0% fontd
0% Microsoft Word
0% Microsoft Excel
Top Processes by Memory:
242 MB drwebd
176 MB Dropbox
147 MB Dr.Web Light
86 MB WindowServer
82 MB App Store
Virtual Memory Information:
43 MB Free RAM
1.68 GB Active RAM
1.65 GB Inactive RAM
641 MB Wired RAM
421 MB Page-ins
0 B Page-outsMeli070,
uninstall Dr.Web Light. -
my ipad 2 was using iso 4 now...but i was trying to update to iso 7 and it took 89 hour to finish..with my normal dowload speed was fast but using itune was slow...i was using my somputer to update my ipad..any idea that to make my update faster?
Hi ayukio!
I have an article that can address your question for you:
iTunes Store: Download times will vary
http://support.apple.com/kb/ht1577
If you continue having issues downloading the file, I would suggest using the troubleshooting steps in the following article to isolate or resolve the issue:
iTunes for Windows Vista or Windows 7: Troubleshooting unexpected quits, freezes, or launch issues
http://support.apple.com/kb/ts1717
Thanks for being a part of the Apple Support Communities!
Regards,
Braden -
Battery dying faster than normal and I have been to the Apple Store and battery is fine
Is anyone else experiencing this? Both my iPad and my iPhone 5 started to have the battery die 2x faster after the latest upgrade. I have reset it without losing data and I am about to reset one of them back to original. Any one have any suggestions? I am thinking that one of my apps is trying to always load or search for wifi but not sure and don't know how to figure out which one it is.
I have been to the Apple store and they have checked my batteries and both are fine. The staff suggested that I let the battery die right down and completely charge it and then shut it down for a few seconds. so that the device is " clean" and then turn it back on but that didn't work at all.You can poke around in the settings. There's a lot of stuff defaulted to on that you may not need. Such as notifications. Background app update, background app update. Try turning those off and see if that helps.
-
HT4623 my battery is draining faster than normal AND my phone is rebooting on its own.
since i updated to iOS 6, my phone is killing the battery, and i am getting random reboots. has anyone else experienced this?
Basics from the user manual are restart, reset, restore from backup, restore as new. Try these in order until your phone is fixed.
-
Loading a picture with as too fast than normal loading ?
hello,
i want to know if loading a picture from a server with a swf
and show it on the stage, (to show it on the web browser) is slower
than loading the picture normally (showing it with img tag).
thank you for your answerWhy don't you test it out yourself?
-
Settings for: Internet faster then normal on WIFI!...
i have found that changing a simple setting, allows you to have faster internet while on wifi, at the expense of battery power.
while i thought that my microb browser was fast already, it blinks pages (some) instead of loading.
pretty simple actually, just came accross it while messing with my settings.
settings/internet connections/connections
choose your wifi connection to test it on/edit/next/next/next/advanced
click on the "other" tab
power saving drop-down/choose (On(max), On(inter), Off)
after choosing off, it will give you a warning about battery power...wont hurt anything.
voila!
faster internet. give it a couple of minutes to take effect, then open a new microb and try it out!
hope that helped.Thank you very much!
-
The Issue Is Majorly Caused When Any Effect Is Applied On The Video And Rendered The Issue Occurs. And By Closing The Application And Restarting The Application Its Works Fine Again But As Soon As The Effects Are Applied Same Problem Occurs Recursively.
What is the format of the material you are editing, is it variable frame rate?
-
[SOLVED] Graphical environment won't boot up after today's update.
Hi
I've performed a -Syu today morning and so far I haven't been able to get my graphical environment (gnome 3) up.
The update didn't seem to be faulty, no unusual messages caught my eye. Here's a complete list of packages that were upgraded (from pacman.log)
- shared-color-profiles removed
- upgraded colord (1.0.6-1 -> 1.2.0-1)
- upgraded gtk3 (3.12.1-1 -> 3.12.1-2)
- upgraded colord-gtk (0.1.25-1 -> 0.1.25-2)
- upgraded cronie (1.4.11-1 -> 1.4.11-2)
- upgraded elfutils (0.158-1 -> 0.158-2)
During the next bootup, when the information 'reached target graphical interface' appeared, I got some screen blinking and this:
"[drm:hsw_unclaimed_reg_clear] *ERROR* Unknown unclaimed register before writing to 4a000
This error message and the blinking appears about 8 times, then the process just hangs.
I have tried downgrading each of the aforementioned packages, but it didn't help. There's a bunch of diagnostic stuff coming out of pacman on every operation though:
http://ix.io/bZg
The first kind of error message, by the glib-2.0 files is Polish for 'file is empty or only contains spaces'; the other kind, by the ldconfig lines, means 'file empty, left unchecked'.
For good measure, here's my entire dmesg output. It seems to contain a bit more information about the unclaimed register error at the end.
http://ix.io/bZh
Please assist me in getting this fixed.
Last edited by samyazza (2014-04-30 08:57:18)No, I don't have nouveau-dri installed. It might be the kernel driver. Messages from 'nouveau' have been appearing ever since I've installed the system actually, and I've learned to ignore them, but they did initially make me raise an eyebrow. Anyway, everything was fine and dandy for about 4 months now, until this morning's update, when the packages mentioned in my initial post were installed.
As for the second matter, see my initial post:
The first kind of error message, by the glib-2.0 files is Polish for 'file is empty or only contains spaces'; the other kind, by the ldconfig lines, means 'file empty, left unchecked'.
The one you're asking about is the second ('file is empty, it has not been checked')
I'm now in the process of locating and reinstalling the packages to which these files belong. I've already handled the QT libs (I think) and I'm going to try to handle the others:
all in the lib32 folder:
- libelf.so and .so.1 and -0.158.so
- libdw.so and .so.1 and -0.158.so
- libasm.so and .so.1 and -0.158.so
- liblcms2.so and .so.2 and .so.2.0.6
I have no knowledge of how these affect the bootup of Gnome however...
edit:
I have successfully reinstalled the following packages:
lib32-lcms2
lib32-elfutils
lib32-qt4
rebooting...
...and still just a mouse cursor over the bootup log...
The last line of dmsg says:
systemd-journald[204] Failed to write entry (26 items, 170304121 bytes) despite vacuuming, ignoring: Argument list too long
is there a way to get a hold of what can't be written in there? I don't know where else to look for information on what's wrong.
There's also this in the journalctl (both the last one and the previous one I pasted). The problem _is_ Gnome rendering nothing but a cursor, so perhaps this could be of use...
kwi 29 19:59:18 wapiti gnome-session[465]: (gnome-shell:500): GLib-GIO-ERROR **: Settings schema 'org.gnome.settings-daemon.peripherals.touchscreen' is not installed
kwi 29 19:59:18 wapiti kernel: traps: gnome-shell[500] trap int3 ip:7fb603707993 sp:7fff2a1a55f0 error:0
I have pursued that trail. Indeed, it turned out that my gnome-settings-manager package was completely broken. Its configuration files were empty (the ones in /usr/share/glib-2.0/schemas), as was /var/lib/pacman/local/gnome-settings-daemon-3.12.1-2/files file.
I have performed a pacman -S --force gnome-settings-daemon and I'm no longer writing from my girlfriend's PC
I have a follow-up question to the more knowledgable - how and why can a package become corrupted like this??
My Gnome booted up, however it works pretty damn choppy. It's as fast as normal, but there are no animations. Also, there are frequent glitches before a window is rendered. Part of the screen becomes all scrambled for a moment before the window appears.
I'll try to look for reasons on my own, but I'd still appreciate advice on debugging my glitchy Gnome and explanations as to why gnome-settings-daemon had basically wiped itself out...
Ok, on a final note in this topic: the glitches were fixed by force reinstalling xf86-video-intel and intel-dri.
Last edited by samyazza (2014-05-01 15:10:41) -
M50 Bios 1.9 Update question due to multiple issues on 1.7
Hi
I have a Satellite M50-196 that I got only a few weeks ago and I've been experiencing many issues. The current Bios version on the laptop is 1.7 and from the bios page for M50 series I can see that there is a version 1.9.
I had to remove XP home and installed my copy of XP Pro with SP2. Everything went great. Everything works perfect except a few issues. Here goes:
- First the Wireless Adapter has some sort of problem because when I connect to my home network from time to time I have to run repair connection on windows because it gets really slow. I have a 4mb cable connection at home and usually it runs at 400k... but from time to time stops completly and starts again after a few seconds and some other times gets as slow as 40k. This is not an cable provider issue or wireless base station issue because I have a desktop computer that uses wireless also with no issues. This happens with the laptop connected to the power supply or running on batt. I have the latest Intel 2200BG wireless adapter drivers.
- The second problem is when I close the screen. The laptop should go to stand by but instead the standby light never gets orange and the laptop is completly locked. The power button stays blue, it does not shutsdown the laptop or turns it on even after leaving the button pressed for many seconds (15-20). The only way to solve the issue is to remove the battery completly and attach is again.
- The third and final problem, so far, is with Virtual PC 2004 with SP1. The virtual machines run very slow, and the processos usage is most of the time at 99%. The time on a virtual PC goes faster than normal then it blocks completly and starts again. For example 10 seconds goes by in 5 seconds then it blocks for a few seconds. This behaviour seems to be happening with more people using centrino laptops with 915 chipset and some manufactors already fixed this. A guy on another forum reported that he fixed a DELL laptop with a recent bios update.
So because all of these I'm considering upgrading to version 1.9 of the bios but before I do I would like to know if anyone had any issues with this upgrade, and would also like to know if its safe to run the windows bios update. I know its suposed to be safe but I would like to know if anyone ever reported any issues with it and what precautions should I take... like for example... is it important to remove the bios and hdd passwords?
Thanks in advance and sorry for the long post :)
Best regardsHi Thanks!
I just got the adrenaline rush of the day by the way....
I've open the zip file with the 1.9 bios and ran setup... it just asked me where to uncompress it that by default is to c:\windows\temp and does not let me change it...
I pressed ok and I was hoping to get a chance to see exacly what it would do.... but to my surprise it just started to backup imediatly the existent bios and uploading the new one without any warning!!!!
This is a realy dangerous pocedure. If I didnt had the power cable connected or if I didnt had closed my programs it would probably run anyway with all the potential problems that this could bring.
I didnt managed to change the bios and HD pasword, because I was hoping to do so after cheking out the procedure and reading the expected readme file with change log and stuff like that... but the good news is that it maintained the passwords.
The VPC issue seems to be solved as well the closing the screen and entering stand by mode.
The wireless network issue seems solved for now but only time will tell. I had an issue that after returning from stand by the wireless network was not working. I rebooted and seems fine now. Ill keep this link with me just in case. Thanks.
Toshiba people... if you are reading this... please fix this issue with the bios setup on windows. I would like to see a warning and the option to start the bios upgrade myself, instead of starting it automatically as soon as setup ends, I would also like to be able to select where to store the files and where to put the backups and finally I would like a warning to close all software, plug the laptop to the power supply and stuff like that.
Also why not provide a change log of some sort? I dont know what this bios fixed. Seems that fixed at least some of my issues... I think... but what else? I cant find anywhere on the website any info regarding what as included on the update
And no I didnt pressed any keys or mouse buttons after or during the install. I was very carefull with that believe me :)
R2D2.. thanks for your help !
best regards
Joao -
IPhone says searching for service after ios 7.1.1 update! HELP!
I updated my iPhone 5c to the iOS 7.1.1 last night and didn't think I would have any problems. I went to bed and woke up this morning with my phone in the top left corner saying "Searching..." and the the wifi symbol.
I went to check my setting to see if my data was off, but when I went into the settings app and clicked the tab labed "Celluar" the app crashed and took me back to the home screen. It does this everytime I try and go into that tab! So, I have no idea what it going on with my phone! I can't make calls, send texts through my phone number (I can still send iMessages when connected to wifi), the screen glitches and moves when I go into apps, the battery life is now terrible and drains really fast. Everything about my phone was perfectly fine until I updated it to the iOS 7.1.1, so I believe something must have went wrong when it was updating.
Overall these are my main problems:
-iPhone is "Searching" for phone service (which means I have no service so no calls or texts can be sent or recieved)
-Cellular tab in settings crashes
-Battery drains over 2x faster than normal
-Screen seems to glitch or move when I open appsHi SamSam1103,
If you are having multiple issues with your iPhone after a recent update, your best course of action may be to back up your content to iTunes, restore the phone to factory settings, then test to see if the issues persist in its default config before bringing back your content from the backup. You may find the following articles helpful:
iOS: Back up and restore your iOS device with iCloud or iTunes
http://support.apple.com/kb/HT1766
Apple Support: Use iTunes to restore your iOS device to factory settings
http://support.apple.com/kb/ht1414
Regards,
- Brenden -
Dear blackberry
Wy my battery life is very bad after updating to new os 10.3.1.1565
Before update the battery life it was better... please help me regarding this matter. My device is Z30 and I love it very much . Please help me.
Kind regards
Abdulrahman.zenesa wrote:
Dear blackberry
Wy my battery life is very bad after updating to new os 10.3.1.1565
Before update the battery life it was better... please help me regarding this matter. My device is Z30 and I love it very much . Please help me.
Kind regards
Abdulrahman.
Hi @zenesa! Welcome to the BlackBerry Support Community Forums!
When did you perform the update?
The phone needs a few days for the OS to settle and sync your data, It's normal for the first few days to shed battery life faster than normal.
Don't forget to read this helpfu article about BlackBerry 10.3.1 Battery Tips (Battery Saving Mode is a great feature)
Click if you want to Thank someone. If Problem is resolved, so that others can make use of it.
Maybe you are looking for
-
Error in Installing BW Component
Hi all, Where to post this , I am getting error while installing BW UDI-Java Components Installation. Error is "ERROR 2006-01-30 12:46:24 MUT-02041 SDM call of deploySdaList ends with returncode 4. See output of logfile /tmp/sapinst_instdir/NW04SR1/
-
How can i copy a moving image (video) off the screen?
How can I copy Video from the screen? IE, is there a similar way to the cmd arrow 4 to copy a screen shot?
-
Default format pattern for Date and Number
Hi everybody, I'm finding it very hard: my java app runs on Tomcat 5.5, I'd like to format dates and numbers with a specific format. For example: with Locale it_it date format is "dd-mm-yyyy", my wish is to display "dd/mm/yyyy" without changing the L
-
Muse website Mobile version not displayed correctly
Hello, I have created a website for a client in Adobe Muse. When viewing and testing the Business Catalist version looked fine. Now when I uploaded it to the live version, only the first page of the Mobile version is displayed correctly, the rest is
-
Has anyone really understood the JSF LifeCycle
I have created my own phase listener : public class MyPhaseListner implements PhaseListener { public void afterPhase(PhaseEvent evt) { System.out.println("EXITING : " + evt.getPhaseId()); public void beforePhase(PhaseEvent evt) { System.out.pri