Problem indexing and performance does not help
I created a SQL view is basically simple, but I need to group data based on a value returned by a function. I think this slows down the performance. First, I added a normal index on it, then added that an index function but no help. I get the data I need, but it takes too much time. I hope someone can give me some ideas on how to optimize the performance of my SQL.The base table has 1318408 rows. I need to select only a few columns and group and count the rows based on a date value in a column. However, the date of the table contains only a weekend rental value and I need report of the neighborhoods. The report should as well a date and value of a text value for the quarter. So I created two functions that accept a date value and return a date value for the start date of the quarter and a text value for the quarter, that the date falls in respectively; my SQL is like this:
Select
GLC_DATE2CAL_QRT_STARTDATE_FN (s.work_week_end_date) cyquarter_start_date,
GLC_DATE2CAL_QRTYR_FN (s.work_week_end_date) cyquarter_text,
s.Ethnicity ethnicity_code,
and. Description ethnicity_desc,
County (unique employee_id) number_employees
of s cpr_employees_snapshot, ct_vendor_ethnicities and
and trim (s.ethnicity) = et.ethnicity_id
Group GLC_DATE2CAL_QRT_STARTDATE_FN (s.work_week_end_date), GLC_DATE2CAL_QRTYR_FN (s.work_week_end_date), s.ethnicity, et.description
This takes about 1 1/2 minutes to recover data
When I do not use the functions and run this SQL:
Select
s.work_week_end_date,
s.Ethnicity ethnicity_code,
and. Description ethnicity_desc,
County (unique employee_id) number_employees
of s cpr_employees_snapshot, ct_vendor_ethnicities and
and trim (s.ethnicity) = et.ethnicity_id
Group of s.work_week_end_date, s.ethnicity, et.description
It takes 7 seconds.
Hello
Welcome to the forum!
You feel the change of context, where you constantly change between SQL and PL/SQL. That always takes time.
A function-based index can help if you have referenced only functions in the WHERE clause. Given that you use in the SELECTION and GROUP BY clauses, it cannot help.
What are the functions? Maybe you could calculate their in a subquery, with pure SQL expressions.
From Oracle 11, you can have virtual columns that are computed when you INSERT or update each line and physically stored in the table.
In previous versions of Oracle, you can get the same results with a materialized view, or a BEFORE INSERT trigger that calls the functions and meets the additional columns.
Tags: Database
Similar Questions
-
"Problem reports and Solutions" does not
After scoring in my Windows Vista machine, I am bombarded with notifications "Problem reports and solution" does not. I tried to disable the service, but I still get notifications. I can't find PRS in the control panel. In the event viewer, I found the following:
Error
Log name: Application
Source: Application error
Event ID: 1000WerCon.exe application, version 6.0.6002.18005, time stamp 0x49e026db, module wercplsupport.dll, version 6.0.6000.16386, time stamp 0x4549d345, exception code 0xc000001d, offset error 0x000000000000ce84, 0xda0, failing application start 0x01cd140e4c7b7770 process id failed.
I can't confirm or deny that usrename of the local administrator account has been changed. It is quite possible. I know that usernames on the pc have been changed to instead of creating new user accounts. I just can't confirm if one of these accounts was a local administrator.
Any help would be greatly appreciated. It is a major pain in the back.
SG
Hello
- Your computer is connected to a domain?
2. don't you make changes to the computer until the problem occurred?
I suggest you to see link below and check if it helps.
Windows Error Reporting and reports on problems and Solutions feature in Windows Vista: http://technet.microsoft.com/en-us/library/cc709644(v=ws.10).aspx
Hope this information is useful.
-
after upgrade firefow does not start and reinstall does not help
Last week updated firefox and I can't use it since safe mode does not work, will not work reinstall I get a memory error code, pls help
Submit incident reports at Firefox?
If you have submitted reports of incidents, then thanks post IDS of one or more reports of incidents that have this format:
- BP-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
You can find the ID of the submitted crash reports on the Subject: hangs page.
- You can open the Subject: hangs page through the address bar, you open a Web site.
See:
- http://KB.mozillazine.org/Mozilla_Crash_Reporter
- https://support.Mozilla.org/KB/Mozilla+Crash+Reporter
If you cannot open Firefox, see:
-
Index and search does not not in Hebrew RH8 project
While locating
English project Robohelp 8 in Hebrew (WebHelp output), we met a few crucial questions: despite the fact that our perfect and hhc files were translated only Table of contents appears in Hebrew in the generated help, Index pane is empty, and search pane displays gibrish. When I use English original perfect index file can display English and Hebrew entries, no luck with the search. We used several times discussed RTL workaround RH7. It seems that it totally unsuitable RH8, so my shutters are not aligned correctly and so on, but these questions we can set aside. Search and Index seem to be most important. Any ideas?
Hello
Probably something in the language file, but I'm not big on that. In the output, open whfhost.js. The first fourteen lines contain text for the search option.
Take a bow
Willam
-
My story memorable and kept going back quite a few months. After the release of Firefox for 23.0.1 I lost all my history and Firefox keeps only the websites visited once the new version has been installed. My favorites were selected. I tried to get back in "Import and backup", but it goes back only to the date of the new facility. I tried places.sqlite "Roaming", but there is only one with the current date. Is there a way to recover the lost history? Why Firefox was losing it? It's going to happen averytime that updates Firefox?
Manually back up your bookmarks. If you have used the 'import', you have already lost some information by overwriting. As a matter of course you should always save current bookmarks manually before using any restorations.
This way you can make sure you are able to restore the current set. Your backup .json file put a safe off-trail program or Firefox profile. The desktop of Windows or the removable media would be appropriate.
Firefox creates a bookmark, but does nothing about backup history. Fortunately Windows probably backup previous versions of your files places.sqlite and this is the database with the history and bookmarks in it. See if you can recover a recent version of this, it will restore your story up to the date of the restored file.
- http://Windows.Microsoft.com/en-us/Windows7/previous-versions-of-files-frequently-asked-questions
- the places.sulite file is in the Firefox profile, a hidden folder that is easy to find by searching for defects. See profiles of boards - where Firefox stores your bookmarks, passwords and other user data_how-do-i-find-my-profile
Then import your latest bookmarks from anywhere where they were rescued. Import replaces the slightly older bookmarks from the Windows file.
You my wish also can install and run the addon places maintenance.
That can be used to check and repair the places.sqlite database. It will give a brief report. Note If the places.sqlite runs out of space, he begins removing history.
In the future you my wish to regularly create occasional backups of your profile or at least your places.sqlite
-
How to configure my computer?
I saw a good amount of messages on this lately, enough to make me think that there is some malware floating around the cause.
This error occurs usually after a computer has been infected then first make sure the computer is completely virus/malware-free. Do not skip this.http://www.elephantboycomputers.com/page2.html#Removing_Malware
At the very least do the preparatory work and then scan with MalwareBytes' Anti-Malware in addition to your regular antivirus program.
Then locate the disk quotas that can be defined. If the machine is clean and there is no set of disk quotas, copy the lines between asterisks a Notepad document and save it as undopolicy.reg. Double-click undopolicy.reg to merge into registry.
*****
Windows Registry Editor Version 5.00[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]
'EnableProfileQuota ' = -.
'ProfileQuotaMessage ' = -.
"MaxProfileSize" = -.
'IncludeRegInProQuota ' = -.
'WarnUser ' = -.
'WarnUserTimeout ' = -.
MS - MVP - Elephant Boy computers - don't panic! -
AOL has locked up firefox browser and uninstall does not help
Mistakenly downloaded a update of firefox on aol. Screen freezes with a window, I can't close. Cannot access anything that anyone else on the browser page. I tried to uninstall and reloaded firefox from another browser. Sreen comes back in the same mode.
try disabling all add-ons see if this fixes then activate one at a time to see if there is a conflict with a
-
I tried to download FF5. Everything seems to happen when I run the downloaded file. Then I got the answer I needed to reboot the system to complete the installation. I tried several times, and whenever I try to launch FF5 I get the same message, but no FF5! SO WHAT DO I DO NOW? I tried to download FF6 and still get this bloody message.
Check in the Task Manager and verify that firefox.exe in the Task Manager. Or install firefox by changing the destination folder.
-
When connect my external hard drive and opening not wanting my my files, I get this message "shortened lcwipx.exe you make reference to is not available"and her does not open. He also asked delete me the shortcut. What is the problem and how to solve this?
Hi Pascal,.
I see that you get an error trying to access files on an external drive. I'll help you with this problem.
1. What is the brand and model of the computer?
2. What is the brand and model of the external drive?
3. what security software is installed on the computer?
4. have you made changes on the computer recently?
5A external drive earlier good work?
6. have you updated to Service Pack 2 installed?
Method 1.
Connect a different drive to the computer and check.
Method 2.
Plug this external drive on another computer and check the status.
Method 3.
Start the computer in safe mode and check.
Start your computer in safe mode: http://windows.microsoft.com/en-SG/windows-vista/Start-your-computer-in-safe-mode
Method 4.
Run a full scan of the computer with the Microsoft Safety Scanner to make sure that the computer is virus-free.
Microsoft safety scanner: http://www.microsoft.com/security/scanner/en-us/default.aspx
Warning of Security Scanner: there could be a loss of data while performing an analysis using the Microsoft safety scanner to eliminate viruses as appropriate.
Let us know if you need assistance with any windows problem. We will be happy to help you.
-
On my windows vista computer, whenever I turn on my computer and log on, none of my programs work. An error message appears saying that the program has stopped working and windows will try to find a solution to the problem. The problem is that the help and support center opens either. None of my internet programs to be open, and the same error message for all. We have tried to turn off DEP, and that did not help. My computer is connected to the internet (2wire) but is not able to run due to the problems with my computer. I scanned my computer with windows defender, and we found no problem. Help, please
Hi Anna1298,
· Did you do changes on the computer before the show?
Follow the suggestions below for a possible solution:
Method 1:
Step 1: Start in safe mode and check if the problem persists.
Start your computer in safe mode
http://Windows.Microsoft.com/en-us/Windows-Vista/start-your-computer-in-safe-mode
Step 2: If the problem does not occur in safe mode, you can put your system to boot (in normal mode) to solve the problem.
How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
http://support.Microsoft.com/kb/929135
Note: After troubleshooting, be sure to configure the computer to start as usual as mentioned in step 7 provided in the above article.
Method 2: Try the SFC (System File Checker) scan on the computer.
How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7
http://support.Microsoft.com/kb/929833
Method 3: I also suggest that you scan your computer with the Microsoft Security Scanner, which would help us to get rid of viruses, spyware and other malicious software.
The Microsoft Security Scanner is a downloadable security tool for free which allows analysis at the application and helps remove viruses, spyware and other malware. It works with your current antivirus software.
http://www.Microsoft.com/security/scanner/en-us/default.aspx
Note: The Microsoft Safety Scanner ends 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again.
Important: During the scan of the hard drive if bad sectors are found, the scanner tries to repair this sector, all available on which data may be lost.
Let us know if that helps.
-
At the opening of the library of photos, each photo turn the black thumbnail and so that to open it. Preview also does not have photos properly. I tried to repair the library and this did not help. Could this be a problem with the RAM? Help, please!
Check, if pictures can access the original files of your pictures, or if the originals are missing.
You can test to try to edit a photo or trying to export it with "file > export > export original file..."
Photos can be edited or exported?
Shooting Raw or JPEG? Where your photo library is stored? On an external disk or in your pictures folder?
-
loads of YouTube but then when I click on a video it doesent play. It worked fine the other day and it does not work in the past and suddenly. Help, please!
Clear the cache and cookies from sites that cause problems.
"Clear the Cache":
- Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.
'Delete Cookies' sites causing problems:
- Tools > Options > privacy > Cookies: "show the Cookies".
Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).
- Makes no changes on the start safe mode window.
- https://support.Mozilla.com/kb/safe+mode
-
Install new FF4, back/transfers and Refresh buttons does not - help!
New installation of FF4.0 the forward/backward buttons and refresh from line. They do not work.
I tried:
restart
relocation of
start in safe mode
remove places.sqlite and restartAll to nothing does not. Any ideas anyone?
Create a new profile as a test to see if your profile is the source of the problems.
See:There may be extensions and plugins installed by default in a new profile, so check that in "tools > Modules > Extensions & Plugins»
If this new profile works then you can transfer files from the old profile to the new profile (be careful not to copy corrupted files)
See:If this does not help, then do a clean reinstall.
- Download a new copy of Firefox and save the file to the desktop.
- Firefox 4.0: http://www.mozilla.com/en-US/firefox/all.html
- Uninstall your current version of Firefox and remove the Firefox program folder before installing this copy of the Firefox installer.
- Do not remove the data of a personal nature if you uninstall the current version.
- It is important to remove the Firefox program folder to delete all the files and make sure that there is no problem with the files that were the remains after uninstallation.
Your bookmarks and other profile data is stored elsewhere (not in the Firefox program folder) and will not be affected by a relocation, but make sure that you do not select delete data of a personal nature if you uninstall Firefox.
-
See the question. That about sums it up. Thank you.
No doubt you are using the same machine and ISP but currently using another browser apparently IE8. First, clear the browser cache and temporarily disable any security software.
If the above does not help, then take a look at:
-
I just ran the last update for my iPad and now it just continuously reboots to the black screen with the Apple Logo. I left plugged in all night and still no change. Hard restarting does not help, neither do not connect the unit to aMacBookPro. When I do this, iTunes complains that it can not connect because the iPad 'expires '. Now it is disconnected, but I can't turn it off. Even close the lid will not extinguish it. Any ideas?
Try the following. It seems yo may have to let the battery drain is completely:
- iOS: do not respond or does not light
-Also try DFU mode recovery mode post-test
How to put iPod touch / iPhone in DFU "Karthik doodles."
-If failed and that you cannot completely turn completely the iOS device, leave the battery to drain completely. After loading a hour repeat the foregoing.
-Try a different cable
-Try on another computer
S ' there is still not successful that usually indicates a hardware problem and an appointment at an Apple store Genius Bar is in order.
Maybe you are looking for
-
PowerEdge T110ii using PERC S100 for RAID 10
I read that I can use S100 to implement a RAID 10. I bought 4 new drives (1 TB). I have installed in the system. They're all here and work. I went to the disk installation and created the virtual and selected drive all THE DRIVES and RAID 10. I then
-
HELP the call Video Editor - problem
I followed all the formats here https://developer.BlackBerry.com/native/documentation/Cascades/device_platform/invocation/video_edit... When this function is executed, the screen fades a bit then goes back to a normal screen brightness. This means he
-
My KEY will not work for both windows 7 32-bit update and 64-bit version?
I have two, a copy and a key for the upgrade to Windows 7, 32-bit and 64-bit. (Key separately for each version, purchased about 6 months apart.) The computer that is running the 32-bit version had a hard drive failure. After replacing the hard dri
-
Mail merge for names with titles cover letter and without
This is a merger and mailing which suffers from a disease. It's a cover letter, then it starts with "Dear," as Express.ypH below.As you can see the expensive of course is static and the title, L_name are all variables. Now, there must be a space betw
-
The horizon - fatal error Client error CHECK prefs.cpp:1311
When installing VMware Horizon Client 3.5.2 on my 10 Windows PC, I got the error:VMware Horizon Client fatal error: (crtbora)Verifier.\prefs.cpp:1311After Googling for it, it seems to be a known issue since mid-September of this year, 2015.I also ins