Flashback and transaction query very slow
Hello. I was wondering if anyone else has seen transaction queries be really slow and if there is anything I can do to speed it up? Here is my situation:
I have a database with about 50 tables. We need to allow the user to go back to a point in time and "undo" what they have done. I can't use flashback table because multiple users can be making changes to the same table (different records) and I can't undo what the other users have done. So I must use the finer granularity of undoing each transaction.
I have not had a problem with the queries, etc. I basically get a cursor to all the transactions in each of the tables and order them backwards (since all the business rules must be observed). However, getting this cursor takes forever. From that cursor, I can execute the undo_sql. In fact, I once had a cursor that did "union all" on each table and even if the user only modified 1 table, it took way too long. So now I do a quick count based on the ROWSCN (running 10g and tables have ROWDEPENDANCIES) being in the time needed to find out if this table has been touched. Based on that, I can create a cursor only for the tables that have been touched. This helps. But it is still slow especially compared to any other query I have. And if the user did touch a lot of tables, it is still way too slow.
Here is an example of part of a query that is used on each table:
select xid, commit_scn, logon_user, undo_change#, operation, table_name, undo_sql
from flashback_transaction_query
where operation IN ('INSERT', 'UPDATE', 'DELETE')
and xid IN (select versions_xid
from TABLE1
versions between SCN p_scn and current_scn
where system_id = p_system_id)
and table_name = UPPER('TABLE1')Any help is greatly appreciated.
-Carmine
Anyone?
Thanks,
-Carmine
Similar Messages
-
Alarm and Event Query Very Slow
Group,
I am using the DSC Alarm and Event Query vi to pull data from the SQL database (not the Citadel). I have a filter set up that specifies the "Alarm Area" and the start and stop dates with maximun results set to 22. These dates are set to only pull the last 24 hrs. This vi will return around 10 to 20 entries out of perhaps 80-90 total events in the last 24 hours in the database. This database is ~2M in size. I have to set the timeout to almost 10 min for this vi to not produce a timeout error. The results returned are correct but it just seems that the time to run this vi is excessive. It is quering a database on the same system that the quering vi is running on. Should I expect better preformance?
Thanks
ToddVerne,
I have boiled down the code to this attachment. This query took almost 7 min to return 22 results from a database size that is listed as 2.09877E+6. I have also tried the Alarms and Event Query to spreadsheet vi also and it takes the same amount of time. I am wondering if I place the Alarms and Events into the same (Citidel) database that the traces are going if it would be much faster. I seem to get trace data back very fast. If I recall correctly I seperated the alarms from the trace because I was having some sort of problem accessing the alarm data in the combined database...but that was several labVIEW versions ago. Anyone else having this problem?
Thanks
Todd
Attachments:
Generate Alarm Log General Test.vi 19 KB -
When using the camera downloader in Adobe Bridge CS6 with Nikon D5200 we are unable to see previews of the photos and it is very slow to download. The issue occurs under a the users rights, but not under admin level. This is a new issue.
Hi Jdentremont,
Lync client gets user photos by first querying the Address Book Web Query (ABWQ) service on the server, which is exposed through the Distribution List Expansion web service. The client receives
the image file and then copies it to the user's cache to avoid downloading the image each time it needs to be displayed. The attribute values returned from the query are also stored in the cached Address Book Service entry for the user. The Address Book Service
deletes all cached images every 24 hours, which means that it can take up to 24 hours for new user images to be updated in the cache on the server.
To troubleshoot your problem, please follow the steps below:
1. Navigate to
“X:\share\1-WebServices-1\ABfiles\000000000\000000000” folder. (ABS file share)
You should see some photo files in this folder as the following screenshot.
2. Delete all the files in this folder.
3. On test PC, delete local cache files.
%userprofile%\AppData\Local\Microsoft\Office\15.0\Lync\[email protected]
4. Sign-in Lync with the test account.
5. Go back to the ABS file share, check if there is any Photo file in the folder.
Best regards,
Eric
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
I have Oracle 9i and SUN OS 5.8
I have a Java application that have a query to the Customer table. This table has 2.000.000 of records and I have to show its in pages (20 record each page)
The user query for example the Customer that the Last Name begin with O. Then the application shows the first 20 records with this condition and order by Name.
Then I have to create 2 querys
1)
SELECT id_customer,Name
FROM Customers
WHERE Name like 'O%'
ORDER BY id_customer
But when I proved this query in TOAD it take long to do it (the time consuming was 15 minutes)
I have the index in the NAME field!!
Besides, if the user want to go to the second page the query is executed again. (The java programmers said me that)
What is your recommendation to optimize it????? I need to obtain the information in
few seconds.
2)
SELECT count(*) FROM Customers WHERE NAME like 'O%'
I have to do this query because I need to known How many pages (20 records) I need to show.
Example with 5000 records I have to have 250 pages.
But when I proved this query in TOAD it take long to do it (the time consuming was 30 seconds)
What is your recommendation to optimize it????? I need to obtain the information in
few seconds.
Thanks in advance!This appears to be a dulpicate of a post in the Query very slow! forum.
Claudio, since the same folks tend to read both forums, it is generally preferred that you post questions in only one forum. That way, multiple people don't spend time writing generally equivalent replies.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
I own a 13-inch MacBook Pro and for the past day, my wifi on my laptop says I only have two bars of connection and is running very slow,but all of my other devices such as my iPhone and iPad are connecting perfectly to the wifi. How can I fix this? I have tried to shut my laptop off and let it rest and I have also re-started my wifi router three different times. Someone please help me with this problem so I can begin to use my laptop again as I take it to school and use it for class.
Thanks so much!FCP, and all software on OSX, has a few different "preference" files (the extension is .plist), which store all your user settings. Each time you resize a window, change a setting, anything, this file is re-written. Kinda easy to see how they would become corrupt every now and then.
-Close FCP
-Navigate to User>Library>Preferences and delete com.apple.FinalCutPro.plist
-Navigate to User>Library>Preferences>Final Cut Pro User Data and delete Final Cut Pro 5.0 Prefs
-Empty your trash
Relaunch FCP and see if that worked.
Download FCP Rescue to make this process easier in the future. When you have FCP running really smooth, open FCP Rescue and create a backup of your preference files. If it starts acting wanky, just run FCP Rescue and Restore your backup preferences. Works really slick, and it's free.
EDIT: Or use the really simple explaination that X posted as I was typing. -
My iPod touch is downloading and updating apps very slow more than an hour.
My iPod touch 4th gen 32gb verson 4.3.1 is downloading and updating apps very slow more than an hour. I just got it a day ago and I backed up all my apps music and pictures and videos from iTunes. Few months ago I had an iPod touch but I lost it and it was working fine. Luckily before I lost it i backed up everything to iTunes so now everything that was in my old iPod is now in my new iPod. Anyways, When I first bought it I straight away backed up everything and saw that i had many updates on my apps. I started updating it all at once but even the first one was not loading at all and mty ipod was hanging many times during the updates so i cancelled all the updates. i even tried it on my computer and it was taking forever but my laptop does updating and downloading apps slower than my ipod so that doesnt matter. Even when I download an app on my iPod now its take more that an hour. So i was wondering, is my iPod slow cause I backed up too many things when i just got it . I have about 120 apps 150 plus photos and 70 videos and I backed it up all in one night on the day i got my ipod. So now I'm restoring my iPod and updating it to IOS 5 and see what happens. Hopefully it will be faster then but I still need to know what is main problem of m iPod hanging and slow updating/downloading. Need a reply ASAP. Thanks
Still you can switch it off while syncing.
You can also do a reset (Hold Sleep/Wake and Home buttons about 10 secs or more till Apple logo appears) -
I upgraded to Yosemite and computer running very slow. It is an older iMac 2009. if I cant get it running faster I will have to downgrade os or upgrade ram. Is there something else I can try? Here is scan of computer:
Problem description:
computer Very slow after upgrading to OS Yosemite
EtreCheck version: 2.0.11 (98)
Report generated November 15, 2014 at 3:50:50 PM MST
Hardware Information: ℹ️
iMac (20-inch, Early 2009) (Verified)
iMac - model: iMac9,1
1 2.66 GHz Intel Core 2 Duo CPU: 2-core
2 GB RAM Upgradeable
BANK 0/DIMM0
1 GB DDR3 1067 MHz ok
BANK 1/DIMM0
1 GB DDR3 1067 MHz ok
Bluetooth: Old - Handoff/Airdrop2 not supported
Wireless: en1: 802.11 a/b/g/n
Video Information: ℹ️
NVIDIA GeForce 9400 - VRAM: 256 MB
iMac 1680 x 1050
System Software: ℹ️
OS X 10.10 (14A389) - Uptime: 4 days 4:38:8
Disk Information: ℹ️
Hitachi HDT721032SLA380 disk0 : (320.07 GB)
S.M.A.R.T. Status: Verified
EFI (disk0s1) <not mounted> : 210 MB
Macintosh HD (disk0s2) / [Startup]: 319.21 GB (201.09 GB free)
Recovery HD (disk0s3) <not mounted> [Recovery]: 650 MB
OPTIARC DVD RW AD-5670S
USB Information: ℹ️
Apple Inc. Built-in iSight
Apple Inc. Keyboard Hub
Apple Inc. Apple Keyboard
USB Reader USB Mass Storage Device 31.67 GB
S.M.A.R.T. Status: Verified
NO NAME (disk1s1) /Volumes/NO NAME : 31.67 GB (27.49 GB free)
Apple Computer, Inc. IR Receiver
Apple Inc. BRCM2046 Hub
Apple Inc. Bluetooth USB Host Controller
Gatekeeper: ℹ️
Mac App Store and identified developers
Kernel Extensions: ℹ️
/Applications/Toast 11 Titanium/Spin Doctor.app
[not loaded] com.hzsystems.terminus.driver (4) Support
/Applications/Toast 11 Titanium/Toast Titanium.app
[not loaded] com.roxio.TDIXController (2.0) Support
/System/Library/Extensions
[not loaded] com.Huawei.driver.HuaweiDataCardDriver (4.0.6) Support
[not loaded] com.roxio.BluRaySupport (1.1.6) Support
[not loaded] com.sony.driver.prs (1.0.1d1) Support
Startup Items: ℹ️
HWNetMgr: Path: /Library/StartupItems/HWNetMgr
Startup items are obsolete and will not work in future versions of OS X
Problem System Launch Agents: ℹ️
[failed] com.apple.accountsd.plist
[failed] com.apple.AirPlayUIAgent.plist
[failed] com.apple.bird.plist
[failed] com.apple.CalendarAgent.plist
[failed] com.apple.CallHistoryPluginHelper.plist
[failed] com.apple.CallHistorySyncHelper.plist
[failed] com.apple.cloudd.plist
[failed] com.apple.coreservices.appleid.authentication.plist
[failed] com.apple.coreservices.uiagent.plist
[failed] com.apple.EscrowSecurityAlert.plist
[failed] com.apple.icloud.fmfd.plist
[failed] com.apple.iconservices.iconservicesagent.plist
[failed] com.apple.nsurlsessiond.plist
[failed] com.apple.pbs.plist
[failed] com.apple.pluginkit.pkd.plist
[failed] com.apple.printtool.agent.plist
[failed] com.apple.scopedbookmarkagent.xpc.plist
[failed] com.apple.secd.plist
[failed] com.apple.security.cloudkeychainproxy.plist
[failed] com.apple.spindump_agent.plist
[failed] com.apple.telephonyutilities.callservicesd.plist
Problem System Launch Daemons: ℹ️
[failed] com.apple.AssetCacheLocatorService.plist
[failed] com.apple.awdd.plist
[failed] com.apple.cache_delete.plist
[failed] com.apple.coresymbolicationd.plist
[failed] com.apple.ctkd.plist
[failed] com.apple.diagnosticd.plist
[failed] com.apple.iconservices.iconservicesagent.plist
[failed] com.apple.iconservices.iconservicesd.plist
[failed] com.apple.ifdreader.plist
[failed] com.apple.MobileFileIntegrity.plist
[failed] com.apple.nehelper.plist
[failed] com.apple.nsurlsessiond.plist
[failed] com.apple.periodic-daily.plist
[failed] com.apple.periodic-weekly.plist
[failed] com.apple.sandboxd.plist
[failed] com.apple.softwareupdate_download_service.plist
[failed] com.apple.softwareupdated.plist
[failed] com.apple.spindump.plist
[failed] com.apple.sysmond.plist
[failed] com.apple.tccd.system.plist
[failed] com.apple.wdhelper.plist
[failed] org.cups.cupsd.plist
Launch Agents: ℹ️
[not loaded] com.adobe.AAM.Updater-1.0.plist Support
[loaded] com.adobe.AdobeCreativeCloud.plist Support
[not loaded] com.sony.ReaderLibrary.RunReaderLibrary.plist Support
Launch Daemons: ℹ️
[loaded] com.adobe.fpsaud.plist Support
User Launch Agents: ℹ️
[loaded] com.adobe.AAM.Updater-1.0.plist Support
[loaded] com.adobe.ARM.[...].plist Support
[loaded] com.adobe.ARM.[...].plist Support
[loaded] com.google.keystone.agent.plist Support
User Login Items: ℹ️
iTunesHelper Application (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
HP Registration Assistant UNKNOWN (missing value)
Reader Library Launcher ApplicationHidden (/Library/Reader Library/Reader Library Launcher.app)
HP Scheduler Application (/Library/Application Support/Hewlett-Packard/Software Update/HP Scheduler.app)
Internet Plug-ins: ℹ️
Default Browser: Version: 600 - SDK 10.10
OfficeLiveBrowserPlugin: Version: 12.3.6 Support
net.juniper.DSSafariExtensions: Version: (null) Support
AdobeAAMDetect: Version: AdobeAAMDetect 2.0.0.0 - SDK 10.7 Support
FlashPlayer-10.6: Version: 15.0.0.223 - SDK 10.6 Support
AdobePDFViewerNPAPI: Version: 11.0.0 - SDK 10.6 Support
Silverlight: Version: 5.1.30514.0 - SDK 10.6 Support
Flash Player: Version: 15.0.0.223 - SDK 10.6 Support
QuickTime Plugin: Version: 7.7.3
iPhotoPhotocast: Version: 7.0
NP_2020Player_IKEA: Version: 5.0.94.0 - SDK 10.6 Support
AdobePDFViewer: Version: 11.0.0 - SDK 10.6 Support
User Internet Plug-ins: ℹ️
BrowserPlus_2.9.8: Version: 2.9.8 Support
fbplugin_1_0_3: Version: (null) Support
3rd Party Preference Panes: ℹ️
BrowserPlus Support
Flash Player Support
Perian Support
Time Machine: ℹ️
Time Machine not configured!
Top Processes by CPU: ℹ️
7% syncdefaultsd
0% launchservicesd
0% launchd
0% systemstatsd
0% SystemUIServer
Top Processes by Memory: ℹ️
126 MB HP_Officejet_4620_series
30 MB Finder
28 MB ScreenSaverEngine
24 MB mds
24 MB WindowServer
Virtual Memory Information: ℹ️
25 MB Free RAM
344 MB Active RAM
333 MB Inactive RAM
337 MB Wired RAM
9.71 GB Page-ins
146 MB Page-outscould the launch agents failing slow the computer or they just don't work. I mean I am willing to upgrade ram but not if there is good chance it won't change speed much. Also to downgrade is it necessary to format the hard drive?
-
Any ideas? In the history may iPad never crashed but after updating to iOS 5 it crashed every 30 minutes, and browsing is very slowAny ideas? In the history may iPad never crashed but after updating to iOS 5 it crashed every 30 minutes, and browsing is very slow
I found the reason why our iPads are slow after iOS 5!!!!!!!
What you need to do is this:
1) launch settings, go to mail contacts and calendars, go to fetch new data, advanced, and set iCloud to fetch.
2) go back and set an interval of when to fetch. Mine is set for thirty minutes.
3) make sure on top push is still on, that means that all your emails will still be pushed, but all the iCloud sync (contacts, calendars, reminders, bookmarks) will happen at the interval you choose.
Restart the device. Your performance should be 10x faster! No more keyboard lag, nothing! Doing this puts less stress on the A4 chip, which we know we need every bit we can get with it now!!!
Optional:
1) in the settings, go to safari.
2) clear all history and cookies/data
3) enable private browsing. One of the biggest reasons why devices are slow is because it keeps all the history and cookies in the RAM. You need more RAM to make things faster. By turning on private browsing, it never records it! -
Dreamweaver CS6 and CC both very slow page rendering under Mavericks
Dreamweaver CS6 and CC both very slow page rendering under Mavericks compared to 10.8.5
Any ideas?One other thing I am seeing:
When I open any document (html, javascript) inside DWCC now, then close it without any changes, DW asks if I want to save changes.
I just tested this under 10.8.5 and there is no lag there, nor are documents mysteriously modified when opened.
Note: I have tested this both with and without other Apps or extensions running in Mavericks and 10.8.5 -
Updated iPhone 4s ios 6.1 App Store and iTunes is very slow sometimes does not open what to do?
My App Store won't even open all the way and says request failed or something along those lines.
-
i have installed about 35 add-ons in my firefox 4 , and it got very slow in browsing sites like facebook and youtube and others. at scrolling through the page or clicking on buttons...etc
this is nit occuring in google chrome in the same degreehttp://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes
-
IOS7 wifi and LTE speed very slow.
iOS7 wifi and LTE speed very slow compared to iOS6. This was proven with Safari and using speed test app.
I have exactly the same problem symptom ever since installing iOS7. Toggling the FaceTime or the LTE settings alleviated the problem until I installed the latest version on IOS (7.0.4- 11B554a). Now the bug is permanent, a Network Reset will not work anymore, a System Reset will work only for the first execution of Speedtest.
Looks like the network software is throttling LTE speed to the minimum (.50 Mbps) up/download speed no matter what. Now unlimited Data means nothing, maybe AT&T wants me to go to Verizon or Tmobile.
I reported this problem to AT&T Sept 26 when I first installed IOS7, they told me there was no problem really that I needed to wait for the LTE network congestion to go away...? Since I found a circumvention by toggling LTE I did not pursued the problem...
After reporting the problem again this morning, they sent me to the AT&T store to change the SIM card.... I will try this and report back if it fixes the problem... Although I doubt it will fix anything but burn and extra hour of my day. The AT&T rep said that if the new SIM card doesn't fix the problem I need to go to Apple for them to give me a new Iphone....???? I guess there are many iPhones gone bad after installing IOS7 (sarcasm).
If you have this same problem, please post here so that I am able to get back to AT&T with some leverage to get them to remove the choking of LTE. Basically, if everyone accepts the new low speeds, then, unlimited data is no longer a problem for this phone company. -
Why are first connections slow and subsequent ones very slow or won't connect?
Since upgrading initial connections are often slow and subsequent connections very slow or won't connect. I have had to revert to Internet explorer which works fine!
The default of the pref network.http.max-connections has been increased from 30 to 256 in Firefox 6+ versions.
You can try to decrease the value of the pref <b>network.http.max-connections</b> from 255 to a more modest setting like 30 as used in Firefox 3 versions.
*https://support.mozilla.com/kb/Firefox+never+finishes+loading+certain+websites -
Mail has 16k messages, and performance is very slow, with loading times taking up to 5 seconds every time I open Mail.
How can I increase performance?
I'm running a MacBook Air 4GB 1.7GHz 10.7.2.
GrahamOne possible solution would be to organise your inbox into folders.
Its never relly good on any system to have one folder that has everything in it.
Try going to you web gui for that mail account and organise your folders and move mails from your inbox into corresponding folders for better organisation.
Several folders containing the same amount of one folder will usually load a little quicker as the folder may not be accessed to download its content unless veiwed.
So having 10 folders with organised content, and you inbox as an area thats to hold only new emails would work much much quicker with imap.
Most imap servers will only update the contents of a folder when its veiwed. -
Greetings.
I'm new on this forum allthough I have had this mobo about ½ year, but when I tried to get Windows 8 Pro upand running I ran into troubble.
Intel Rapid Start don't work in Win8, worked really good in Win7
Can't switch "Windows 8" feature on in BIOS (have read here, that I'm not the only one with that problem)
But my biggest complain is the performance of USB3. I use it for backup, and it is very slow compared to Windows 7. I can't find any USB3 driver on MSI's download. I know ASUS has made an "USB3 BOOST" but I don't know what it is, or if it is helping. Windows 8 has native driversupport for USB3, but it is only to get it to basic work, much much slower than the same USB3 port in Windows 7. Does anyboby know how to raise the USB3 speed?
Sorry for my English. As I'm danish, English is not my first language, but I hope you get the meaning of thisCould well be a driver issue as you mentioned. MSI doesn't make the drivers, they are supplied new ones by the vendor of the hardware. Normally they are tested by the MSI engineers first, certified to be good, and then released on their webite for download. The growing pains of 'Vista' 8 (sarcasm) continue!
Maybe you are looking for
-
How can I get all my calendars to synch?
I have a desktop, and laptop, an iPad I and and iPhone 4, and I use Mobile Me. My phone and iPad seem to always be in synch, but somehow my computer calendars do not, even when I am signed into Mobile me on the desktop or laptop. One further compli
-
[SOLVED] Can't compile hdjmod and hdjcpl from AUR.
Hello, I've bought a Hercules DJ Console MK2, and I would like to use it with Mixxx. It doesn't seem to be recognized by Mixxx, probably because no drivers are installed. So I decide to install hdjmod from AUR. It also gets hdjcpl (dependency), but w
-
Send filr attachment in email, send filr attachment in email
Dear, i want ask, i need send email via iphone 5S IOS 7, and i need send email with attachment, and i need attachment some file, but i not looking menu for this, could you help? Thanks
-
Hi , iam trying to add a "filter" to my Table , i specified the "FilterModel" and "FilterVisible" but it does not shown , what am i missing !!?? Thanks
-
Hi, Its possible to find the login time of a session... But is it possible to find exact execution time of a particular SQL in a session...? Thanks, Kr