Re: optimized searching - need desperate help
Table 1:
CREATE TABLE Registry(MDN BIGINT NOT NULL, ESN VARCHAR(16) NOT NULL, MIN BIGINT NOT NULL, SID INT NOT NULL, ORDER BY MDN);
Table 2:
CREATE TABLE Info(SID INT NOT NULL, IP VARCHAR(32) NOT NULL ORDER BY SID);
Before I had
Table 1:
CREATE TABLE Registry(MDN VARCHAR(16) NOT NULL, ESN VARCHAR(16) NOT NULL, MIN VARCHAR(16) NOT NULL, SID VARCHAR(4) NOT NULL);
Table 2:
CREATE TABLE Info(SID VARCHAR(4) NOT NULL, IP VARCHAR(32) NOT NULL);
The only diff in a query like
Select IP from Info where SID=(Select SID from Registry where MDN='xxx');
is from .84 or .64 to about .5 in a total size of registry = 610,000 entries
I want this number to really reduce, I wouldnt think that once the numbers are arranged in order the query like this should take more than 10-15 steps to find it the correct one, which infact shouldnt take more than few millisecond.
Can you suggest something.
Subject
Views
Written By
Posted
2743
July 02, 2005 09:14AM
1987
July 02, 2005 01:22PM
Re: optimized searching - need desperate help
2219
July 02, 2005 03:38PM
1696
July 02, 2005 04:03PM
2078
July 02, 2005 04:45PM
2175
July 02, 2005 07:10PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.