Database & SQL

Moderators: None (Apply to moderate this forum)
Number of threads: 1194
Number of posts: 2247

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Query optimization Posted by tejal_k_mehta on 27 Oct 2004 at 4:51 AM
Hi,
i have devlope search utitlity in VB application.
in that utillity i have given a option for Search whole database.
but it takes 15 mins for 13000 records to search whole database.

this utility is used for ACCESS ,SQL and ORACLE database.

i want to make search more faster if possible.it possible it should get the result within 5 to 7 mins for 13000 recrods.

Pls help me regrading this.

Thanks in advance.
Report
Re: Query optimization Posted by infidel on 27 Oct 2004 at 8:05 AM
: Hi,
: i have devlope search utitlity in VB application.
: in that utillity i have given a option for Search whole database.
: but it takes 15 mins for 13000 records to search whole database.
:
: this utility is used for ACCESS ,SQL and ORACLE database.
:
: i want to make search more faster if possible.it possible it should get the result within 5 to 7 mins for 13000 recrods.
:
: Pls help me regrading this.

This question is too vague to answer accurately. What do you mean by "search whole database"? Are there multiple tables? Joins? Subqueries? Different databases may require different optimization techniques. You might be able to create indexes that will help (at least in SQLServer and Oracle).


infidel

$ select * from users where clue > 0
no rows returned


Report
Re: Query optimization Posted by tejal_k_mehta on 27 Oct 2004 at 10:05 PM
Thanks,
Query has Multiple tables. it is like this
Select Tab1.* From tab1,tab2 where Tab1.Fiels1=Tab2.Field1

Search Whole database(i mean search all reacords, by mistake i wrote Search whole datbase) means i need to scan whole table to find out the required one and scaning of whole table takes long time and i want to minimize that time.


: : Hi,
: : i have devlope search utitlity in VB application.
: : in that utillity i have given a option for Search whole database.
: : but it takes 15 mins for 13000 records to search whole database.
: :
: : this utility is used for ACCESS ,SQL and ORACLE database.
: :
: : i want to make search more faster if possible.it possible it should get the result within 5 to 7 mins for 13000 recrods.
: :
: : Pls help me regrading this.
:
: This question is too vague to answer accurately. What do you mean by "search whole database"? Are there multiple tables? Joins? Subqueries? Different databases may require different optimization techniques. You might be able to create indexes that will help (at least in SQLServer and Oracle).
:
:
: infidel
:
:
: $ select * from users where clue > 0
: no rows returned
: 

:
:

Report
Re: Query optimization Posted by infidel on 1 Nov 2004 at 8:07 AM
: Thanks,
: Query has Multiple tables. it is like this
: Select Tab1.* From tab1,tab2 where Tab1.Fiels1=Tab2.Field1
:
: Search Whole database(i mean search all reacords, by mistake i wrote Search whole datbase) means i need to scan whole table to find out the required one and scaning of whole table takes long time and i want to minimize that time.

Are you scanning the rows in your program or are you using a "WHERE" clause in your SQL to make the database do the scan?


infidel

$ select * from users where clue > 0
no rows returned





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.