Surprising results for HashSet
Some thing wrong in my program? Please help me.
I am trying to create a TreeSet. I have created a class by name Person which implements equals(Object obj) method. In this program, I am trying to add an unique Person object (new Person(23,"test",6.3f,"blue")) twice to the HashSet. To my surprise takes. Again I am adding the same object to the 2nd HashSet. Then when I try to retainAll() method of the 1st HashSet and 2nd HashSet, I dont see any object being retained at all.
======================PROGRAM BELOW============================
==============================MAIN PRG=========================
import java.util.*;
public class TreeCompare
public static void main(String args[])
HashSet set1=new HashSet();
HashSet set2=new HashSet();
set1.add(new Person(20,"sun",5.5f,"blue"));
set1.add(new Person(25,"moon",6.0f,"green"));
set1.add(new Person(23,"test",6.3f,"blue"));
set1.add(new Person(23,"test",6.3f,"blue"));
System.out.println("\nFirst Set:\n"+set1);
set2.add(new Person(23,"test",6.3f,"blue"));
System.out.println("\nSecond Set:\n"+set2);
set1.retainAll(set2);
System.out.println("\nResultant Set:\n"+set1);
==============================PERSON CLASS=========================
class Person implements Comparable
int age;
String name;
float height;
String eye;
public Person(int age,String name,float height,String eye)
this.age=age;
this.name=name;
this.height=height;
this.eye=eye;
public boolean equals(Object obj)
if(!(obj instanceof Person))
return false;
Person person=(Person) obj;
return
(person.age==this.age)
&&(person.height==this.height)
&&(person.eye.equals(this.eye))
&&(person.name.equals(this.name))
public String toString()
return ("\n"+this.age+"\t"+this.name+"\t"+this.height+"\t"+this.eye+"\n");
public int compareTo(Object obj)
Person person=(Person) obj;
if(this.age > person.age)
return 1;
}else if(this.age < person.age)
return -1;
}else if(this.height > person.height)
return 1;
}else if(this.height < person.height)
return -1;
}else
int i=this.eye.compareTo(person.eye);
if(i!=0)
return i;
}else
int j=this.name.compareTo(person.name);
return j;
}
Something that is based on those four values, which always returns the same result when the four values are the same, and produces fairly random-looking results, like this:public int hashCode() {
int value = age;
value = 37 * value + name.hashCode();
value = 37 * value + (int)height;
value = 37 * value + eye.hashCode();
return value;
}
Similar Messages
-
Batch Characteristic not updating with result for linked MIC
Hi,
I have created a MIC and linked to a batch characteristic i.e. potency and included the characteristic in a specific batch class. This MIC is part of the inspection plan for a certain material.
If I generate a lot of origin 01 and 09 for the material and record a result for the MIC and apply a UD, the batch characteristic is not updated with the result recorded in the batch master record..
If I generate a lot origin 89 for the same material, when the result is recorded for the MIC and apply a UD the batch characteristic is updated with the mic value in the batch master record.
Can you help regards?Ok. I am a little bit further.
I put a trace (ST05) on the result recording and I find a difference between 4.7 and ECC6.0.
In ECC6.0 I've an deletion in table "AUSP". This deletion isn't performed in the 4.7 system.
Hope that this can help to solve my problem.
Regards,
René
@ Mayank
Above, all the master data and customizing is mentioned to transfer the result to the batch classification
Edited by: Rene Fuhner on Jul 30, 2010 7:03 PM -
Found 0 results for When I open Firefox I get a "Well this is embarrassing" message. Makes no difference if I click on "Start a new session" or "Restore", it crashes. Then I get a "crash report" which apparently goes nowhere. I have uninstalled and reinstalled twice with the same result, what do I do to restore Firefox?
== This happened ==
Every time Firefox opened
== Last week when I opened Firefox.The crash reporter doesn't appear to be working...Here are the details that were contained in the report:
Add-ons: {0538E3E3-7E9B-4d49-8831-A227C80A7AD3}:0.9.10.2, :3.63,{972ce4c6-7e08-4474-a285-3208198ce6fd}:3.6.3
BuildID: 20100401064631
Comments: I get an error message, " well, this is embarrassing"..and Firefox crashes
CrashTime: 1274739017
EMCheckCompatibility: true
Email: [email protected]
FramePoisonBase: 00000000f0dea000
FramePoisonSize: 4096
InstallTime: 1270304892
ProductName: Firefox
ReleaseChannel: release
SecondsSinceLastCrash: 2699
StartupTime: 1274738966
Theme: classic/1.0
Throttleable: 1
Vendor: Mozilla
Version: 3.6.3
This report also contains technical information about the state of the application when it crashed. -
The Outlook 2013 "Search People" box does not function properly. It frequently displays incorrect results or a mess of duplicate results. I've reported previous issues about this and consolidating my posts into one (with screenshots this
time). Hopefully this message will be forwarded to or seen by the Outlook programmers. It really needs to be fixed.
Outlook 2010 and other prior versions worked perfectly. You search for name, you get ONE result with the info you're looking for. FAST AND EASY. But with Outlook 2013 Microsoft has created a heck of a mess resulting in huge frustration and productivity loss
with such simple but important tasks.
I have hundreds of contacts stored in my Outlook address book, and they all have COMPLETE contact info added.
One major issue that I'm experiencing in the new Outlook 2013 is that I now get average of 4 or more duplicate name results appearing for the same contact. And each result contains different and incomplete contact info, making it impossible for me to quickly
find the basic info I'm looking for. The cause of this issue is that Outlook 2013 now provides results from not only your local address book(s), but it also shows results based on your email history and social media accounts setup.
And there's no way to turn this off, or at least specify what folders and/or accounts the People Search box should use.
To make matters worse, the Microsoft developers conveniently forgot to add some form of an indicator (like a small icon besides each name result in the list) that clearly indicates what result is from what source. So you must manually click on each
result one at a time and repeat the search until you locate the correct one.
For one specific example, I have a contact stored in my local address book called
Infusionsoft. When I type "Infusionsoft" in the People Search box to quickly find a phone number, Outlook 2013 shows me 7 results with the same name. See the screenshot below:
As you can see in the screenshot above, every result just says "Infusionsoft", so I have to manually click on each name result one at a time and repeat the process until I find the correct one from my address book. This same thing happens with other
random contacts.
From what I can tell, Outlook is pulling results based on based on recent emails I've received from different people with "@infusionsoft.com" in their email address. So the first result shows "[email protected]" (just the email
address), the second result shows "[email protected]", the third result shows "[email protected]" and so forth. I don't want Outlook to show all of that. I just want what's in my address book!
And you would think that the last result would be the correct one from my address book, but no. Sometimes its the 5th result, and other times it's the 3rd or 7th result. So there's no freaking order of things here.
We simply need the ability to turn off searching of email history and other accounts when using the People Search box. Problem fixed.
(And please don't tell me that I need to "link" every incorrect result to one main contact. You shouldn't expect everyone to have to tediously link any and all results that appear to a record. ESPECIALLY when 5+ results for each contact appear regularly.)
ISSUE 2: Some names must be typed in a different way for the Search People to locate them
Another big issue I'm having with the Search People box is that some name searches don’t show the correct result, unless I search for their names in a different way.
For one specific example, I have a contact stored in my address book named "Dave Johnson". When I type "Dave Johnson" in the Search People box, one result appears, but it's just his email address, only. It's not the result that's stored in my Outlook address
book with his phone number, addresses, etc. Screen shot below:
If I type in Dave's name reverse order (Johnson Dave), no results are found at all.
Now if I just type in just"Johnson" all by itself, it finds Dave's correct result (the one stored in my Outlook Address Book). Along with everybody else that has "Johnson" in their name (see screenshot below)...
I double-checked how I have Dave's name programed in my address book, and it's in there as "Dave Johnson" for both the Full Name and File As fields.
Also, the name order shouldn't make any difference when using the People Search Box anyway. Sometimes I can find people by Last Name, First Name or First Name, Last Name. Only with random contacts does it get difficult finding their info and
I have to do strange things like this to find them from the People Search box.
ISSUE 3: Some Search People results only yield an email address only.
For other random contacts, some search results only yield an email address with no other contact details. But I can open the persons contact card from the address book manually, with the same email address shown! Screenshot below...
In the screenshot above, I have outlined the Search People box results in red, and the Address Book results in green. You can clearly see that "Robert White" is a contact stored in my local address book with full contact details, but the Search People result
only shows his email address! Again, it's not consitent. It's hit or miss with different people.
ISSUE 4: Some results just don't appear at all, but they are in the address book
Another issue I'm experiencing with the People Search Box is that some people simply cannot be found. But I can see their contact info just fine if I click on the "People" tab down at the bottom of the page and type in their name in the "Search Contacts"
field. Why can't the People Search box find certain people? I opened up their contact details and cannot find a single thing that would prevent them from showing up in results.
These are clearly serious bugs that need to be fixed. And I'm shocked as to how this got missed--or ignored during alpha and beta testing. I see the "idea" behind the developers having the Search People box search everything outside of the
address book, but in real world application this causes a heck of a lot of problems & confusion, and it needs to be fixed ASAP.
For technical details, I have Outlook 2013 running on two computers using hosted Exchange 2010. One system is Windows 7 and other is Windows 8. The same problems occur on BOTH computers. As far as my Outlook account setup, I have all contacts stored in the
main address book (no sub-folders or other folders).
Can someone help communicate this message to the Outlook developers??? The "Frown" button limits me to 100 characters and one image. There's no way I can communicate this level of detail and steps to duplicate in 100 characters!Thanks for your reply.
1) The instant search boxes in each individual page work just fine. If I am on the People page and type in a name in the "Search Contacts" field, it searches my contacts and displays the results that I want. But I should not have to leave whatever screen
I'm in to find people now. In Outlook 2010 and earlier versions, I could be on the calendar page and then search for a contact without clicking off the calendar completely. For productivity-sake, it's a huge waste of time and hassle now.
2) I'm familiar with how contact linking works, and quite frankly it's a huge mess in general. I NEVER create multiple contacts for the same person. I get that Outlook 2013 get confused now when it detects a LinkedIn or Facebook account for the same person
already in my Outlook address book, but we need to have options that allow us to turn off results from some or all social networks. This is a big part of the problem.
Think about it this way - The average person has 150+ LinkedIn connections, and more for Facebook. Many people today have accounts for both and they are setup with the same email address. When Outlook 2013 has to scan all the networks IN ADDITION to your
local address book(s), it's a no brainer that it can get very confused trying to display results.
Another big part of the problem is that Outlooks new search system also scans your email history. I receive emails from people who use multiple email addresses, or emails from companies with multiple reps or ticket systems that send you a unique
ticket ID # ending in the same email address domain. Now Outlook displays people search results based on everything under the sun in my email history. This is beyond frustrating (see my "Infusionsoft" screenshot above in the first post).
Again, I want to stress that for the search examples I referenced, I only have one entry in my Outlook address book for each person. And that's all I want to find when I search for people--what's already in my own address book!
In summary:
We need an OPTION to turn off searching external networks when using the People Search box
We need an option to tell Outlook to not scan email history for people search results (I think this needs to be disabled entirely actually. It's not helpful at all)
There should be a fixed priority for displaying people search results, with local address book results FIRST, followed by social network results.
There should be a clear icon/indicator next to each result that gives you a clue as to where the result is coming from. Your address book? Facebook? LinkedIn? We should not need to click on each result to get a hint as to where it's coming from.
Work out the bugs in general with the new search system.
One other thing that I didn't mention is that the Search People box also shows results for people I'm not even "friends" or connected with on the different social networks. But I've noticed that some people use the same email address for those networks that
I already have programmed for them in my address book, which is why Outlook sometimes shows me these results. Does that make sense?
I'll try rebuilding the index, but after testing Outlook 2013 on 3 different machines so far and seeing the same results (all slightly different results on each machine and very inconsistent), I doubt this will address the issue. -
Add a new employee - Connection is busy with results for another command
Hi all,
I try to add a new employee in my SAP Business One system, but I get an error message like that : [Microsoft][SQL Native Client] Connection is busy with results for another command * (HEM5) (HEM5)
So I try to see if I get the same message when I update an employee, and I don't get this message.
Do you have an idea, why I get this error message when I add a new employee ?
Message was edited by:
Marc RiarHello,
I am afraid there maybe two users / workstations using the same user code and one of them is creating (add) and other is update. Try to ask the users/wrokstations.
Another way out is try to run this query :
select * from HEM5
Rgds,
JM
http://groups.yahoo.com/group/SBO_Knowledge_Village
[email protected] -
After upgrading to iOS 8 on my iPhone 5, the weather app does not show up results for any of the Indian States/cities. Can Apple look into this or does anyone have a solution to this.
Swipe from bottom of days listed ("Wednesday, Thursday, Friday, etc") upwards. I thought it was gone too but it's still there~just takes different way to access it.
-
Found 0 results for My browser is missing important items, the whole tool bar...., drop down menu to print, copy, work off line, file, save, book mark, history. I just installed latest foxfire on windows xp. Found some instructions but they called for using keys my computer doesn't have ( key in OSX There is no file, edit , history, help, tools, navigation, all the things your directions say to use. Also I always get hung up and the message a scrip is running. I don't know what thises scrips are but I sure don't need them.
== This happened ==
Every time Firefox opened
== I just noticed it. It probably happened when I upgraded foxfire.<u>'''Can't see the Menu Bar'''</u> (File, Edit, View, History, Bookmarks, Tools, Help)?
Turning the Menu Bar on and off is a new feature in version 3.6.
''(Linux & OSX see: [[Menu bar is missing]] )''
<u>''Windows'' Method 1.</u> '''''Hold down''''' the key and press the following letters in this exact order: V T M
<u>''Windows'' Method 2.</u> Press and release the key. The Menu Bar will be displayed; then choose ~~red:V~~iew > ~~red:T~~oolbars and click on ~~red:M~~enu Bar.
The Menu Bar should now be displayed permanently, unless you turn it off again using View > Toolbars. Check mark = displayed, NO check mark = not displayed.
See: http://support.mozilla.com/en-US/kb/Menu+bar+is+missing
<u>'''Navigation Toolbar, Bookmarks Toolbar and other Toolbars'''</u> under View > Toolbars. Clicking on one of them will place a check mark (display) or remove the check mark (not displayed).
<u>'''To display the Status Bar'''</u>, View, then click Status bar to place a check mark (display) or remove the check mark (not displayed).
<u>'''Full Screen mode'''</u>
http://kb.mozillazine.org/Netbooks#Full_screen
Also see:
''' [[Back and forward or other toolbar buttons are missing]]'''
'''[[Navigation Toolbar items]]''' -
Content Search Web Part displaying wrong Results for anonymous Users.
HI Forum Group,
I am getting Wrong results for my content search web part. The requirement is to show the News Description for the selected news item.
I have a catalog site which stores News like
News1
News2
News3
as Items. and i have connected this catalog in publishing site which is anonymous. In the publishing site created one page "News.aspx"added search results webpart which shows all the news item. Added one page "Description.aspx" to show
description to show the selected news item.
When ever user selects any news from news.aspx page it will redirected to description.aspx with the selected item ID
The "Description.aspx" the search results page gets the data based on the URL by QueryString parameter as shown below
The problem is, if i multiple items to open in tabs all the items are showing the data same as the first selected item, though the article ID is different.
Thanks
SithenderHi,
Thank you for your feedback on how you were successful in resolving this issue.
Your solution will benefit many other users, and we really value having you as a Microsoft customer.
Have a nice day!
Best Regards,
Lisa Chen
TechNet Community Support
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] -
Simple question - How do I add photos to the body of my emails . But instead of the answer - Found 1000 results for How do I add photos to my emails for Thunderbird. There are answers that don't apply at all to the question in anyway. Why does it have to be so hard to get a simple answer to a simple question?
Thunderbird is acting much like Microsoft, the every reason I dumping MS Live Mail.First of all, much help for Thunderbird refers to menus which may not be visible. It would help you and us if you have your menus and toolbars visible.
http://chrisramsden.vfast.co.uk/13_Menus_in_Thunderbird.html
So, open a write window. Enable its menu and toolbar(s).
Now do you see an "Insert" option?
If not, you may be set to compose in plain text, which does not support embedded images.
'''[http://kb.mozillazine.org/Menu_differences_in_Windows,_Linux,_and_Mac Tools|Account Settings]|{select account}|Composition & Addressing''' and ensure "Compose messages in HTML format" is ticked. If it wasn't already ticked, go back to composing a message. Any better now?
Once you have HTML composition mode going, you can use '''Insert|Image''' or various permutations of copy-and-paste and drag-and-drop into your message body.
A manual, of sorts: http://en.flossmanuals.net/thunderbird/composing-messages/ -
SAP BPM Flow Rule set error: Result for ResultSet is required.
Hi ,
I want to create of Rule set or Flow rule set inside "Process development" perspective.
I have defined one process under "Processes" folder. After this, I want to create a rule set under "Rule Sets" folder.
While creating a rule set, it prompts for "Result for ResultSet is Required" but I don't get anything in drop down select. Please help me whats going wrong here.
Regards,
AmanHi Aman,
Have you mentioned the Return Type in signature while creating RuleSet ?
Refer the document : SAP NetWeaver Business Process Management Resource Center
-Abhijeet -
Auto-refresh search result (for activities)
Hi all,
we've got a customer requirement to implement a auto-refresh function for the search result for activities, means, the search result table should automatically be updated every x minutes.
In component BT126S_APPT, view layout ApptSQ.htm, I've added the following lines of code after the thtmlb:advancedSearch tag:
window.setTimeout["document.getElementById('C16_W54_V55_Searchbtn').click();", 5000 ) ;
This script "clicks" the search button 5 secs after the search page has been loaded.
Now, the interesting thing is that this works two times, like starting the page -- javascript triggers first automatic search --search result updated -- javascript triggers second automatic search -- search result updated, but then the script isn't called ny more.
Any idea about that?
Regards
WolfgangHi,
Make use of af:poll component.........
http://download.oracle.com/docs/cd/E12839_01/apirefs.1111/e12419/tagdoc/af_poll.html
Regards,
Suganth.G -
1. Firefox Help
2. Search
Refine your search
Found 0 results for I have a lot of firefox downloads BUT can't find anything to click to see them - Where is the button that will show all Firefox downloads? in English in EnglishTools > Downloads or {Ctrl + J} will open the Downloads window
-
Bing based federated result sources not returning any results for non-English languages
I have a result source with this query:
http://www.bing.com/search?q={?searchterms} language:fr site:msdn.microsoft.com&format=rss&count=50&first={startIndex}
This used to give me 40-50 results for common terms like download, blog etc.
From today (7/14) IST, this source does not return any results. There are no results if I execute this query directly in IE either.
Same behavior observed for: language:es, language:de etc.
I do however get results as expected for language:en.
Any idea what the issue might be?Hi Swapnil,
According to your description, my understanding is that no results returned when searching with non-English in the Result Source query.
I tested the same scenario per your post and I got the same results as you got.
I recommend to change the language:fr in the Result Source query to be lang=fr to see if the issue still occurs.
More references:
http://kbdump.com/sharepoint-2013-opensearch-search-twitter-facebook-wikipedia-page/
http://richardstk.com/2013/11/08/sharepoint-2013-federated-search-to-bing/
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
There were no results for How can I tell if an iPhone was stollen and if it is, can I still activate it
Method #1... Call 800-MY-APPLE & have them check the serial number. If a previous owner called in to find out how to use find my iphone, chances are there'll be a case made of it
-
Different results for same query on different servers
1. database being converted from 7.3.4 to 9.2
2. query is executed on both servers
3. different results!
The tables and data are the same, and indexes are setup on new server. EXPLAIN PLAN was run on both but with (predictably) widely different results.
I know, not much detail here, but has anyone ever ran into anything like this?
Thanks,
PatFolks,
Here is the relevant information for this problem. The attributes have been changed for confidentiality. If you need any other information let me know.
Thanks,
Pat
Query:
SELECT
one,two,three,four,a.five,six,seven,
a.eight,a.nine,
to_char(ten,'99999.99'),to_char(eleven,'99999.99'),
to_char(twelve,'99999.99'),to_char(thirteen,'99999.99'),
fourteen,fifteen,sixteen,seventeen,eighteen,
nineteen,twenty,twentyone
FROM
table1 a,
table2 b
WHERE
a.five = b.five
AND one = 'X'
AND six = ' '
AND three != 12345
AND three IN
(SELECT DISTINCT
three
FROM table3
WHERE
one = 'X'
AND twentytwo = 'XYZ'
AND twentythree != 0
AND twentyfour != 0
AND twentyfive = 'Y'
AND (a.five IN
(SELECT DISTINCT
five
FROM table1
WHERE
one = 'X'
AND three IN (12345)
Table1:
one varchar2(1) not null PK
two varchar2(20) not null PK
three number(5) not null PK
four number(2) not null PK
five number(6) not null PK
six varchar2(4) not null PK
seven number(4) not null
eight varchar2(8) not null
nine date not null
ten number(7,2)
eleven number(7,2)
twelve number(7,2)
thirteen number(7,2)
Table2:
five number(6) not null PK
fourteen varchar2(5) not null
fifteen varchar2(5) not null
sixteen varchar2(2) not null
seventeen varchar2(35) not null
eighteen varchar2(4) not null
nineteen varchar2(2)
twenty varchar2(1)
twentyone number(6)
Table3:
one varchar2(1) not null PK
twentytwo varchar2(12) not null PK
two varchar2(20) not null PK
three number(5) not null PK
four number(2) not null PK
twentysix number(2) not null PK
twentyfive varchar2(1) not null
nine date not null
twentythree number(13,8) not null
twentyfour number(12,8) not null
twentyseven varchar2(1) not null
eight varchar2(8) not null
Explain - Oracle9i (default, with CBO):
SELECT STATEMENT
RECURSIVE EXECUTION SYS_LE_3_0
RECURSIVE EXECUTION SYS_LE_3_1
TEMP TABLE TRANSFORMATION
HASH JOIN
HASH JOIN
HASH JOIN
TABLE ACCESS FULL SYS_TEMP_0FD9D6603_AB874A
TABLE ACCESS BY INDEX ROWID TABLE1
BITMAP CONVERSION TO ROWIDS
BITMAP AND
BITMAP MERGE
BITMAP KEY ITERATION
TABLE ACCESS FULL SYS_TEMP_0FD9D6603_AB874A
BITMAP CONVERSION FROM ROWIDS
INDEX RANGE SCAN TABLE1INDEX03
BITMAP MERGE
BITMAP KEY ITERATION
TABLE ACCESS FULL SYS_TEMP_0FD9D6602_AB874A
BITMAP CONVERSION FROM ROWIDS
INDEX RANGE SCAN TABLE1INDEX04
TABLE ACCESS FULL SYS_TEMP_0FD9D6602_AB874A
TABLE ACCESS FULL TABLE2
Query results - Oracle9i (with CBO):
X|A | 1| 0| 22| | 1|08-MAR-02|XYZ | | 24.00| | |ABCDE|FGHIJ|AB|ABCDEFG |ABC | | | |
X|B | 2| 1| 22| | 7|04-DEC-01|XYZ | | 3.25| 8.00| |ABCDE|FGHIJ|AB|ABCDEFG |ABC | | | |
X|C | 3| 1| 22| | 1|14-AUG-02|XYZ | | 10.35| | |ABCDE|FGHIJ|AB|ABCDEFG |ABC | | | |
X|D | 4| 1| 22| | 6|11-JUL-02|XYZ | | .00| 13.90| |ABCDE|FGHIJ|AB|ABCDEFG |ABC | | | |
X|E | 5| 5| 23| | 1|22-FEB-01|XYZ | | 211.80| | |ABCDE|EFGHI|AB|HIJKLMN |DEF | | | |
X|E | 5| 5| 23| | 1|22-FEB-01|XYZ | | 211.80| | |ABCDE|EFGHI|AB|HIJKLMN |DEF | | | |
X|E | 5| 5| 23| | 1|22-FEB-01|XYZ | | 211.80| | |ABCDE|EFGHI|AB|HIJKLMN |DEF | | | |
X|E | 5| 5| 23| | 1|22-FEB-01|XYZ | | 211.80| | |ABCDE|EFGHI|AB|HIJKLMN |DEF | | | |
X|E | 5| 5| 23| | 1|22-FEB-01|XYZ | | 211.80| | |ABCDE|EFGHI|AB|HIJKLMN |DEF | | | |
(approximately 4550 rows returned)
Explain - Oracle9i (ALTER SESSION SET OPTIMIZER_METHOD=RULE;):
SELECT STATEMENT
MERGE JOIN
SORT JOIN
NESTED LOOPS
NESTED LOOPS
VIEW VW_NSO_1
SORT UNIQUE
TABLE ACCESS BY INDEX ROWID TABLE3
INDEX RANGE SCAN TABLE3INDEXPK
TABLE ACCESS BY INDEX ROWID TABLE1
INDEX RANGE SCAN TABLE1INDEX03
TABLE ACCESS BY INDEX ROWID TABLE2
INDEX UNIQUE SCAN TABLE2INDEXPK
SORT JOIN
VIEW VW_NSO_2
SORT UNIQUE
TABLE ACCESS BY INDEX ROWID TABLE1
INDEX RANGE SCAN TABLE1INDEX03
Explain - Oracle 7.3.4:
SELECT STATEMENT
MERGE JOIN
SORT JOIN
NESTED LOOPS
NESTED LOOPS
VIEW
SORT UNIQUE
TABLE ACCESS BY ROWID TABLE3
INDEX RANGE SCAN TABLE3INDEX03
TABLE ACCESS BY ROWID TABLE1
INDEX RANGE SCAN TABLE1INDEX03
TABLE ACCESS BY ROWID TABLE2
INDEX UNIQUE SCAN TABLE2INDEXPK
SORT JOIN
VIEW
SORT UNIQUE
TABLE ACCESS BY ROWID TABLE1
INDEX RANGE SCAN TABLE1INDEX03
Query results - Oracle 7.3.4:
X|A | 1| 0| 22| | 1|08-MAR-02|XYZ | | 24.00| | |ABCDE|FGHIJ|AB|ABCDEFG |ABC | | | |
X|B | 2| 1| 22| | 7|04-DEC-01|XYZ | | 3.25| 8.00| |ABCDE|FGHIJ|AB|ABCDEFG |ABC | | | |
X|C | 3| 1| 22| | 1|14-AUG-02|XYZ | | 10.35| | |ABCDE|FGHIJ|AB|ABCDEFG |ABC | | | |
X|D | 4| 1| 22| | 6|11-JUL-02|XYZ | | .00| 13.90| |ABCDE|FGHIJ|AB|ABCDEFG |ABC | | | |
X|E | 5| 5| 23| | 1|22-FEB-01|XYZ | | 211.80| | |ABCDE|EFGHI|AB|HIJKLMN |DEF | | | |
(approximately 1150 rows returned)
Indexes (used):
TABLE1INDEX03 (three)
TABLE1INDEX04 (five)
TABLE2INDEXPK (five)
TABLE3INDEXPK (one,twentytwo,two,three,four,twentysix)
Discussion:
Notice the repeating result for X,E,5,5,23,.... in the Oracle9i retrieval using CBO.
The execution of this query returned approximately four times the number of rows as
Oracle 7.3.4 using RBO. This is a function of how many "fours" there are in table3
that have matching "threes and fours" in table1. If you put a DISTINCT clause at the
very front of the query (SELECT DISTINCT one,two,three ....) then the result is
accurate and the same as Oracle 7.3.4. In one execution of this query, 27,000 rows
are expected to be returned, but the server returned over 1 million rows!
When RBO was used on Oracle9i, the results were identical to the ones on Oracle 7.3.4.
Maybe you are looking for
-
I can not access my itunes library on Apple TV. How do I turn on home sharing?
I Can not access my itunes library on Apple TV. How do I turn on home sharing?
-
Hi, I have view container being dynamically generated . My requirement is to embed a standard view in it at run time. Please help me out. Thanks&Regards, Narendra N Shukla
-
What Generation is the newest ipod touch(2011)?
-
Hello, Just setting up my new imac & I've been trying to set up email accounts in Mac Mail for 3 other user accounts. My broadband provider in the UK (BT) provided us with 4 '@btinternet.com' Email accounts. After I installed broadband I was taken th
-
No permission to read time capsule files
I upgraded from one MBA to another using the Migration Assistant to transfer the account from a Time Capsule. While that worked fine, I cannot access any time machine backups prior to the upgrade--the files are there, but I do not have permissions to