Statistics updated when cache is used?
Hi, I thought this was posed before, but I couldn't find the thread.
Can anyone tell me if Technical content is updated when the cache is utilized by a query?
Thanks!
You should see a 0 in the DB Sel and DB Trans, but see time spent by the OLAP Processor. This means the data was found in the local or global cache and there was no need to go back to the DB.
Similar Messages
-
JTRee's not updating when your not using DefaultTreeNode
See topic @ http://forums.sun.com/thread.jspa?threadID=153854&start=0&tstart=0
I have very similar issue, I have a JTree (with CheckBoxes for it's leaves and branches), and I am using a custom TreeModel rather than DefaultTreeModel.
I can add nodes to my TreeModel correctly, but the tree has doesn't always display new nodes.
Any nodes added to a node/branch show correctly if, and only if I have not expanded the branch yet. Once I expand a branch new nodes never appear. They are being added to the model correctly, because I can select them(by selcting the parent) and print all selected nodes.
In the the thread listed above it looks like all I sould have to do is implement hashCode() and equals()..
But when looking @ http://java.sun.com/javase/6/docs/api/javax/swing/tree/DefaultTreeModel.html
I cann't find anything about equals() or hashCode()
Can anyone provide some insight on what they do, or if I'm barking up the wrong tree.
PS sorry for zombifying the previous thread, most MB I've been on preffered zombies to 30 threads regarding the same issue.so here's a severely condensed version of my code.
class CheckTreeModelSupport implements TreeModelListener {
List alistListeners = new ArrayList<TreeModelListener>;
//Above just struck me as odd... but I believe that's how Sun said to do it.
public void addTreeModelListener(TreeModelListener listener) {
if ((listener != null) && !alistListeners.contains(listener))
alistListeners.add(listener);
// Also defined removeTreeModelListener(TreeModelListener), fireTreeNodesChanged(TreeModelEvent),
// fireTreeNodesInserted(TreeModelEvent), fireTreeNodesRemoved(TreeModelEvent), fireTreeStructureChanged(TreeModelEvent)
// and the fireTreeNodesInserted(Object, Object[], int[] Object[]) as you reccomended above.
class CheckBoxNode extends TreeModelSupport implements TreeModel {
private String strText; // text for node
private boolean bState; // stores wether the CheckBox is Checked or not
private int iBranchCount; // strores number of children
private int iIndex; // stores index among siblings
static CheckBoxNode cbnodeLastSelected; // for keeping track of where to insert new nodes
. private List<CheckBoxNode> alistChildren; // ArrayList of childNodes
// skipping, a laundrylist of stuff that doesn't apply
public CheckBoxNode addChild(String strName) {
CheckBoxNode cbnodeNew= new CheckBoxNode(strName, this, iBranchCount);
//Constructor sets node text to strName, uses this to identify it's parent, for various initializing, and iBranchCount to set the iIndex
TreeModelEvent eventNodeAdded = null;
if (alistChildren == null)
alistChildren = new ArrayListCheckBoxNode();
alistChildren.add(cbnodeNew);
iBranch++;
eventNodeAdded = new TreeModelEvent(this,getPathToRoot(this), new int[]{cbnodeNew.getIndex()}, new CheckBoxNode[]{cbnodeNew});
return cbnodeNew; } Let me know if any other code is of use, and if so what you need to see
Edited by: porpoisepower on Feb 1, 2010 10:19 PM -
How to check/verify running sql in lib cache is using updated statistics of table
How to check/verify running sql in lib cache is using updated statistics of table used in from clause.
one of my application table is highly busy i.e frequent update/insert/delete.
we gather table stats every 30 min.Hello, "try dynamic sampling" = think "outside the box", maybe hit two birds with same stone.
As a matter of fact, I was just backing up your statement: "30 minutes seems pretty extreme"
cheers -
Crash when updating site cache? MM_Username1?
Hi,
All of a sudden, tonight, DW8.0.2 will no longer open or load
one of my
sites, crashing when "Updating Site Cache". The site is ASP
linked to an SQL
database.
Checking the file that the cache gets to, I notice that the
problem file is
within a sub-directory of the site, called "/admin". Thing is
though, it's
not always the same file, but it IS always a file within the
/admin
sub-directory.
Within this sub-directory I altered, by hand, the Login User
code and
Restrict Access to Page code to create and use the session
variable
MM_Username1 as opposed to the default MM_Username.
Could this be the reason for the sudden trouble with the site
cache? I am
puzzled because the site was working fine for a few weeks
now, with this
sub-directory included, and I didn't create the MM_Username1
issue today
either, it has also been working fine for a good few weeks
now. I've also
not added anything new to the site, that I am aware of.
When I remove the sub-directory from the site, the Updating
Site Cache works
fine, so I am 100% sure there is a problem with the files
within this
sub-directory. How will I know which one though?
I've tried this, as recommended by Adobe, but I still get a
freeze-up when
re-creating the cache:
1. Try renaming the Dreamweaver user configuration folder, so
that
Dreamweaver will automatically generate a new user
configuration folder the
next time Dreamweaver launches. The Configuration folder is
located here:
C:\Documents and Settings\<username>\Application
Data\Macromedia\Dreamweaver
8\Configuration
2. Recreate your Dreamweaver user settings in the registry as
follows:
Launch the Registry Editor by clicking the Start button,
choose Run, then
type "regedit". In the Registry Editor, navigate to this
folder:
HKEY_CURRENT_USER\Software\Macromedia\Dreamweaver 8
Rename the "Dreamweaver 8" key to "DreamweaverOLD", so that
Dreamweaver will
automatically generate a new user settings key the next time
you launch it.
3. Recreate your Dreamweaver site definitions in the registry
as follows.
The steps below will delete your site definitions in
Dreamweaver.
4. Launch the Registry Editor by clicking the Start button,
choose Run, then
type "regedit". In the Registry Editor, navigate to this
folder:
HKEY_CURRENT_USER\Software\Macromedia\Common\8\Sites
Rename the "Sites" key to "SitesOLD", so that Dreamweaver
will automatically
generate a new Sites key the next time you launch it.
Any further advice?
Regards
nath.Found it! Jeesh.
I had a querystring value in my UPDATE redirect URL which was
coded
incorrectly!!!
I am frustrated that, rather than just highlighting the error
or, at the
very least, producing an error when opening the specific
file, this type of
thing crashed the entire DW programme.
The time I spent in Notepad today changing MM_Username1 back
to
MM_Username!! Turns out that was nothing to do with it.
<groan> Yeah,
that's right, laugh it up! :o)
Anyway, solved now. A misplaced ", %, ), (, <, >, &
etc can cause you no
end of grief! :o(
Nath.
"tradmusic.com" <[email protected]> wrote in
message
news:[email protected]...
> Hi,
> All of a sudden, tonight, DW8.0.2 will no longer open or
load one of my
> sites, crashing when "Updating Site Cache". The site is
ASP linked to an
> SQL database.
> Checking the file that the cache gets to, I notice that
the problem file
> is within a sub-directory of the site, called "/admin".
Thing is though,
> it's not always the same file, but it IS always a file
within the /admin
> sub-directory.
>
> Within this sub-directory I altered, by hand, the Login
User code and
> Restrict Access to Page code to create and use the
session variable
> MM_Username1 as opposed to the default MM_Username.
> Could this be the reason for the sudden trouble with the
site cache? I
> am puzzled because the site was working fine for a few
weeks now, with
> this sub-directory included, and I didn't create the
MM_Username1 issue
> today either, it has also been working fine for a good
few weeks now.
> I've also not added anything new to the site, that I am
aware of.
>
> When I remove the sub-directory from the site, the
Updating Site Cache
> works fine, so I am 100% sure there is a problem with
the files within
> this sub-directory. How will I know which one though?
>
> I've tried this, as recommended by Adobe, but I still
get a freeze-up when
> re-creating the cache:
>
> 1. Try renaming the Dreamweaver user configuration
folder, so that
> Dreamweaver will automatically generate a new user
configuration folder
> the next time Dreamweaver launches. The Configuration
folder is located
> here: C:\Documents and
Settings\<username>\Application
> Data\Macromedia\Dreamweaver 8\Configuration
>
> 2. Recreate your Dreamweaver user settings in the
registry as follows:
>
> Launch the Registry Editor by clicking the Start button,
choose Run, then
> type "regedit". In the Registry Editor, navigate to this
folder:
> HKEY_CURRENT_USER\Software\Macromedia\Dreamweaver 8
> Rename the "Dreamweaver 8" key to "DreamweaverOLD", so
that Dreamweaver
> will automatically generate a new user settings key the
next time you
> launch it.
>
> 3. Recreate your Dreamweaver site definitions in the
registry as follows.
> The steps below will delete your site definitions in
Dreamweaver.
>
> 4. Launch the Registry Editor by clicking the Start
button, choose Run,
> then type "regedit". In the Registry Editor, navigate to
this folder:
>
> HKEY_CURRENT_USER\Software\Macromedia\Common\8\Sites
>
> Rename the "Sites" key to "SitesOLD", so that
Dreamweaver will
> automatically generate a new Sites key the next time you
launch it.
>
> Any further advice?
> Regards
> nath.
> -
How do I delete an old Apple ID and still update apps purchased when I was using it?
How do I delete an old Apple ID and still update apps purchased when I was using it?
One, you cannot delete an Apple ID, all you can do is stop using it and let it fade away.
Two, apps are permanently tied to an aPple ID and can never be transferred to another. You must use that same ID to update an app, or delete the app and repurchase/download under another ID. -
I don't know of there is anyone than can fix this age old Apple problem. Does anyone know how to retrieve apps under an old Apple ID when the email used for that account no longer exists & I can't remember the password? After speaking with Apple Acct. Security, I got the security Q right but my birthday was wrong! They wanted the serial number from my phone that was 3 iPhones ago! Seriously??!!
Any updated way to work around this? No Apple people can correct it.
Thanks,
JoeYou need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
(122986) -
I have a imac OSX 10.5.8 and get a java "error" message when trying to use a research tool on Morningstar.Java referred me to Apple but they had no updates. Any ideas? thanks.
Well I solved my problem.
What still doesn't make sense though is that dragging iTune audio files directly on to the iTunes application icon gave me the error message... which is why I originally discounted it as being a potential link problem. If I had been able to get files to open normally (i.e. without an error message) I would have known it was a simple link problem. Strange.
Anyway... relinking my folder of audio files did the trick.
If you don't already know how here are the steps...
iTunes > Preferences > Advanced > click on the "Change" button and browse to the folder that contains all of your iTunes audio files... that's it. -
Mail won't update when I'm not using it..
Hi guys,
I have been having some trouble with my Mail, I use hotmail and the mail app on iPhones just recently it hasn't been updating when I'm not in the app, so I have been missing a lot of emails and they haven't been showing and only show when I go on the app and refresh it manually! It used to do it automatically but now it's stopped, I might of clicked something on settings but I'm not sure what! Not sure if this makes a difference I put on airplane mode through the night (something I have always done anyway) when I first turn off all the mail comes through automatically then from the night time however after this I get nothing without manually going into the app! If anyone can help me sort this I would be very grateful.Hi rawoo,
Based on your post it seems you are experiencing issues with Mail. The following article may help you find a solution:
Get help with Mail on iPhone, iPad, and iPod touch - Apple Support
Have you checked your Mail settings in regards to Push and Fetch for new messages? This may help you further:
Mail settings - iPhone
Mail settings
Go to Settings > Mail, Contacts, Calendars, where you can:
Create a different mail signature for each account
Add mail accounts
Set Out of Office replies for Exchange mail accounts
Bcc yourself on every message you send
Turn on Organize by Thread to group related messages together
Turn off confirmation for deleting a message
Turn off Push delivery of new messages, to save on battery power
Temporarily turn off an account
Thank you for contributing to Apple Support Communities.
Take care,
Bobby_D -
Or indeed is some other way possible, such as using an Applescript to detect when I am using my personal hotspot on my (limited data package!) 3g iPhone (via wi-fi or USB etc) and then switch off the automatic downloads until I revert back to my regular connection?
Apologies -seem to have posted this in the worng forum.Make a New Location, Using network locations in Mac OS X ...
http://support.apple.com/kb/HT2712
But Software Update won't be an available setting choice.
But I'd turn off automatic Updates anyway, & just check once a week or once a month to see what's available. -
Runtime error when trying to use Thinkvantage system updater
I get a runtime error when trying to use the Thinkvantage system updater.Have tried it numerous times and this is the exact message:
"Runtime error!
Program:C:\Program Files\Lenovo\System Update\tvsu.exe
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information."
Can somebody please help me to get the Thinkvantage system updater working properly?
Thanks-George
This issue has since been resolved.Thanks-GI'm getting the same error. I tried reinstalling system updater but it didn't help.
-
since last update (today) I get invalid Apple ID password when trying to use back to my MAC in Icloud app on my MAC, password works on all my other devices. GLITCH ?
Try going to the Apple ID page on your web browser
http://www.apple.com/support/appleid/
and try to either retrieve or reset your password
(obviously you had to be able to successfully log in to be able to post here)
I was finally able to log in through my system preferences after about three or four hours. I ran a disk utility to repair permissions and restarted and it seemed to work ok. -
I just updated to ios 7 on my iPhone 4 how do you turn the apps off when your not using them? The old way of double clicking and then pressing the app until a red minus button comes doesn't work it opens it back up!?
Double click home button, then swipe up on app picture (not the icon itself)
-
i downloaded the new 7 update on my ipad. it now will not charge to 100% and loses power even when not in use. any solutions ??
Try a reset: Simultaneously hold down the Home and On buttons until the device shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the device back on using the On button. In some cases it also helps to double click the Home button and close all apps BEFORE doing the reset.
Then plug it in and let it fully charge. -
I my safari automatically wiped when i took update. I am using Mac 10.6.8. Can you please send me how to reinstall it. Due to this my mail email system also effected. can you please help me soon
The reason Safari "wiped" is unknown, but try reapplying the OS X 10.6.8 Combo update here:
Mac OS X 10.6.8 Update Combo v1.1
Your email problems may or may not be related. A more complete explanation of the problem would help. -
My son was using the cpu at the time of the first attack. He got it cleared out and working. A day later it hit again when I was using the computer. As soon as I saw the fake virus scan I brought up taskmaster and stopped it. Almost immediately it started running again so I stopped it a second time. When I did, it shut down windows explorer. The only thing that would run was the malware. I brought it up at a restore point and it ran normally. This cycle has been repeated several times.
Both Avast and SpybotSD will find and delete the malware, and both of these update normally. I think that when firefox updates itself, it is requesting data from a malware site rater than from you. How do I reset this?Try this:
#Go to '''Tools '''| '''Options '''| '''Advanced '''and click the '''Network '''tab.
#In the Offline Storage menu, click the '''Clear Now''' button.
#In the location bar, type '''about:config '''and hit Enter.
#In the filter at the top, type: '''keyword.URL'''
#Double click it and remove whatever's in there. You'll see it revert to "Default" and "String".
#Go to File | Exit
#Restart Firefox and go to the page you want to set as your homepage
#Go to '''Tools '''| '''Options '''| '''General'''.
#Make sure it says "''Show My Homepage''" in the first dropdown menu.
#Click the button called "'''Use Current Pages'''" to set the homepage to the one you have on the screen.
Maybe you are looking for
-
How can I export an SD 16:9 self contained file from FCX?
Hi folks, I'm playing with the trial. Used another thread to figure out how to import mts files (Loving the fact I don't have to clipwrap them! Original footage is in HD - 1920 x 1080. Upon importing it looks like it converts to ProRes422 1440 x 10
-
Hi According to iTunes the iPhoto album I selected is showing as synced on the status bar, but ATV say's there are no photos synced to ATV. Any ideas? Colin
-
Hi, I tried to run this in the SQL Workshop section of APEX and I am not sure what I need to change : CREATE TABLE "ADV_INQ_REF" ( "ADV_ID" NUMBER NOT NULL ENABLE, "INQ_ID" NUMBER NOT NULL ENABLE, "QUALIFIED" VARCHAR2(1) DEFAULT 'F' NOT
-
Is there a script that automates mail:to links and hyperlinks?
In a nutshell, maybe this was already done. I searched the forum, but cant say I found what I was looking for. Jim Simon can be reached at [email protected] Jim Simon work's gallery can be found at www.jsgallery.com. Basic stuff like this.
-
Please!! somebody help me to read a xml
hi my problem is that I can't read a value of a one particular Node let's me show you my source code. apparently all is fine, by I don't know WHY damn appear un NullPoninterExceeption in the line with the comentary /**here**/ public String getValue(S